On Sun, 16 Oct 2011 15:58:25 -0400 Brian J. Murrell wrote: > On 11-10-16 03:37 PM, RW wrote: > > > > Could you not just run a script from cron that does chown > > ${USER}:spamd and chmod g+rw on all the files in the virtual home > > directories. > > You seem to have gotten lost in minor details and lost sight on the > original problem
I haven't lost sight of anything. I'm suggesting a simple workaround that may solve your practical problem without your having to code any perl. > which is that of being able to run spamd in such a > way that it setuids to the user receiving the mail (i.e. run as root, > so without -u) but also looks for the user_state dir (i.e. which is > usually ~/.spamassassin) somewhere other than the user's $HOME > (--virtual-config_dir). These two concepts, for some strange reason, > seem to be mutually exclusive. As the name implies --virtual-config_dir is there to support virtual users. What you are trying to do is not common.