Spamassassin Autolearn
-
- Forum User
- Posts: 93
- Joined: Sun Feb 13, 2005 2:24 pm
- Location: TN
Spamassassin Autolearn
I see in my mail log that spamassassin claims to be autolearning messages (as expected), but when I look at the stats (sa-learn --dump magic), I don't see the number of ham and spam messages increasing. Should it be? Does spamassassin keep its autolearn data somewhere besides the bayes db?
-
- Forum User
- Posts: 93
- Joined: Sun Feb 13, 2005 2:24 pm
- Location: TN
-
- Forum User
- Posts: 93
- Joined: Sun Feb 13, 2005 2:24 pm
- Location: TN
-
- Forum User
- Posts: 93
- Joined: Sun Feb 13, 2005 2:24 pm
- Location: TN
Here's what I'm doing:
When I run sa-learn against a handful of spam messages, the second line (212 messages) increases. However, it's not increasing as SA autolearns.# sa-learn --dump magic /var/spool/qscan/.spamassassin
0.000 0 3 0 non-token data: bayes db version
0.000 0 212 0 non-token data: nspam
0.000 0 1899 0 non-token data: nham
0.000 0 82770 0 non-token data: ntokens
0.000 0 963261639 0 non-token data: oldest atime
0.000 0 1211878301 0 non-token data: newest atime
0.000 0 0 0 non-token data: last journal sync atime
0.000 0 0 0 non-token data: last expiry atime
0.000 0 0 0 non-token data: last expire atime delta
0.000 0 0 0 non-token data: last expire reduction count
-
- Forum User
- Posts: 93
- Joined: Sun Feb 13, 2005 2:24 pm
- Location: TN
Aha - thanks exi1ed0ne. That revealed something entirely different:
Scott - after re-reading your previous answers, I realize that's what you were trying to tell me. Sorry - I just mis-understood. Thanks for your help as always!
So, it appears that when I run sa-learn manually, it is putting the data in /root/.spamassassin/ instead of /var/spool/qscan/.spamassassin/. Looking at the man pages, it appears that I can specify the db directory when running sa-learn, and that should put the data in the right place.# sa-learn --dump magic --dbpath /var/spool/qscan/.spamassassin
0.000 0 3 0 non-token data: bayes db version
0.000 0 1290838 0 non-token data: nspam
0.000 0 97177 0 non-token data: nham
0.000 0 177340 0 non-token data: ntokens
0.000 0 1211560886 0 non-token data: oldest atime
0.000 0 1211921102 0 non-token data: newest atime
0.000 0 1211921112 0 non-token data: last journal sync atime
0.000 0 1211906518 0 non-token data: last expiry atime
0.000 0 345600 0 non-token data: last expire atime delta
0.000 0 36598 0 non-token data: last expire reduction count
Scott - after re-reading your previous answers, I realize that's what you were trying to tell me. Sorry - I just mis-understood. Thanks for your help as always!