On May 11, 2004, at 5:09 PM, Matt Kettler wrote:
At 05:51 PM 5/11/2004, Steve Yuroff wrote:I'm sure I left out some useful info... I call SA from each user's .procmailrc, it's a shared Bayes, on a Cobalt Qube, which I believe is based on RH7.
did you set your bayes_file_mode to 0666? That's a required thing if you're doing shared bayes, since auto-learning and opportunistic expiry will periodically change the owner of the file.
In general the messages you are seeing imply SA cannot read the bayes database, because of file permissions. Take a look at the file permissions and make sure they are set up properly.
In my /etc/mail/spamassassin/global_config.cf I have the following:
#added for global Bayes filtering needs, documentation at http://www.stearns.org
bayes_path /home/users/sharedspam/.spamassassin/bayes
auto_whitelist_path /home/users/sharedspam/.spamassassin/auto-whitelist
bayes_file_mode 777
use_bayes 1
auto_learn 1
bayes_ignore_header ReSent-Date
bayes_ignore_header ReSent-From
bayes_ignore_header ReSent-Message-ID
bayes_ignore_header ReSent-Subject
bayes_ignore_header ReSent-To
bayes_ignore_header Resent-Date
bayes_ignore_header Resent-From
bayes_ignore_header Resent-Message-ID
bayes_ignore_header Resent-Subject
bayes_ignore_header Resent-To
so not 0666, but it should be even more permissive (perhaps dangerously so?)
Also:
[root .spamassassin]# ls -al /home/users/sharedspam/.spamassassin/
total 19092
drwxrwxrwx 3 root users 1024 May 11 17:17 .
drwxr-xr-x 6 sharedsp users 1024 May 20 2003 ..
-rw-rw-rw- 1 sharedsp users 0 May 20 2003 auto-whitelist
drwxrwxr-x 2 sharedsp users 1024 May 20 2003 bayes
-rw-rw-rw- 1 crichard users 96939 May 11 15:41 bayes_journal
-rw-rw-rw- 1 syuroff users 5 Dec 1 16:59 bayes_msgcount
-rw-rw-rw- 1 root users 20221952 May 11 15:41 bayes_seen
-rw-rw-rw- 1 nolonger users 9278464 May 11 15:41 bayes_toks
-rw-rw-r-- 1 root users 20480 Oct 1 2003 old_bayes_seen
-rw-rw-r-- 1 root users 73728 Oct 1 2003 old_bayes_toks
-rw-rw-r-- 1 root users 806912 Oct 1 2003 old_bayes_toks.new
-rw-r--r-- 1 sharedsp users 0 May 20 2003 user_prefs
Is it odd that my owners of bayes_journal, bayes_msgcount, bayes_seen and bayes_toks are all different? Maybe that means something?
Thanks,
Steve.
