I have upgraded a couple of our servers to cPanel 11. Ever since then I have noticed a few issues with our spam. Its like a few spam messages are not being flagged as spam as they are suppose to. I also had trouble with the user_prefs file being recognized, which I traced back to a permission problem on the /home/<user>/.spamassassin directory. But I'm still seeming to have a few problems.
I'm wondering what the correct permissions and ownership settings should be for the files and directory under /home/<user>/.spamassassin should be?
It looks as if cPanel 11 changed the way SpamAssassin is running and it is now running as the user nobody as opposed to the user root in cPanel 10. This is probably a much better solution security wise, but I think it is interferes with the permissions.
I noticed in my maillog that spamd seemed to be having trouble accessing the auto-whitelist and bayes_* files in the .spamassassin directory. When I investigated this, it appeared as if this was because the files were not owned correctly or did not have the correct settings. It also appears that the nobody user/group needs to have read/write/execute permissions to this directory in order to create lock files.
I have set the permissions to these files and directories as follows:
and this appears to have solved all of the errors and permission problems in the maillog file.Code:drwxrwxr-x 2 <user> nobody 4096 Jul 11 12:58 ./ drwx--x--x 12 <user> <user> 4096 Jul 11 11:54 ../ -rw------- 1 nobody nobody 2654208 Jul 11 12:58 auto-whitelist -rw------- 1 nobody nobody 2617344 Jul 11 12:58 bayes_seen -rw------- 1 nobody nobody 41680896 Jul 11 12:58 bayes_toks -rw-r--r-- 1 <user> <user> 6013 Jul 11 12:33 user_prefs
I am just wondering if anyone else has noticed this problem or if there is another, better solution.
Or perhaps I am the only one that is experiencing this. I do have a lot of custom exim ACLs, but I have removed all of those and reset everything back to default to test this.



LinkBack URL
About LinkBacks
Reply With Quote




