Hello Mun,

Saturday, July 2, 2005, 2:59:44 PM, you wrote:

MF> I'm using SpamAssassin 3.0.1 on a qmail system, and invoking it
MF> using qmail-scanner. 

MF> 1. Send a test mail to my account, and explicitly run
MF> sa-learn on the mail to identify it as spam. This is repeated for
MF> abt 15 times.

Not necessary -- once you sa-learn it once, you get no benefit from
subsequence sa-learns.
MF> 3. Reduce both bayes_min_ham_num and bayes_min_spam_num to 5, and
MF> restarted spamd 
MF> 4. Send the test mail again

MF> The test mail at step 4 does not get classified as spam, and
MF> when I check the headers of the mail, no BAYES_* rules have been
MF> run on it.

MF> Am I doing the right thing here?

Possibly.

Take that same email, with full headers, as a text file on disk, and
while you are logged on as the same user that spamd uses when kicked
off by your qmail system, do
> spamassassin -D <thatemail.txt >thatemail.out 2>thatemail.err

The thatemail.err file should contain debugging output on your email,
including some lines like

[2676] dbg: bayes: tie-ing to DB file R/O /home/Bob/.spamassassin/bayes_toks
[2676] dbg: bayes: tie-ing to DB file R/O /home/Bob/.spamassassin/bayes_seen
[2676] dbg: bayes: found bayes db version 3
[2676] dbg: bayes: DB journal sync: last sync: 0
[2676] dbg: config: using "/home/Bob/.spamassassin" for user state dir
[2676] dbg: bayes: not available for scanning, only 0 spam(s) in bayes DB < 200
[2676] dbg: bayes: untie-ing
[2676] dbg: bayes: untie-ing db_toks
[2676] dbg: bayes: untie-ing db_seen
[2676] dbg: config: score set 1 chosen.
[2676] dbg: bayes: tie-ing to DB file R/O /home/Bob/.spamassassin/bayes_toks
[2676] dbg: bayes: tie-ing to DB file R/O /home/Bob/.spamassassin/bayes_seen
[2676] dbg: bayes: found bayes db version 3
[2676] dbg: bayes: DB journal sync: last sync: 0
[2676] dbg: bayes: not available for scanning, only 0 spam(s) in bayes DB < 200
[2676] dbg: bayes: untie-ing
[2676] dbg: bayes: untie-ing db_toks
[2676] dbg: bayes: untie-ing db_seen

You'll note my
[2676] dbg: bayes: not available for scanning, only 0 spam(s) in bayes DB < 200

This is because on my test system I haven't trained Bayes.

Instead, you should see other code indicating what is happening.

One possibility: If you're doing sa-learn as one user, and qmail is
invoking spamd to run as a different user, you may be training one
Bayes database and spamd may be using a different database that isn't
trained.

Bob Menschel



MF> Rgds
MF> Lee 



-- 
Best regards,
 Robert                            mailto:[EMAIL PROTECTED]


Reply via email to