On Tue, 2007-06-19 at 10:27 -0500, Rob Wright wrote:
> Greetings, I hope this is ok to post to this list, I'm not sure where to ask 
> and this seems my best option.
> I've got qmail + vpopmail + simscan + spamassassin running as installed by 
> Inter7. Everything works great but I'm having a small problem with the 
> spamassassin, Bayes and autolearning.
> The problem is that spamd won't read the Bayes files for scanning, and then 
> can't write to them for autolearning. I've tracked it down to a permissons 
> problem, I'm just not sure how to resolve it with all the players involved.
> My Bayes files in /etc/mail/spamassassin are all 0770 and I've set 
> bayes_file_mode in local.cf to 0770, per the SpamAssassin Wiki for 
> SiteWideBayesSetup. After making this change spamd now checks and uses BAYES* 
> rules; I see this in my log files and in email headers. 
> But, I still get nothing but autolearn=failed. I tried setting 
> the /etc/mail/spamassassin/bayes* files to 0777 and still no luck. In 
> desperation just changed the whole /etc/mail/spamassassin directory to 0777. 
> That worked, I immediately started seeing autolearn=spam and autolearn=ham in 
> my log files.
> So, then, my question is what should I change to safely allow spamd to do 
> it's 
> work? Currently it's being called by simscan setuid=qmaill, but I don't know 
> that I can change that to something else without breaking everything?

It is likely that the directory and files are owned by the wrong user. 
For example, my spamd and clamd runs as vpopmail and the group of vchkpw
so the permissions on the folder are

ls -la /etc/mail/spamassassin/.spamassassin/
total 9368
drwxr-xr-x 2 vpopmail vchkpw     4096 2007-06-19 23:43 .
drwxr-xr-x 5 root     root       4096 2007-06-11 09:59 ..
-rw------- 1 vpopmail vchkpw    10128 2007-06-19 23:45 bayes_journal
-rw------- 1 vpopmail vchkpw 10162176 2007-06-19 23:43 bayes_seen
-rw------- 1 vpopmail vchkpw  2588672 2007-06-19 23:43 bayes_toks

Hope that helps.


Reply via email to