falko:
Thanks for your suggestion. But I am still having the same error.
Look this:
SA Learn: error code 13 returned from sa-learn:
bayes: locker: safe_lock: cannot create lockfile /var/spool/MailScanner/spamassassin/bayes.mutex: Permission denied
bayes: expire_old_tokens: locker: safe_lock: cannot create lockfile /var/spool/MailScanner/spamassassin/bayes.mutex: Permission denied
bayes: locker: safe_lock: cannot create lockfile /var/spool/MailScanner/spamassassin/bayes.mutex: Permission denied Learned tokens from 0 message(s) (1 message(s) examined)
The filesystem permissions used on my experiencies were:
1) First
[root@prometeu spamassassin]# ls -lah
total 11M
drwxrwsr-x 2 postfix apache 4.0K Mar 22 13:38 .
drwxrwxr-x 5 postfix postfix 4.0K Dec 1 16:11 ..
-rw-rw---- 1 postfix postfix 2.5M Mar 22 13:38 auto-whitelist
-rw-rw-rw- 1 postfix apache 100K Mar 22 13:38 bayes_journal
-rw-rw---- 1 postfix postfix 36 Mar 19 20:25 bayes.mutex
-rw-rw-rw- 1 postfix apache 5.0M Mar 22 13:34 bayes_seen
-rw-rw-rw- 1 postfix apache 5.2M Mar 22 13:34 bayes_toks
2) Second.
[root@prometeu spamassassin]# chown root bayes_*
[root@prometeu spamassassin]# ls -lah
total 11M
drwxrwsr-x 2 postfix apache 4.0K Mar 22 13:38 .
drwxrwxr-x 5 postfix postfix 4.0K Dec 1 16:11 ..
-rw-rw---- 1 postfix postfix 2.5M Mar 22 13:38 auto-whitelist
-rw-rw-rw- 1 root apache 100K Mar 22 13:38 bayes_journal
-rw-rw---- 1 postfix postfix 36 Mar 19 20:25 bayes.mutex
-rw-rw-rw- 1 root apache 5.0M Mar 22 13:34 bayes_seen
-rw-rw-rw- 1 root apache 5.2M Mar 22 13:34 bayes_toks
After all this I was wondering which user is used to run sa-bayes ? Or better than that: which user is used to run Spamassassin.
Thanks for all you effort.
Klaus Engelmann
|