View Single Post
  #1  
Old 19th March 2009, 20:29
klausengelmann klausengelmann is offline
Junior Member
 
Join Date: Mar 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to klausengelmann Send a message via Skype™ to klausengelmann
Default Mailscanner SA Bayes Permissions

Hello everybody !!!

After a complete installation of Postfix + Mailscanner + SA + Mailwatch according to some Howtoforge Tutorials I run into this error:

A Learn: error code 13 returned from sa-learn: bayes: cannot open bayes databases /var/spool/MailScanner/spamassassin/bayes_* R/O: tie failed: Permission denied bayes: cannot open bayes databases /var/spool/MailScanner/spamassassin/bayes_* R/W: tie failed: Permission denied bayes: cannot open bayes databases /var/spool/MailScanner/spamassassin/bayes_* R/W: tie failed: Permission denied bayes: cannot open bayes databases /var/spool/MailScanner/spamassassin/bayes_* R/W: tie failed: Permission denied ERROR: the Bayes learn function returned an error, please re-run with -D for more information Learned tokens from 0 message(s) (1 message(s) examined)
Delete: deleted file /var/spool/MailScanner/quarantine/20090319/spam/9C5428630220.2DC3A

My filesystem permissions regarding this problem are:

[root@prometeu spamassassin]# pwd
/var/spool/MailScanner/spamassassin
[root@prometeu spamassassin]# ls -lah
total 10M
drwxrwsr-x 2 postfix apache 4.0K Mar 19 16:25 .
drwxr-xr-x 5 postfix postfix 4.0K Dec 1 16:11 ..
-rw------- 1 postfix postfix 2.5M Mar 19 16:25 auto-whitelist
-rw------- 1 postfix apache 29K Mar 19 16:25 bayes_journal
-rw-rw---- 1 apache apache 30 Mar 19 16:23 bayes.mutex
-rw-rw---- 1 postfix apache 5.0M Mar 19 16:25 bayes_seen
-rw------- 1 postfix apache 5.0M Mar 19 16:25 bayes_toks
[root@prometeu spamassassin]#

The worst thing is that if I change the permissions according to what it is recommended here (g+rw) after some the permissions change again.

I also tried to edit /etc/MailScanner/spam.assassin.prefs.conf without success.

Anyone knows how to solve this issue ?

I like to train my SA using Bayes.

Thanks,

Klaus
Reply With Quote
Sponsored Links