On Thu, 13 Jan 2005, Alan J. Flavell wrote:
> On Thu, 13 Jan 2005, Tony Finch wrote:
>
> > Exim can't do this.
>
> Well, I wouldn't go quite that far. Exim doesn't do this itself, but
> it's possible to program this in the DATA ACL.
In fact there are some new features in the dnslists ACL test and the dnsdb
lookup method which make it easier. The following should extract all the
IP addresses from the Received: lines and check them in the SBL.
deny dnslists = sbl-xbl.spamhaus.org/<|${sg {${sg {$h_Received:} \
{.*?([0-9]+[.][0-9]+[.][0-9]+[.][0-9]+)} {\$1|} }}
{([0-9.|]*).*} {\$1} }
Tony.
--
f.a.n.finch <dot@???>
http://dotat.at/
BERWICK ON TWEED TO WHITBY: NORTHWEST 5 OR 6, DECREASING 3 OR 4 DURING DAY,
THEN SLOWLY BACKING SOUTHEAST DURING THE EVENING AND NIGHT. FAIR. GOOD.
MODERATE, BUT ROUGH IN OPEN WATERS UNTIL LATER TODAY