SpamAssassin - config: no rules were found! Do you need to run 'sa-update'?

Want to support HowtoForge? Become a subscriber!
 
Submitted by falko (Contact Author) (Forums) on Wed, 2011-08-24 08:59. :: Errors

Error: SpamAssassin - config: no rules were found! Do you need to run 'sa-update'?

You run

spamassassin --lint

and get the following output:

[root ~]# spamassassin --lint
config: no rules were found! Do you need to run 'sa-update'?
[root ~]#

 

Solution

You need to download the latest SpamAssassin rules by running

sa-update

You can create a cron job that does this automatically. First find out the full path for sa-update:

which sa-update

[root ~]# which sa-update
/usr/bin/sa-update
[root ~]#

Then create a cron job like this, using the full path to sa-update:

crontab -e

23 4 * * * /usr/bin/sa-update &> /dev/null

This runs sa-update each day at 4.23h.


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.