How to Install Spamassassin with SpamBlocker, Blockcracking, Easy Spam Fighter on a DirectAdmin server

How to Install Spamassassin with SpamBlocker, Blockcracking, Easy Spam Fighter on a DirectAdmin server

For Centos 7

first install this!

yum -y install perl-ExtUtils-MakeMaker perl-Digest-SHA perl-Net-DNS perl-NetAddr-IP perl-Archive-Tar perl-IO-Zlib perl-Digest-SHA perl-Mail-SPF \
perl-IP-Country perl-Razor2 perl-Net-Ident perl-IO-Socket-INET6 perl-IO-Socket-SSL perl-Mail-DKIM perl-DBI perl-Encode-Detect perl-HTML-Parser \
perl-HTML-Tagset perl-Time-HiRes perl-libwww-perl perl-Sys-Syslog

For Debian 7, 8 or Ubuntu 16.04
First install this!

cpan -i Archive::Tar Digest::SHA Net::DNS Net::DNS::Resolver::Programmable Mail::SPF Geo::IP Net::CIDR::Lite IO::Socket::IP \
IP::Country Net::Ident Net::Patricia IO::Socket::INET6 Compress::Zlib Mail::DKIM LWP::UserAgent HTTP::Date Encode::Detect ExtUtils::MakeMaker \
NetAddr::IP Mail::SpamAssassin::Plugin::Razor2 Razor2::Client::Agent IO::Socket::SSL DBI Sys::Syslog

After above install you can use below install steps.

For Debian 9 or Ubuntu 18.04
Update install urls
nano /root/.cpan/CPAN/MyConfig.pm
'urllist' => [q[http://www.cpan.org/]],

cpan -i Archive::Tar Digest::SHA Net::DNS Net::DNS::Resolver::Programmable Mail::SPF Geo::IP Net::CIDR::Lite IO::Socket::IP IP::Country Net::Ident Net::Patricia IO::Socket::INET6 Compress::Zlib Mail::DKIM LWP::UserAgent HTTP::Date Encode::Detect ExtUtils::MakeMaker NetAddr::IP Mail::SpamAssassin::Plugin::Razor2 Razor2::Client::Agent IO::Socket::SSL DBI Sys::Syslog

SpamBlocker install and extra modules  
Newer versions of SpamBlocker support several new features, giving you more control to fight spam, both inbound and outbound.

Many of the changes are listed here:
https://forum.directadmin.com/showthread.php?t=50059

Info on easy_spam_figher (ESF) and BlockCracking (BC).

If you're running CustomBuild 2.0, it can install these things for you:

Check Exim version
exim --version |head -1

cd /usr/local/directadmin/custombuild
./build update
./build set exim yes
./build set eximconf yes
./build set eximconf_release 4.9
./build set blockcracking yes
./build set easy_spam_fighter yes
./build set spamd spamassassin
./build set spamassassin yes
./build update
./build exim
./build set dovecot_conf yes
./build dovecot_conf
./build blockcracking
./build easy_spam_fighter
./build spamassassin
./build update
./build exim_conf
exim --version |head -1

Check Exim version
exim --version |head -1

If it's a fresh install, or if you're not sure that you have everything required for this setup, we'd recommend recompiling both SpamAssassin and Exim:

./build set exim yes
./build exim
./build spamassassin


Was this article helpful?

mood_bad Dislike 3
mood Like 4
visibility Views: 16424