ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> spamassassin-users
spamassassin-users
Re: [sa-list] RE: Way to skip scanning per-user?
by Dan Mahoney other posts by this author
Dec 14 2006 9:18AM messages near this date
RE: Way to skip scanning per-user? | Re: [sa-list] RE: Way to skip scanning per-user?
On Thu, 14 Dec 2006, Coffey, Neal wrote:

>  Dan Mahoney, System Admin wrote:
> > I'm looking for an easy way to override ALL scanning (NOT scoring)
> > for a specific user.
> 
>  This needs to be done in whatever you're using to call SpamAssassin
>  (postfix, exim, sendmail, etc).
> 
> > This shouldn't be a difficult feature to implement at all -- I'd
> > imagine about three lines of code :)
> 
>  How do you handle messages with multiple recipients?  Not to mention
>  that the envelope "to" address(s) (who the mail is *actually* delivered
>  to) don't have to match the headers that SA sees.

I said per-user, not per email address.  Spamd knows which local user is 
doing the calling before it ever reads the first line of the message. 
With spamassassin proper (assuming SQL prefs are in play), check $< or $>  
-- with spamc/spamd, it's being communicated.

>  Since SA needs to be called by another program, and that program will be
>  aware of all of this, that's really the place to do the exemption.

See my previous message.  I don't see an easy macro in procmail for the 
current effective UID, nor do I know an easy way to say:

if (**my uid is any of these) {

}
else {
call spamassassin
}

Where as a bonus ** is generated dynamically.


If you can supply a snippet of code that does it, I'd love it.  If I was 
only doing scanning FOR a few select users this might make a bit more 
sense, but it makes sense to me that this be a user_prefable item, as 
opposed to my users asking me to edit /etc/procmailrc

-Dan


--

"SOY BOMB!"

-The Chest of the nameless streaker of the 1998 Grammy Awards' Bob Dylan
Performance.

--------Dan Mahoney--------
Techie,  Sysadmin,  WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144   AIM: LarpGM
Site:  http://www.gushi.org
---------------------------
Thread:
Dan Mahoney
Neal Coffey
Dan Mahoney
John D. Hardin
Theo Van Dinter
Dan Mahoney
Theo Van Dinter
John D. Hardin
Dan Mahoney
Dan Mahoney
Theo Van Dinter

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved