On 28/09/2006, at 12:27 PM, John wrote:

 Hi list,

My e-mail isn't getting through to the mail box.

Syslog keeps showing bayes: expire_old_tokens: child processing timeout.

After Googling I've found a comment that suggests a manual Bayes expire run but doesn't go on to describe how to do it.

Has anyone struck this before and how do I sort it, please?

TIA

John

Hi John,

While spamassassin is expiring old records from the bayesian database, it can't be used for filtering. Basically spamd/spamc will have to wait until the expire is finished before they can process any pending messages - hence the timeouts.

To do manual expire run:

sa-learn --force-expire --sync

When that's done, you should see something like this:
expired old bayes database entries in 14 seconds
160491 entries kept, 165910 deleted
token frequency: 1-occurrence tokens: 58.52%
token frequency: less than 8 occurrences: 24.85%

You may need to wrap up the "sa-learn" in su so that your expire run uses the same user as the normal spamassassin process. Running as root might leave some files with root-only permissions which will break normal scanning etc. (seen this on FreeBSD) plus if you're doing per-user spamassassin bayes corpus, running as root wont pick up the user-specific bayes data.

Cheers,

James


--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to