procmail
[Top] [All Lists]

Re: whitelist

2002-05-15 20:22:29
At 19:41 2002-05-15 -0700, Chuck Charlton did say:

contains the addresses, and a recipe that checks that file for
acceptability, and then releases the mail to $DEFAULT

Actually, I'd think you'd want to just bypass any spam filtering, THEN let regular filters handle the messages. Such is the concept of a greenlist: to _allow_ the mail, not simply dump it into a mailbox because it wasn't suspect.

How would I implement this?

Search the list archives for "greenlist". The following is off the top of my head, and no doubt isn't precicely what you're looking for (it makes a grab for a number of likely headers for the address which you might want to be greenlisting). I use something similar to bypass twit filtering (but it uses different headers, and a purpose-written grep tool)

:0h
FAILKEY=| (formail -xFrom: -xReply-To: -x"From " | grep -i -w -f greenlist)

# If failkey is blank, we didn't match anything in the greenlist, so subject
# this message to twit and spam filters - if it passes those tests, then
# we'll continue to process the message.
:0
* FAILKEY ?? ^^^^
{
        INCLUDERC=twits.rc
        INCLUDERC=spam.rc
}

# rest of .procmailrc with usual filters, etc.

- Sean ( I remember the well form the 1980's. They're just up the road from me) Straw

---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.

_______________________________________________
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>