Rick Macdougall wrote: > Cian Davis wrote: >> Michele Neylon:: Blacknight.ie wrote: >>> Cian Davis wrote: >>> >>>> Hi, >>>> I'm wondering if I can specify a different path for configs in instead >>>> of /home/$USER/.spamassassin. I want to read them from >>>> /config/$USER/.spamassassin/user_prefs - preferably su'ed to the user. >>>> >>>> This is SA 3.0.3 on Debian Sarge x86 and using spamc/spamd. >>>> > > Hi, > > virtual-config-dir option for spamd > > man spamd > > Regards, > > Rick > I tried this and it didn't work. I edited /etc/default/spamassassin and changed the options to OPTIONS="--create-prefs --max-children 5 --helper-home-dir --virtual-config-dir=/config/%l/.spamassassin -x"
The result was SA creating a directory /config/.spamassassin owned by root. The line in/var/log/mail.log is Feb 17 09:27:11 hex spamd[15467]: Using default config for davisc: /config//.spamassassin/user_prefs I assume that even if this did work, the process can't run as the user.Correct? And if so, then the bayes token cannot be updated. Or new configs are created owned by root. Regards, Cian