On Fri, 20 Nov 2015 12:31:01 -0500
Bowie Bailey wrote:

> On 11/20/2015 1:06 AM, Eric Abrahamsen wrote:
> > So my only other question is: does the "-u" option to spamc *only*
> > control the user that the spamc process runs as? Or does it interact
> > with the --virtual-user-config spamd option in any other way?  
> 
> spamc's "-u" option passes the username/emailaddress to spamd.  It
> has *no* effect on the system user used by spamc or spamd.

It does if spamd is run without -u. In that case the spamd child
process will temporarily drop to the unix user specified by spamc -u
(or by default the user running spamc).

It's best to run spamd with -u unless it's essential to access
databases and configuration in unix home directories. 


> spamd's "--virtual-user-config" does variable replacement based on
> the user specified by spamc's "-u" option.  This also does not affect
> the system user, just the directory where spamd expects to find the
> config files.

I think it's worth repeating that it will only look in those virtual
home directories if --virtual-user-config is combined with -x,
otherwise it will still look in the home directory of the spamd user.

Reply via email to