You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by martin f krafft <us...@mass.madduck.net> on 2006/07/02 16:16:50 UTC

RFC: spamd disables virtual-config when no @ in user name

On mail systems with virtual and local users, it's not easily 
possible to run per-user spamc with user configuration. Either the 
spamd process runs with --virtual-config, then local users need to 
have directories under the virtual mailbox base directory, or you 
run spamd without --virtual-config, in which case virtual users all
end up with one and the same configuration -- that of the virtual 
mail user account (`vmail').

I suggest that spamd is changed such that it disables virtual-config
when the user name passed by spamc does not include an @ sign.

Is this a good idea? Comments welcome!

PS: my current workaround is a virtual-config of
/srv/vmail/%d/%u/.spamassassin/ and a symlink from
/srv/vmail/`hostname` to /home. However, this does not properly work
when the local user home directories are not immediately underneath
/home.

-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
 
spamtraps: madduck.bogus@madduck.net
 
government announcement - the government announced today that it is
changing its mascot to a condom because it more clearly reflects the
government's political stance. a condom stands up to inflation, halts
production, destroys the next generation, protects a bunch of pricks
and finally, gives you a sense of security while you're being screwed!

Re: RFC: spamd disables virtual-config when no @ in user name

Posted by martin f krafft <us...@mass.madduck.net>.
also sprach Bart Schaefer <ba...@gmail.com> [2006.07.02.1827 +0200]:
> I run two copies of spamd with different -p port options, and point
> the virtual users' spamc at the port corresponding to the spamd with
> the --virtual-config-dir option.

This isi actually another approach which had crossed my mind, and
which I shelved for now because of the two reasons that I'd prefer
not to have to deviate from the Debian default, and that it's an
extra process that's going to negatively affect performance, albeit
minor.

-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
 
spamtraps: madduck.bogus@madduck.net
 
gentoo: for when you finally find out
that overclocking can kill your processor.

Re: RFC: spamd disables virtual-config when no @ in user name

Posted by Bart Schaefer <ba...@gmail.com>.
On 7/2/06, martin f krafft
<us...@mass.madduck.net> wrote:
> On mail systems with virtual and local users, it's not easily
> possible to run per-user spamc with user configuration.

I run two copies of spamd with different -p port options, and point
the virtual users' spamc at the port corresponding to the spamd with
the --virtual-config-dir option.

Re: RFC: spamd disables virtual-config when no @ in user name

Posted by martin f krafft <us...@mass.madduck.net>.
also sprach martin f krafft <us...@mass.madduck.net> [2006.07.02.1616 +0200]:
> I suggest that spamd is changed such that it disables virtual-config
> when the user name passed by spamc does not include an @ sign.

Sorry for the afterthought, but if the above is not a good idea,
maybe spamc could get an option that will cause it to tell spamd to
disable virtual-config?

Thanks,

-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
 
spamtraps: madduck.bogus@madduck.net
 
http://www.transnationalrepublic.org/