procmail
[Top] [All Lists]

Re: Domain White Listing Question.

2004-06-09 15:01:34
At 02:19 PM 6.9.2004 -0700, multimedia-fan(_at_)myrealbox(_dot_)com wrote:
On Wed, 09 Jun 2004 20:22:43 +0000, Klaus Johannes Rusch
<KlausRusch(_at_)atmedia(_dot_)net> wrote:

multimedia-fan(_at_)myrealbox(_dot_)com wrote:

I know that I may be overlooking something basic, but I am honeslty
unable to find it.
 

You are matching against the STRING $FGREP -iqf $domainwhitelist, not 
grepping for the domain name:

* FROM_DOMAIN ?? $FGREP -iqf $domainwhitelist

You probably want to grep the file $domainwhitelist for occurances of 
$FROM_DOMAIN.

Any suggestions how to approach that?

Thank you for the explanations, and pointing out the part that I missed.



I should have cleaned up the example I sent earlier. Didn't notice the
unused lines still there. Here's a cleaner one:

## Blacklist emails FROM                           
:0 w:                                              
* ? formail -x"From" -x"From:" | $EGREP -i -f $BLACKLIST1
$BOX                      

## Blacklist emails TO
:0 w:                           
* ? formail -x"To" -x"To:" | $EGREP -i -f $BLACKLIST2
$BOX

Best regards,
Jack L. Stone,
Administrator

Sage American
http://www.sage-american.com
jacks(_at_)sage-american(_dot_)com

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