Gene Heskett wrote:
> --------
> Dec 13 00:06:15 coyote spamd[29830]: bayes: cannot write 
> to /root/.spamassassin/bayes_journal, bayes db update ignored: 
> Permission denied

<snip>
> 
> So no wonder its not doing me any good to feed this stuff to 
> sa-learn-spam or sa-learn-ham.
> 
> Perms are 0666, and its all owned by root:root and running as root.  
> Yeah, I know, thats a no-no, but what can I do about it?

Erm, no you're not running as root. You're trying, but you aren't succeeding.
You can't make spamd ever scan mail as root without hacking the source code.

Upon getting ready to scan mail, if spamd finds it is still running as root, it
will setuid itself to nobody as a security measure. Hence the permissions
problem. nobody does not, and MUST NOT, have rights to root's homedir.

Suggestion: create a "spamd" user with a valid home directory it can access, and
pass that userid to spamd -u. When you want to train using sa-learn, su yourself
to the spamd user first.


Reply via email to