store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Tue Jun 18, 2013 3:31 am

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 10 posts ] 
Author Message
 Post subject: Spamassassin Autolearn
Unread postPosted: Sun May 25, 2008 8:07 am 
Offline
Forum User
Forum User

Joined: Sun Feb 13, 2005 2:24 pm
Posts: 93
Location: TN
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?


Top
 Profile  
 
 Post subject:
Unread postPosted: Sun May 25, 2008 8:31 am 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7450
Location: earth
youve got to set the path to the bayes db of the user it runs as. If its qmail-scanner its in /var/spool/qscan/.spamassassin


Top
 Profile  
 
 Post subject:
Unread postPosted: Mon May 26, 2008 9:16 am 
Offline
Forum User
Forum User

Joined: Sun Feb 13, 2005 2:24 pm
Posts: 93
Location: TN
The bayes db is there, and it gets updated when I use sa-learn manually, it's just not updating via autolearn. Do I have to specifically set that up? If so, where?

Thanks.


Top
 Profile  
 
 Post subject:
Unread postPosted: Mon May 26, 2008 10:34 am 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7450
Location: earth
Nope, its all automatic


Top
 Profile  
 
 Post subject:
Unread postPosted: Mon May 26, 2008 10:55 pm 
Offline
Forum User
Forum User

Joined: Sun Feb 13, 2005 2:24 pm
Posts: 93
Location: TN
So, are you saying the stats should be increasing as it autolearns? Because mine is not doing that.


Top
 Profile  
 
 Post subject:
Unread postPosted: Tue May 27, 2008 8:26 am 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7450
Location: earth
Yes, I suspect its because you're not looking at the right files


Top
 Profile  
 
 Post subject:
Unread postPosted: Tue May 27, 2008 9:23 am 
Offline
Forum User
Forum User

Joined: Sun Feb 13, 2005 2:24 pm
Posts: 93
Location: TN
Here's what I'm doing:
Quote:
# 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


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.


Top
 Profile  
 
 Post subject:
Unread postPosted: Tue May 27, 2008 11:10 am 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7450
Location: earth
You might want to double check the user it is running as


Top
 Profile  
 
 Post subject:
Unread postPosted: Tue May 27, 2008 3:35 pm 
Offline
Forum Regular
Forum Regular

Joined: Sun Nov 20, 2005 4:16 pm
Posts: 183
Location: Right Behind You!
try:
Code:
sa-learn --dump magic --dbpath /var/spool/qscan/.spamassassin

_________________
-Andy


Top
 Profile  
 
 Post subject:
Unread postPosted: Tue May 27, 2008 4:59 pm 
Offline
Forum User
Forum User

Joined: Sun Feb 13, 2005 2:24 pm
Posts: 93
Location: TN
Aha - thanks exi1ed0ne. That revealed something entirely different:
Quote:
# 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


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.

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!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 10 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group