|To enable SpamAssassin on your server, you need to first need to install it.|
1) Use CustomBuild to install SpamAssassin:
If you have CustomBuild 2.0 you're done the install portion, skip to step 4.
2) If you're using CustomBuild 1.2, or have an older system, you'd just need to ensure that the spamcheck_director is enabled in the exim.conf.
For newer systems, this is done with a line in the exim.conf that looks like this:
.include_if_exists /etc/exim.spamassassin.confDelete the # character that's in front of it, and save. Then setup the exim.spamassassin.conf file:
wget -O /etc/exim.spamassassin.conf http://files.directadmin.com/services/exim.spamassassin.confand then restart exim.
For older systems, you might see a section that has #spamcheck_director. You could optionally uncomment this section, or just leave it commented and add the mentioned .include_if_exists line just before it.
3) Once setup, and exim is restarted, spamd should be running, confirm with:
[root@servercustombuild]# ps ax |grep spamd
If not, check /var/log/maillog for clues.
4) Now that SpamAssassin is setup and running, Users just need to enable it at their User Level -> SpamAssassin section to create their user_prefs file, and email scanning should begin.
Other related info
a) The global spamassassin config file is in /etc/mail/spamassassin/local.cf
b) If you run debian and are missing perl or some pm files, type:
apt-get install perl-base perl-modules libnet-dns-perl
c)A issue from Dec 2012 is this error:
http: GET 3.3 request failed: 400 URL must be absolute: 400 URL must be absolute
d) If SpamAssassin fails to build, ensure have the perl/cpan requirements. This can be done in a few different ways, one of them in CPAN.
If you have never run cpan before, set cpan to follow prerequisites, to speed up the process:
cpan -i Archive::Tar Digest::SHA Net::DNS Net::DNS::Resolver::Programmable Mail::SPF Geo::IP Net::CIDR::Lite IO::Socket::IP \
If it asks you:
Are you ready for manual configuration? [yes] nobe sure to type "no" and press enter. Only use "yes" if you really know what you're doing. The default options are going to be the most reliable.
Or, as an alternative to using cpan, CentOS boxes can use 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 \
apt-get install libhtml-parser-perl libhttp-date-perl libnet-dns-perl libnetaddr-ip-perl libsocket6-perl libsys-hostname-long-perl libwww-perl \
|Spamassassin : Can't locate HTML/Parser.pm in @INC|
|How to update your exim.conf|
|How to enable SpamAssassin/rspamd for new accounts|
|How to enable realtime blocklists (RBLs) with exim|
|Change SpamAssassin to only scan local mailboxes|
|Can't locate ExtUtils/MakeMaker.pm in @INC|
|SpamAssassin: spamd: Can't locate version.pm in @INC|
|Can't locate LWP/UserAgent.pm in @INC|
|SpamAssassin isn't working|
|Can't locate Archive/Tar.pm in @INC|
|How to create a cronjob to use sa-learn to teach spamassassin - Maildir|
|REQUIRED module missing: NetAddr::IP|
|SPAM fighting tools in DirectAdmin|
© 2018 JBMC Software, Suite 173 3-11 Bellerose Drive, St Albert, AB T8N 1P7 Canada. Mon-Fri 9AM-5PM MST