plugin: eval failed: bayes.mutex: Permission denied

Discuss our MailScanner install script and MailScanner itself
Post Reply
renatoandrade
Junior Member
Posts: 8
Joined: 18 Oct 2014, 15:21

plugin: eval failed: bayes.mutex: Permission denied

Post by renatoandrade »

Hello guys, I have a problem that has generated an error message in the log /var/log/maillog

plugin: eval failed: bayes: (in learn) locker: safe_lock: cannot create lockfile /var/spool/mqueue/.spamassassin/bayes.mutex: Permission denied

anyone out there know how to fix this? I've tried permissions 0777 but did not work.
Sarah
Moderator
Posts: 921
Joined: 09 Dec 2006, 22:49

Re: plugin: eval failed: bayes.mutex: Permission denied

Post by Sarah »

Make sure the ownership of /var/spool/mqueue/.spamassassin/ and its contents are all mailnull:mail. The permissions of the directory should be 0700 and the files within it should be 0600.

Regards,
Sarah
gschaefer
Junior Member
Posts: 13
Joined: 18 Jun 2015, 23:32

Re: plugin: eval failed: bayes.mutex: Permission denied

Post by gschaefer »

Sarah I have the same problem and mine are set correctly. Can you suggest anything else?

root@server2 [~]# ls -la /var/spool/mqueue/.spamassassin/
total 32
drwx------ 2 mailnull mail 4096 Jun 7 04:02 ./
drwxr-x--- 4 mailnull mail 4096 Jun 6 15:59 ../
-rw------- 1 mailnull mail 14 Jun 19 04:02 bayes.mutex
-rw------- 1 mailnull mail 12288 Jun 7 04:02 bayes_seen
-rw------- 1 mailnull mail 12288 Jun 19 04:02 bayes_toks
root@server2 [~]#
Post Reply