![]() This page is part of the EmailServer article. Improving spam filteringSpamAssassin comes with the ability to use custom-rules used to add/remove points to each message passing through. On interesting project is Rules Du Jour at Exit0Wiki, a SpamAssassin-dedicated site. InstallationTo install Rules Du Jour is simple enough and here is a quick recap. # cd /usr/sbin # wget http://sandgnat.com/rdj/rules_du_jour # chmod 755 rules_du_jour # mkdir /etc/rulesdujour This will have downloaded the script and made it executable by SA_DIR="/etc/mail/spamassassin" MAIL_ADDRESS="spam.police@example.com" SA_RESTART="killall -HUP spamd" My config file contains all available rules. Just remove the ones you don't need and don't forget to change the notification email address to something suitable to your site. Now we just need to make this run daily (please only run once per day to avoid stealing too much bandwidth from the sites that kindly give us these free goodies). # Get latest SpamAssassin rules. Runs at 2:22AM every day. Change the time to something else to even-out the load on the servers that we will download from. Now the last thing we can do is try to run the script. It will output a lot of info as each rule is downloaded and installed. You should now have another, improved layer of email protection. Resources< SpamAssassin | EmailServer | PostGrey> Leave your comments below |