SpamAssassin: expiring Bayes tokens

I've had a problem for a while now where mail gets stuck in the Exim queue, because SpamAssassin keeps timing out. I eventually got round to looking into it, and it turns out that it was actually timing out while expiring old ‘tokens’ from the Bayesian filtering database. The answer is to turn off this auto expiring feature, according to someone on the mailing list, with this in local.cf:

bayes_auto_expire 0

Then to prevent the database (which for me lives in ~/.spamassassin/) from growing forever, set up a cron job something like this:

#!/bin/sh
sa-learn --force-expire --sync >/dev/null

So far it's worked perfectly. I got a big batch of work email today, and not a one was left sitting in the queue.

< Text::VimColor 0.11 | More snow pictures >

Miniblog

(nuggets of inanity)

Tuesday Apr 24th 2007, 16:54 »
Just took the annual web design survey that AListApart do. I don't realy consider myself to be a web designer, but I have been doing a lot of HTML and CSS lately.
Monday Apr 23rd 2007, 18:23 »
Strange, there appears to be a bare-knuckle boxing match going on in the field outside my flat. Wish they wouldn't make so much noise about it.
Thursday Mar 1st 2007, 18:47 »
“In its written form, Hebrew has no vowels, making it the ideal language for texting.”
—Said in jest on some Radio 4 programme just now.

Archive: 2007 · 2006 · 2005 · 2004
Feed