Re: sa ignoring whitelist_from in user_prefs

2007-02-14 Thread Rich Winkel
According to Matt Kettler:
 9 times out of 10, this is caused by someone who's calling SA at the MTA
 layer, but they're trying to use the user_prefs in the recipients home
 directory.
 
 SA has no reliable way to determine who the recipient is, given the
 content of the message it receives. Even if it could, it would not know
 if that user has a local account or not.
 
 Therefore, unless told otherwise with spamc -u, SA uses the userprefs
 that belongs to the userid that executed the call to spamassassin.
 
 Most MTA layer integrations wind up always calling SA as the same system
 account user that the MTA runs as, resulting in only one user_prefs ever
 being used.

Yikes!  Somehow I didn't catch this.   I'm using spamass-milter and it
has a -u option for just this situation.

Many thanks!!

Rich



Re: sa ignoring whitelist_from in user_prefs

2007-02-11 Thread Matt Kettler
Rich Winkel wrote:
 For a particular user, I'm finding no correlation between his whitelist_from's
 in user_prefs and the whitelist status as reported in incoming messages.
 I see messages with no USER_IN_WHITELIST when both the From and From: 
 addresses
 match a whitelist_from line in the user_prefs file.  I also see messages
 with USER_IN_WHITELIST but that userid is NOT listed in the user_prefs.

 What could cause this??
   
Are you sure you're using the right user_prefs file?

9 times out of 10, this is caused by someone who's calling SA at the MTA
layer, but they're trying to use the user_prefs in the recipients home
directory.

SA has no reliable way to determine who the recipient is, given the
content of the message it receives. Even if it could, it would not know
if that user has a local account or not.

Therefore, unless told otherwise with spamc -u, SA uses the userprefs
that belongs to the userid that executed the call to spamassassin.

Most MTA layer integrations wind up always calling SA as the same system
account user that the MTA runs as, resulting in only one user_prefs ever
being used.


sa ignoring whitelist_from in user_prefs

2007-02-10 Thread Rich Winkel
For a particular user, I'm finding no correlation between his whitelist_from's
in user_prefs and the whitelist status as reported in incoming messages.
I see messages with no USER_IN_WHITELIST when both the From and From: addresses
match a whitelist_from line in the user_prefs file.  I also see messages
with USER_IN_WHITELIST but that userid is NOT listed in the user_prefs.

What could cause this??

Thanks,
Rich