SpamAssassin Global Configuration Bayes not working by default
If SpamAssasin globally enabled the Bayes Filter is not working by default anymore. The global bayes database has to created manually. Also the "bayes_path" have to be configured in the configuration file. This could be automated. Also a cronjob which executing the sa-learn command every day would be great. The sa-learn command supports the star operator which makes it really easy to scan all mailboxes in one command.
We have already /etc/cron.daily/60sa-update sa-learn cronjob enabled by default.
According to the SpamAssassin documentation – http://spamassassin.apache.org/full/3.0.x/dist/doc/Mail_SpamAssassin_Conf.html , the Bayes system is not activated until a certain number of ham (non-spam) and spam email messages has been learned.
The default value is 200 of each ham and spam messages.It means that SpamAssassin begins to filter mails after 200 spam and 200 none-spam emails has been learned.This statistics is needed to distinguish spam mails.
This default value can be changed in /etc/mail/spamassassin/local.cf by using the following SpamAssassin options:
bayes_min_ham_num 100
bayes_min_spam_num 100
—
IG