Thanks a lot, Matt,

I think I'm getting somewhere now.

I find several copies of bayes_toks,

1.  /private/var/imap/.spamassassin/bayes_toks
2.  /private/var/root/.spamassassin/bayes_toks
3.  /Users/admin/.spamassassin/bayes-toks

I should be logged in as cyrus to run sa-learn. 
That's where the mail get delivered.  But everytime I
log in as root to run sa-learn --spam/ham.  When I run
sa-learn --dump magic as root, those data don't mean
anything to SA.

That means I can rm the other two copies of
bayes_toks.

Eleanor Cheung

--- Matt Kettler <[EMAIL PROTECTED]> wrote:

> At 02:10 PM 8/11/2004, E Cheung wrote:
> >I don't know why those data don't change when I
> have
> >set the autolearn on.  But I do see some of the
> >messages being autolearn=spam and ham in the
> headers.
> >
> >I see those data change when I use sa-learn
> --spam/ham
> >[spamfolder]
> >
> >Is there something I need to set in the local.cf?
> 
> Sounds like you're running sa-learn as a different
> user than your mail gets 
> processed as.
> 
> Remember.. SA uses the bayes DB of the user that
> executes SA, not the 
> recipient of the email. Also, if it finds itself
> running as root, it will 
> dump back to "nobody" for security reasons.
> 
> Check around using locate or find and see if you can
> find another 
> bayes_toks file on your system. 
> 
> 



                
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

Reply via email to