-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dan Mahoney, System Admin writes:
> On Sat, 20 Aug 2005, Rick Macdougall wrote:
> 
> > Dan Mahoney, System Admin wrote:
> >
> >> Hey all,
> >> 
> >> I'd like to run one spamd box for many clients, using SQL user prefs.  Is 
> >> there a way to have spamd use different domain names -- or have spamc pass 
> >> the `hostname' of the machine along?
> >> 
> >> basically I will have a different sql userpref for [EMAIL PROTECTED] or 
> >> [EMAIL PROTECTED], or different global defaults for hosta.com.  This seems 
> >> elementary to do, but I can't figure out how to make spamd tell which one 
> >> to use -- maybe based on the connecting ip, maybe based on a command 
> >> line/config file variable passed.
> >> 
> > Hi,
> >
> > How are you calling spamc ?  All of our simscan (for qmail) servers call 
> > spamc with the -u option, passing the full [EMAIL PROTECTED] part.  We do 
> > this 
> > for about 500 different domains currently, all with their own preferences 
> > per 
> > domain and per user.
> 
> Right now spamc gets the username from $>, i.e. there is no -u specified.
> 
> I made this post to comp.mail.misc 
> http://groups.google.com/group/comp.mail.misc/browse_thread/thread/57a032d36d6d7142/b44ac792b3e77660#b44ac792b3e77660
> 
> I made a similar post to the spamassassin users list.
> Neither got a single response.

That's a shame.
I'm sure I saw this answered recently -- must have been another thread.

Anyway, the upshot is, just fix your MTA to call spamc with the full email
address as -u , e.g. "-u [EMAIL PROTECTED]".

If your MTA can't do this, but can pass the username and domain
separately, create a 1-line shell script that calls

  exec spamc -u [EMAIL PROTECTED]

instead.

- --j.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Exmh CVS

iD8DBQFDD0TJMJF5cimLx9ARAuXwAKC5jgvZ9QdCHpK0Z+htPoGYBix5UACguz50
pMP/wh8CZTfGpncDZel6ZFY=
=uhme
-----END PGP SIGNATURE-----

Reply via email to