procmail
[Top] [All Lists]

Re: Using Procmail for RBL Blacklists

2003-04-08 12:40:25
[ courtesy copy mailed to original poster (Kim) ]

Following up myself yet one more time:
| 
| OCTET='(0|[1-9][0-9]?|1[0-9][0-9]|2([0-4][0-9]|5[0-5]))'
| 
| :0
| * 1073741824^1 ^Received:\/.*by (astro\.snellfamily\.com|\
|               jinx\.unknown\.nu)
| * ! MATCH ?? from astro\.snellfamily\.com.*by jinx\.unknown\.nu
| {
|   CHECK="$MATCH"
|   :0
|   * $ CHECK ?? ()\[\/$OCTET\.$OCTET\.$OCTET\.$OCTET
|   { CHECKIP=$MATCH }
| }
| 

Doh!  This is more simply done:

OCTET='(0|[1-9][0-9]?|1[0-9][0-9]|2([0-4][0-9]|5[0-5]))'

:0
* 1073741824^1 ^Received:\/.*by (astro\.snellfamily\.com|\
                jinx\.unknown\.nu)
* ! MATCH  ?? from astro\.snellfamily\.com.*by jinx\.unknown\.nu
* $ MATCH  ?? ()\[\/$OCTET\.$OCTET\.$OCTET\.$OCTET
{ CHECKIP=$MATCH }


-- 
Email address in From: header is valid  * but only for a couple of days *
This is my reluctant response to spammers' unrelenting address harvesting



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail