How to tell if SpamAssassin Bayasian filtering is working

Denis Beauchemin Denis.Beauchemin at USherbrooke.ca
Tue Sep 26 19:48:31 IST 2006


Jonathan B. Bayer a écrit :
> Hello MailScanner,
>
> I've enabled Bayasian filtering with SpamAssassin.  I've been feeding missed spam to Spamassassin by hand, and I get reports that it is adding tokens from the scanned files.  
>
> However, it doesn't seem to have affected the results I'm getting.  I've looked both at spam and non-spam, and don't see any reference in the headers to any sort of Bayasian scanning.  
>
> So I'm wondering if it is really doing the Bayasian scanning or not.
>
> I've reproduced all the relevent information below (I think).  Any ideas or suggestions are welcome.
>
> Thanks in advance.
>
>
> JBB
>
> I have the following relevant lines in my MailScanner.conf file:
>
> Spam Checks = yes
> Use SpamAssassin = yes
> Wait During Bayes Rebuild = no
> SpamAssassin Site Rules Dir = /etc/mail/spamassassin
> SpamAssassin Site Rules Dir = /etc/mail/spamassassin
> SpamAssassin Local Rules Dir = 
> SpamAssassin Local State Dir = # /var/lib
> SpamAssassin Default Rules Dir =
> Debug SpamAssassin = no
>
>
>
> There is a soft link in place:
> /etc/mail/spamassassin/mailscanner.cf -> 
>          /etc/MailScanner/spam.assassin.prefs.conf
>
> The file spam.assassin.prefs.conf contains the following:
>
> dns_available yes
> use_bayes 1
> bayes_path /var/MailScanner/bayes/bayes
>  score BAYES_00 -15.0
>  score BAYES_05 -5.0
>  score BAYES_95 5.0
>  score BAYES_99 15.0
>  bayes_auto_learn 1
> bayes_ignore_header bayerfamily.net-MailScanner
> bayes_ignore_header bayerfamily.net-MailScanner-SpamCheck
> bayes_ignore_header bayerfamily.net-MailScanner-SpamScore
> bayes_ignore_header bayerfamily.net-MailScanner-Information
> bayes_auto_expire 0
> lock_method flock
> use_auto_whitelist 0
> use_dcc         0
> use_pyzor       0
> envelope_sender_header X-MailScanner-From
> header   FRIEND_GREETINGS       Subject =~ /you have an E-Card from/i
> describe FRIEND_GREETINGS       Nasty E-card from FriendGreetings.com
> score    FRIEND_GREETINGS       100.0
> header   FRIEND_GREETINGS2      Subject =~ /you have a greeting card from/i
> describe FRIEND_GREETINGS2      Nasty E-card from FriendGreetings.com
> score    FRIEND_GREETINGS2      100.0
>
>
> And /var/MailScanner/bayes contains:
> -rw-------  1 root root    230 Sep 25 04:03 bayes.mutex
> -rw-------  1 root root  49152 Sep 25 04:03 bayes_seen
> -rw-------  1 root root 360448 Sep 25 04:03 bayes_toks
>
>
> JBB
> ---
> Jonathan B. Bayer
>
> mailto:jbayer at bayerfamily.net
>
>   
I think you are looking for sa-learn:
sa-learn --dump magic
0.000          0          3          0  non-token data: bayes db version
0.000          0   15895097          0  non-token data: nspam
0.000          0    7332237          0  non-token data: nham
0.000          0     624290          0  non-token data: ntokens
0.000          0 1159168492          0  non-token data: oldest atime
0.000          0 1159296419          0  non-token data: newest atime
0.000          0 1159296392          0  non-token data: last journal 
sync atime
0.000          0 1159255072          0  non-token data: last expiry atime
0.000          0      86400          0  non-token data: last expire 
atime delta
0.000          0     285897          0  non-token data: last expire 
reduction count

Denis

-- 
   _
  °v°   Denis Beauchemin, analyste
 /(_)\  Université de Sherbrooke, S.T.I.
  ^ ^   T: 819.821.8000x62252 F: 819.821.8045


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3595 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20060926/dcb7358b/smime.bin


More information about the MailScanner mailing list