At 04:31 AM 11/29/2005, Kryol wrote:
I have a following strings in a local.cf:
use_bayes 1
bayes_path /usr/local/mail/spamassassin/bayes
bayes_auto_learn 0
I used:
sa-learn --spam --showdots --mbox <spam mbox> - about 1200 spam messages
sa-learn --ham --showdots --mbox <spam mbox> - about 300 ham messages
I see:
$ ls -l /usr/local/mail/spamassassin
total 2440
-rw-rw-rw- 1 spamd spamd 7644 Nov 29 10:02 bayes.mutex
-rw------- 1 root wheel 196608 Nov 29 10:02 bayes_seen
-rw------- 1 root wheel 2703360 Nov 29 10:02 bayes_toks
$
But after spamd restart I don't see any bayes marks in a spaam messages.
Where is my mistake?
you did bayes_path without doing bayes_file_mode. As a result you created a
site-wide bayes database, but only root can read it.
add this to your local.cf:
bayes_file_mode 0777
then stop spamd and do:
chmod 666 /usr/local/mail/spamassassin/bayes_seen
chmod 666 /usr/local/mail/spamassassin/bayes_toks
Then restart spamd.
(note: yes I do mean 0777 above, and 666 below. The bayes_file_mode can be
used for directory creation thus needs the "x" bit. SA will not apply more
than 666 to your bayes_seen and toks files)