procmail
[Top] [All Lists]

Re: exclude a local user from anti-spam/virus procmail testing.

2004-05-05 04:15:50
On Wed, 05 May 2004, 10:16 GMT+01 Obantec Support wrote:

I have a local user who does not want any local anti spam/virus rules.
Problem is i have global procmail rules which are working well and catching
a lot of junk so do not want to remove these.

I would like to leave the global as is and add some kind of exclude if email
is local user wwwxxxyyy

Following the exclusion it should still pass to the local users own
.procmailrc

Mark

Hi Mark,

try something like this in your global procmailrc:

 SPC = " "
 my_DISABLE_USERS = "adam eva"

 # Ensure each username within my_DISABLE_USERS is surrounded by a space:
 my_DISABLE_USERS = " $my_DISABLE_USERS "

 :0
  * ! $ my_DISABLE_USERS ?? ()$SPC$LOGNAME$SPC
  {
    INCLUDERC = /path/to/global/antivirus.rc
  }


This will run the global antivirus.rc for all users except for those
specified in my_DISABLE_USERS.

rob.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail