AW: [Mimedefang] Mimedefang Spamassassin bayes learning isssue

A.Jones at mvv.de A.Jones at mvv.de
Fri Jul 16 01:34:00 EDT 2004


Thanks for the mail. I just set up Bayes myself, and i think i learned
something from reading Your configuration options. To answer Your questions,
bayes_path is not a directory, but rather a prefix string. When the
databases are created, they are created as ${bayes_path}_toks and
${bayes_path}_seen. So, to get those databases in the directory
/var/spool/spamassassin/bayes, You need to make bayes_path
/var/spool/spamassassin/bayes/bayes (or
/var/spool/spamassassin/bayes/toan_ngo, or whatever). As for why the
databases are not created by the autolearn option, i don't know if there is
a reason other than "it just is that way". I initialized them with sa-learn
--rebuild, which created empty databases.

				-&


-----Ursprüngliche Nachricht-----
Von: Ngo, Toan [mailto:tngo at midway.com] 
Gesendet: Donnerstag, 15. Juli 2004 19:10
An: mimedefang at lists.roaringpenguin.com
Betreff: [Mimedefang] Mimedefang Spamassassin bayes learning isssue


I'm trying to get bayes to auto learn with MD 2.43 and spamassassin
2.63.

Here's my config part in relation to bayes:

use_bayes 1
auto_learn 1
bayes_path /var/spool/spamassassin/bayes
bayes_file_mode 0666
bayes_auto_expire                       1
bayes_auto_learn_threshold_nonspam      0.5
bayes_auto_learn_threshold_spam         10
bayes_expiry_max_db_size                100000
bayes_file_mode                         0644
bayes_ignore_header                     X-Spam-Status:
bayes_ignore_header                     X-Spam-Score:
bayes_journal_min_size                  10240
bayes_journal_max_size                  5120000
bayes_learn_to_journal                  1
bayes_min_ham_num                       100
bayes_min_spam_num                      100

/var/spool/spamassassin/bayes is owned by defang.defang and is 777 for
testing.

At first the bayes_ files were not created.  I them proceed to make a
spam folder and created a spam message in it.
At /var/spool/spamassassin directory:
su defang
sa-learn --spam spam

This read in the file in the spam folder and created the bayes_files.
However the bayes files were created in /var/spool/spamassassin and not
/var/spool/spamassassin/bayes like specified in the bayes_path config
line.  Now the bayes_journal appears to be getting updated but not
bayes_seen or bayes_toks.  Is there a reason why the bayes_ files are
located in the incorrect path?
Also why didn't the auto_learn option create the bayes files?

Thanks,

Toan Ngo


_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
MIMEDefang at lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang



More information about the MIMEDefang mailing list