Mailscanner and default Spamassassin fills up /var space

Auto Date Thursday, November 22nd, 2007

If you are installing Mailscanner and Spamassassin from source or some RPMs it’s been know to use Bayesian statistics engine with it’s database kept forever. This fills up /var/spool/MailScanner/spamassassin folder pretty quickly if you have a moderate load SMTP incoming server. To fix this problem and rebuild Bayesian filters you need to change the following value in /etc/MailScanner/MailScanner.conf file

find the following setting:

Rebuild Bayes Every = 0

and replace it with

Rebuild Bayes Every = 12000

This will rebuild Bayesian spamassassin database/files every 200 minutes. You can of course aim for a higher value if you have enough disk space.

Leave a Reply

You must be logged in to post a comment.