procmail
[Top] [All Lists]

Re: Simplest Whitelist?

2003-11-27 14:58:47
On Thu, Nov 27, 2003 at 10:50:30PM +0700, Tim Rice wrote:

I use this with the whitelist being a text file with one address per
line.  Be careful not to have any blank lines in the whitelist. The
whitelist can contain entire addresses, domains or names. IE:

tim(_at_)thaistuff(_dot_)com
computerstuff.net
procmail-lists


# Deliver Whitelist addresses

:0
* ?formail -x"From:" -x"Sender:" \
  -x"Reply-To:" -x"Return-Path:" \
| fgrep -is -f $HOME/whitelist
{          
      :0 hif
      | formail -A"X-Puremail: Global Whitelist"
      
    :0
    $DEFAULT
}

Tim, you will have a problem with overmatching on this.  For example,
if I were looking for my own email address (dman@) and had it in the
whitelist, but then got mail from someone named feldman@ or sandman@
or freedman@ or goldman@ or whatever, it would match.  In fact, I
just tried it to be double-sure.

-- 
dman

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