On Tue, 15 Jul 2003, Luiz Lima wrote:

> That should be enough to get me going, right? So, let me get back the my
> original question:
>
> How can I tell if bayes is actually working on my setup? I have a
> amavisd-new + sa setup and, although my bayes database gets updated and is
> checked when I run SA on it own, I'm yet to see any bayes rules being
> applied to e-mails I personally get (and I do get a lot of e-mails).

First check your SA config file 'local.cf' and make sure that you've
told SA to actually use bayes. Look for lines like:

  bayes_path      /etc/mail/spamassassin/bayes/bayes
  use_bayes 1
  auto_learn 1
  #


On your mail server (or machine running SA) feed a test message to
'spamassassin' in debug mode:

        spamassassin -D < message

In the output look for lines that reference the bayes tokenizer:

[snip...]
debug: bayes corpus size: nspam = 13155, nham = 57416
debug: tokenize: header tokens for *p = "<[EMAIL PROTECTED]>"
debug: tokenize: header tokens for *F = "<[EMAIL PROTECTED]>"
debug: tokenize: header tokens for To = "[EMAIL PROTECTED]"
debug: tokenize: header tokens for X-Priority = "3 (Normal)"
debug: tokenize: header tokens for *M = " 4897949300 22012956384247 bigfoot com "
debug: tokenize: header tokens for MIME-Version = ""
debug: tokenize: header tokens for X-Priority = "3 (Normal) 3 (Normal)"
[snip...]
debug: bayes token 'Are' => 0.0155844155844156
debug: bayes token 'indeed' => 0.0176055198262867
debug: bayes token 'Enter' => 0.97037037037037
debug: bayes token 'fucked' => 0.97037037037037
debug: bayes token 'pavement' => 0.0444444444444444
debug: bayes token 'law' => 0.0444444444444444
debug: bayes: score = 0.396038060263789
debug: bayes: 20297 untie-ing
debug: bayes: 20297 untie-ing db_toks
debug: bayes: 20297 untie-ing db_seen
[snip...]

Note the line 'debug: bayes: score = 0.39...'


-- 
Dave Funk                                  University of Iowa
<dbfunk (at) engineering.uiowa.edu>        College of Engineering
319/335-5751   FAX: 319/384-0549           1256 Seamans Center
Sys_admin/Postmaster/cell_admin            Iowa City, IA 52242-1527
#include <std_disclaimer.h>
Better is not better, 'standard' is better. B{



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to