You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by The Doctor <do...@doctor.nl2k.ab.ca> on 2005/07/28 02:00:58 UTC

Re: [SPAM] (6.70/5.00) Re: [FW: spam control

On Wed, Jul 27, 2005 at 04:45:36PM -0400, Matt Kettler wrote:
> The Doctor wrote:
> >
> > 
> > The whitelist in question:
> > 
> > <user>/.spamassassin/user_prefs:
> > 
> > 
> <snip>
> 
> 
> > 
> > And the spamassassin is called as follows:
> > 
> > 	echo -n ' Spam Assassin';	/usr/contrib/bin/spamd -d -i -D -u defang --user-config --siteconfigpath=/etc/mail/spamassassin --syslog=/var/log/spamd.log --pidfile=/var/run/spamd.pid;
> > 	/usr/contrib/bin/smf-spamd;
> 
> 
> is "<user>" in the user_prefs path the home directory for the user "defang"...
> if not, then that whole file will NOT under ANY condition be read.
> 
> Since you're passing -u defang to spamd, it will ONLY run as defang, and it will
> ONLY check defang's home directory for a user_prefs file.
> 


Question:  How can ever user use Spam Assassin without having to specify a
user?  It would be nice for every user to govern their own account.

-- 
Member - Liberal International	
This is doctor@nl2k.ab.ca	Ici doctor@nl2k.ab.ca
God Queen and country! Beware Anti-Christ rising!
Better to serve in Heaven that to Rule in Hell.

Re: [SPAM] (6.70/5.00) Re: [FW: spam control

Posted by The Doctor <do...@doctor.nl2k.ab.ca>.
On Wed, Jul 27, 2005 at 06:00:58PM -0600, The Doctor wrote:
> On Wed, Jul 27, 2005 at 04:45:36PM -0400, Matt Kettler wrote:
> > The Doctor wrote:
> > >
> > > 
> > > The whitelist in question:
> > > 
> > > <user>/.spamassassin/user_prefs:
> > > 
> > > 
> > <snip>
> > 
> > 
> > > 
> > > And the spamassassin is called as follows:
> > > 
> > > 	echo -n ' Spam Assassin';	/usr/contrib/bin/spamd -d -i -D -u defang --user-config --siteconfigpath=/etc/mail/spamassassin --syslog=/var/log/spamd.log --pidfile=/var/run/spamd.pid;
> > > 	/usr/contrib/bin/smf-spamd;
> > 
> > 
> > is "<user>" in the user_prefs path the home directory for the user "defang"...
> > if not, then that whole file will NOT under ANY condition be read.
> > 
> > Since you're passing -u defang to spamd, it will ONLY run as defang, and it will
> > ONLY check defang's home directory for a user_prefs file.
> > 
> 
> 
> Question:  How can ever user use Spam Assassin without having to specify a
> user?  It would be nice for every user to govern their own account.
> 

Also, IS it possible for Spam Assassin to skip over a realm?

-- 
Member - Liberal International	
This is doctor@nl2k.ab.ca	Ici doctor@nl2k.ab.ca
God Queen and country! Beware Anti-Christ rising!
Better to serve in Heaven that to Rule in Hell.

Re: [SPAM] (6.70/5.00) Re: [FW: spam control

Posted by Matt Kettler <mk...@evi-inc.com>.
The Doctor wrote:

> Question:  How can ever user use Spam Assassin without having to specify a
> user?  It would be nice for every user to govern their own account.
> 

SA will scan mail as the userid of the process calling SA, unless you pass -u to
either spamc or spamd.

SA has no way of reliably determining who the recipient is based on the message
content. It cannot "automatically figure it out" for you.

Typically people using procmail just do a quick trick where the envelope
recipient gets passed to -u. I don't use procmail so I don't know the exact
syntax, but there's a variable (%1?) that gets used for this.

I'm not sure if any of the milters can do the same trick, but there's nothing
about the nature of a milter to prevent this. The only problem is that at the
milter level you'll see outbound mail, which you won't have a local user for.

Procmail on the other hand only gets called for mail that's locally delivered,
so you can know for sure the recipient is local.