Ronan, 

I have a cronjob that does the learning for me 

#!/bin/sh
sa-learn --spam --mbox /home/fizzle/spam > /dev/null 2>&1
:> /home/fizzle/spam
sa-learn --ham --mbox /home/fizzle/ham > /dev/null 2>&1
:> /home/fizzle/ham
#Root likes to lock the file (owner of cronjob), now reset it.
chown filter.users /etc/mail/spamassassin/bayes -R

We have an IMAP account setup that we just move a bunch of spams/hams to
(into the appropriate folder) and every night at 1:30 AM it runs.  We
used to do this on ever server (6 in total) but now we have a central
MySQL db for bayes.  

This solution works well for us.  It's also an easy way to get ham into
the system.

Gary Smith

Reply via email to