Hi all

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

I have just enabled Bayesian filtering, with the following configuration 
options:

use_bayes 1
bayes_store_module Mail::SpamAssassin::BayesStore::SQL
bayes_sql_dsn DBI:mysql:spamassassin:xxx:xxx
bayes_sql_username xxx
bayes_sql_password xxx
bayes_auto_learn 1
bayes_auto_learn_threshold_nonspam 0.50
bayes_auto_learn_threshold_spam 12.00
bayes_min_ham_num 200
bayes_min_spam_num 200

I know for sure that autolearning is working, and running sa-learn on maildirs 
of ham and spam don't generate any errors.

Now, how do I ensure that the Bayesian classifier is actually being invoked to 
score new messages? I tried the following test:

1. Send a test mail to my account, and explicitly run sa-learn on the mail to 
identify it as spam. This is repeated for abt 15 times.
2. Run sa-learn on all my other emails and identify them as ham.
3. Reduce both bayes_min_ham_num and bayes_min_spam_num to 5, and restarted 
spamd
4. Send the test mail again

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

Am I doing the right thing here?


Rgds
Lee 

<<winmail.dat>>

Reply via email to