How to Backup/Clear/Restore a SpamAssassin Bayes Database

SpamAssassin Bayes Database

Sometimes you might have to work with the Spamassin Bayes Token database. This is the database that is used by the SpamAssassin Self Learning (Bayesian) Classifier to store the ham and spam tokens. This tutorial will show you how to make a backup of that database. E.g. when you want to move it to a ... Read more

Update to latest Spamassassin filter rules in ISPConfig 2

The ISPConfig 2 controlpanel installs its own copy of Spamassassin in the folder /home/admispconfig/ispconfig/tools/spamassassin . To update the Spamassassin filter rules in ISPConfig 2, run this command as root user: /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/sa-update To test if Spamassassin works with the new ruleset, run this command: /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/spamassassin --lint If it does not return an error message, then Spamassassin is ... Read more

Keep the spamassassin filter rules up to date in ISPConfig 3

To update the spamassassin rules regularily on your ISPConfig 3 server, add the following line to the root crontab by running: crontab -e then insert the following line: 23 4 */2 * * /usr/bin/sa-update --no-gpg &> /dev/null and save the file. The path to the sa-update script is /usr/bin/sa-update on Ubuntu and Debian Linux, if ... Read more

How to fix the spamassassin bug with the FH_DATE_PAST_20XX rule

Since january 1 2010, spamassassin is falsely marking non spam emails as spam due to an error in the regular expression of the FH_DATE_PAST_20XX rule. Description of the bug: https://secure.grepular.com/blog/index.php/2010/01/01/spamassassin-2010-bug/ To fix this, run the following command on the shell as root user: sa-update If you use the software ISPConfig 2 on your server, run ... Read more