At 01:58 AM 11/23/2004 -0500, Austin Weidner wrote:
Really trying to figure out bayes. Auto learn is set up, and my headers are
showing autolearn=spam

However, when I do sa-learn --dump magic, there are zero spams and zero
hams.

By using the -D (debug) option, I can see sa-learn is looking at:

debug: bayes: 17216 tie-ing to DB file R/O /root/.spamassassin/bayes_toks
debug: bayes: 17216 tie-ing to DB file R/O /root/.spamassassin/bayes_seen

When I get a new spam, these files are NOT being updated. The files being
updated are in:

/var/spool/mqueue/.spamassassin

What's happening is that your mail is being processed as a non-root user, probably something like "mail" "sendmail" or some similar user that has mqueue as it's homedir. You can look at the owner of the bayes files to see what user it is running as.


probably the best option is to use sa-learn parameters to tell it where the db is.

        sa-learn --dbpath /var/spool/mqueue/.spamassassin

also be sure to chown those files back to their original owner when you're done




Reply via email to