Spamassassin refuses to auto-learn!

Billy A. Pumphrey bpumphrey at WOODMACLAW.COM
Tue May 18 16:40:37 IST 2004


Thank you for your answer.

I understand what you are saying, but I don't know how to do it.  I seen
the user_prefs file and everything was commented out (which I'm assuming
is right).  So I don't quite understand that file.  

Do I copy the user_prefs file to /etc/MailScanner?  I'm not sure
here....

QUOTE:
try setting root's bayes_path to the same thing as your MailScanner
uses.
You'll then be able to sa-learn --dump magic and see the bayes database
stats that MailScanner is using.

Again I'm not exactly sure how to do this.  I know the bayes_path in the
spam.assassin.conf.pref file but I don't know where else it is.

-- Martin Hepworth --
Thank you for your answer too.  I did that command and all looks ok in
the spamassassin -D --lint except for a few lines still:

debug: using "/usr/share/spamassassin" for default rules dir
debug: using "/etc/mail/spamassassin" for site rules dir
debug: using "/root/.spamassassin" for user state dir
debug: using "/root/.spamassassin/user_prefs" for user prefs file
debug: using "/root/.spamassassin" for user state dir

-----Original Message-----
From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK] On
Behalf Of Matt Kettler
Sent: Monday, May 17, 2004 3:57 PM
To: MAILSCANNER at JISCMAIL.AC.UK
Subject: Re: Spamassassin refuses to auto-learn!

At 04:31 PM 5/17/2004, Billy A. Pumphrey wrote:
>However I do not have a user_prefs statement in there, but I am
guessing
>that it might be a good idea to put that in there hey??

user_prefs is a config file, it's not a config statement.

You'd use /root/.spamassassin/user_prefs to create a config file so that
root's bayes settings match the ones MailScanner uses. The file serves
the
same purpose as spam.assassin.prefs.conf, but is for when you use
spamassassin outside of MailScanner.


>  sa-learn --dump magic
>0.000          0          2          0  non-token data: bayes db
version
>0.000          0          0          0  non-token data: nspam
>0.000          0          0          0  non-token data: nham
>0.000          0          0          0  non-token data: ntokens

Hmm, that sounds like you bayes database in root's home directory is
empty,
or at least all the tokens that were in it at one point have now
expired.
since the bayes_toks file was only about 12k this seems logical.

try setting root's bayes_path to the same thing as your MailScanner
uses.
You'll then be able to sa-learn --dump magic and see the bayes database
stats that MailScanner is using.

-------------------------- MailScanner list ----------------------
To leave, send    leave mailscanner    to jiscmail at jiscmail.ac.uk
Before posting, please see the Most Asked Questions at
http://www.mailscanner.biz/maq/     and the archives at
http://www.jiscmail.ac.uk/lists/mailscanner.html

-------------------------- MailScanner list ----------------------
To leave, send    leave mailscanner    to jiscmail at jiscmail.ac.uk
Before posting, please see the Most Asked Questions at
http://www.mailscanner.biz/maq/     and the archives at
http://www.jiscmail.ac.uk/lists/mailscanner.html




More information about the MailScanner mailing list