On Wed, 21 Jan 2004 13:48:30 -0500
Ben Hanson <[EMAIL PROTECTED]> wrote:

> I have had Spamassassin running for long enough to have BAYES kick in.  
> I realized the other day when I checked out all my rulesets with 
> spamassassin -D --lint, I was getting a BAYES_0 test result.  I never 
> saw such a thing from my email.  I figured out that I needed to 
> specifically run spamc as root, and presto, I now get a Bayes test 
> result on each email.  However, I see in the headers that I am now just 
> getting either an autolearn=no or autolearn=fail stamp on the end of the 
> list.  What else have I overlooked? 
> 
> Thanks
> 
> Ben

I am just getting into the auto_learn feature myself.  However, you may want
to rethink running SA as root.  If you are using spamd, you need to start the
daemon as root and do whatever your local mailer requires to drop to the
privileges of the user receiving the mail.  In the case of procmail, that is
DROPPRIVS=yes in procmailrc.

The auto_learn will work when running as a non-root user (spamd in my case). 
You must set the directory and file ownership properly for your
etc/mail/spamassassin directory.  This is the place for custom rules and where
I told SA to look for my site wide Bayes db.  The auto_learn only works for me
when spamd as authority to do the update.

There are couple of related config options to define the points at which mail
is learned.  See the man for Mail::SpamAssassin::Conf under
auto_learn_threshold_nonspam and auto_learn_threshold_spam.  Autolearn = no
means that the threshold for nonspam or spam was not reached, hence no update.
 Not sure what =fail is, unless it is a permission problem.

Alex


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to