This maybe simple or I am just missing the obvious.
I have an exclude list that when procmail see an email sent to, it just
delivers it.
It is basically an one line text file with all the email address each on
a line.
The recipe is like the following.
## *********************************************
## Start of exclude list.
:0
* ? ($FORMAIL -x To: | $FGREP -iqwf $excludelist)
${DEFAULT}
## *********************************************
What I want is to stop spammers from sending a spam with one of those
emails to be in the to field which will have it delivered.
For example if myemail(_at_)mydomain(_dot_)com is in the exclude list.
then an email sent with
To: myemail(_at_)mydomain(_dot_)com, anotheremail(_at_)mydomain(_dot_)com will
be delivered as
in the recipe action line.
Is there a way of limiting the condition
* ? ($FORMAIL -x To: | $FGREP -iqwf $excludelist)
To match only a single address in the To: filed?
I have tried the following in my sandbox.
* ! ($FORMAIL -x To: | $FGREP -iqwf $excludelist),.*
It still gets a match.
Thank you.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail