ClearOS Bug Tracker


View Revisions: Issue #8191 Back to Issue ]
Summary 0008191: SpamAssassin update gotcha
Revision 2016-04-29 12:40 by user2
Description Chicken: Amavis will refuse to start up if the SpamAssassin rule set is empty:

Apr 29 14:25:33 us31 amavis[31015]: (!!)TROUBLE in pre_loop_hook: config: no rules were found! Do you need to run 'sa-update'?
Apr 29 14:25:33 us31 amavis[31015]: (!)_DIE: Suicide () TROUBLE in pre_loop_hook: config: no rules were found! Do you need to run 'sa-update'?

Egg: the cronjob that updates the SpamAssassin rules won't run unless Amavis (or other related daemons) are running

Solution: add the following configuration option to /etc/sysconfig/sa-update:

# Run sa-update even if no daemon is detected
SAUPDATE=yes


Revision 2016-04-29 12:43 by user2
Description Chicken: Amavis will refuse to start up if the SpamAssassin rule set is empty:

Apr 29 14:25:33 us31 amavis[31015]: (!!)TROUBLE in pre_loop_hook: config: no rules were found! Do you need to run 'sa-update'?
Apr 29 14:25:33 us31 amavis[31015]: (!)_DIE: Suicide () TROUBLE in pre_loop_hook: config: no rules were found! Do you need to run 'sa-update'?

Egg: the cronjob that updates the SpamAssassin rules won't run unless Amavis (or other related daemons) are running

A user will only run into this problem when a SpamAssassin rule update quits before it is done (e.g. reboot, crash, etc.). Regardless, the permanent solution is to add the following configuration option to /etc/sysconfig/sa-update:

# Run sa-update even if no daemon is detected
SAUPDATE=yes