procmail
[Top] [All Lists]

Re: Simplest Whitelist?

2003-11-28 08:50:13
In your message dated Thu, 27 Nov 2003 22:42:41 +0100, Dallman said that ...

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.

I understand this if using "dman@" only in the whitelist, but what if the
whitelist had dman(_at_)whatever(_dot_)com(_dot_) Would my recipe still match 
the other
dmans(_at_)somethingelse(_dot_)com?




-- 
Best Regards,

Tim Rice
---------------
Phuket Thailand


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