Actually, it it entirely possible to use a global bayes database if you use
procmail. Just add these lines to your /etc/mail/spamassassin/local.cf file:

I don't use procmail, I use postfix with cyrus imap, but postfix can be set up to pipe through spamassassin so that's fine


use_bayes               1
bayes_path              /etc/mail/spamassassin/bayes
bayes_file_mode         777

Also make sure that everyone uses the '-C /etc/mail/spamassassin' option on
sa-learn, so that they update the correct database.

thanks

I just tried, but it loks like the bayes_* files aren't updated :(
see below

roy

engang:/etc/spamassassin# sa-learn -C $PWD --showdots --spam /var/spool/cyrus/mail/r/user/roy/spam/non-flagged/
...........................................
Learned from 42 message(s) (43 message(s) examined).
engang:/etc/spamassassin# ls -l bay*
-rw-rw-rw- 1 root root 176128 Sep 6 14:23 bayes_seen
-rw-rw-rw- 1 root root 42049536 Sep 6 14:23 bayes_toks
engang:/etc/spamassassin# date
Tue Sep 7 10:08:18 CEST 2004





Reply via email to