Matus UHLAR - fantomas <uh...@fantomas.sk> wrote ..
> On 30.03.17 18:07, David wrote:
> >I'm getting no bayes score on any email and there appears to be no bayes 
> >filtering
> despite my best efforts. I am not a linux and spamassassin guru, so I'm asking
> for some help.
> 
> >Fri Mar  3 12:36:27 2017 [10104] info: spamd: creating default_prefs: 
> >/root/.spamassassin/user_prefs
> >Fri Mar  3 12:36:27 2017 [10104] info: spamd: failed to create readable 
> >default_prefs:
> /root/.spamassassin/user_prefs
> 
> >My spamd launch command explicitly sets the user as spamd, but the main 
> >service
> is still running as root while children appear to be spawning properly. Here's
> ps output:
> >
> >root    10093  0.0  1.5 145988 66952 ?        Ss  02:25  0:05 /usr/sbin/spamd
> --create-prefs --max-children=5 --username=spamd 
> --helper-home-dir=/var/log/spamassassin/
> --syslog=/var/log/spamassassin/spam.log -d --pidfile=/var/run/spamd.pid
> >spamd    10104  0.0  1.8 155348 75544 ?        S    02:25  0:22 spamd child
> >spamd    23753  0.0  1.7 151732 72000 ?        S    10:30  0:02 spamd child
> 
> your spamd process runs under spamd user, but wants to update files in
> root's home directory? I doubt /root is accessible by anyone but root.
> the same should apply for /root/.spamassassin.
> 
> change spamd's home directory to something other than /root/
> 
> even better, run it without --username parameter so it can set UID to user
> it's currencly checking. this way different users can have different bayes
> databases, different options etc.
> 

This is for sitewide filtering. Users don't need any options in the scenario. 
Can you elaborate on what I need to change in what file to get this parent 
process running properly as user spamd, instead of root? Thanks, in advance.

Reply via email to