procmail
[Top] [All Lists]

Re: Hello

2002-09-18 16:01:38
On Wednesday, Sep 18, 2002, at 14:34 Canada/Mountain, Grant Peel wrote:
So here is the question: Can anyone show me how to tell procmail to send an incomming email to its normail dir/file instead of being filtered by the
rest of procmail/sanitizer? As I said, I am new to procmail and am
struggling with recipies right now :-)

Something like this:

Create a file named "/etc/saniwhitelist" or something that contains the email addresses you want to exclude from the sanitizer test. One email address, or partial address, per line.

[ For example, if you want to exclude all mail from "mydomain.com" regardless of user you could just put "mydomain.com" in this file ]

then, find the portion of your procmailrc that uses Sanitizer and save it to a different file (remove it from the procmailrc). This will make all of this much less confusing and easier to manage.


WHITELIST=/path/to/whitelist/file
:0:
* ! $? formail -xFrom: | grep -i -f $WHITELIST
{

INCLUDERC=/path/to/sanitizer/rc/file

# You can just wrap all the sanitizer stuff with the {}'s and not create
# the include file, but if sanitizer is more than a few lines it's going
# to get messy
}

that (or something like it) should do it.

Also note that if you exclude from virus checking then klez variants will get through since they tend to masquerade as being from people you know. You could check against other headers than From: though.

What do you think, sirs?

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

<Prev in Thread] Current Thread [Next in Thread>
  • Hello, Grant Peel
    • Re: Hello, LuKreme <=