Install SpamAssassin DirectAdmin
Install SpamAssassin on a DirectAdmin server will help keep spam to a minimum. Much like on cPanel servers SpamAssassin runs as a separate service on your server but can be configured to catch most spam emails reducing the amount of junk in your and your user’s mailboxes.
Here we will provide a step by step guide to installing SpamAssassin on a DirectAdmin server. First check you have perl installed and the required modules on your DirectAdmin server.
Setup SpamAssassin – CentOS
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 perl-DB_File perl-Razor-Agent pyzor
SpamAssassin – Debian
apt-get install libhtml-parser-perl libhttp-date-perl libnet-dns-perl libnetaddr-ip-perl libsocket6-perl libsys-hostname-long-perl libwww-perl \ libio-socket-inet6-perl libmail-spf-perl libsys-syslog-perl libdbi-perl libencode-detect-perl libio-socket-ssl-perl \ libmail-dkim-perl razor libio-socket-ip-perl libnet-patricia-perl
Finally, use custombuild to install to the server
cd /usr/local/directadmin/custombuild
./build set spamd spamassassin
./build spamassassin
You should now see SpamD running on the system and can now be enabled via the user level account in DirectAdmin

ps ax | grep spamd

Now that you have this installed users can configure the software from the user level section and the SpamAssassin link. Care should be taken here to now delete messages that could be legitimate. We find that a custom level of 4 catches most spam. When send to the spam folder helps keep our mailboxes junk-free. We do not recommend any users automatically deleting mail marked as junk because false positives can happen. We have included below the settings we generally use. Should you find level 4 is too vicious and sending legitimate email to the junk folder you can just go back to the user level and up the limit to 4.5

How was this article? – Deploy SpamAssassin DirectAdmin
You might also like
More from DirectAdmin
How To Connect Your cPanel Server To A SmartHost Relay
A smarthost relay is an external SMTP server that you can connect to your cPanel server. The smarthost will deal …
How To Install Imunify360 cPanel & DirectAdmin Servers
How To Install Imunify360 cPanel & DirectAdmin ServersImunify360 is a fantastic tool to have in your server toolkit. It's a …
Install CSF DirectAdmin VPS and Dedicated Servers
Install CSF DirectAdmin To install CSF on cPanel VPS Servers checkout How to Install CSF As standard DirectAdmin does not include …