Dave Evans wrote: > On Mon, Nov 05, 2007 at 09:48:21AM -0600, Matt wrote: >> Also, I heard some block IP addresses that look dynamic such as >> 127.0.0.1.myisp.com. How is that done? > > Personally I do that with some Perl code, but I'd be interested to hear how > other people do it (read: if nobody offers an elegant way of doing it, I'll be > happier about sharing my inelegant code :-) > >
Here is a funny regex I use:
warn
set acl_c6 = ${lookup dnsdb{ptr=$sender_host_address}{${lc:$value}}
{}}
condition = ${if match {$acl_c6}{\N(^[^\.]*[0-9]\-+[0-9]|^[^\.]*[0
-9]{5,}[^\.]|^([^\.]+\.)?[0-9][^\.]*\.[^\.]+\..+\.[a-z]|^[^\.]*[0-9]\.[^\.]*[0-9
]-[0-9]|^(dyn|cable|dhcp|dialup|ppp|adsl)[^\.]*[0-9])\N}{yes}{no}}
log_message = Generic reverse DNS
delay = 30s
smime.p7s
Description: S/MIME Cryptographic Signature
-- ## List details at http://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/
