http://www.exim.org/pipermail/exim-users/Week-of-Mon-20040419/070420.html [Exim] Wishlist #254 (2) iplsearch Nico Erfurth masta at perlgolf.de Fri, 23 Apr 2004 16:52:46 +0200 Hi list, here is a patch for wishlist item #254 (yes, we have #254 two times in the list :)). http://perlgolf.de/exim-4.32-iplsearch.diff How it works: The lsearch file can consist of ip-addresses, networks (both, v4 and v6) and a wildcard ('*'). As with the other *lsearch lookups, the keys are delimited by a colon or space from the data. The syntax is a usual ${lookup {$sender_host_address} iplsearch {/etc/exim/badguys}} ONLY ip-addresses (v4/v6) and the '*'-wildcard are allowed as keys for iplsearch. The lookup will always return the FIRST match, NOT the closest, or anything else. For ipv6 addresses/networks you need to enclose the key-part in double-quotes, or exim will recognize the colon as delimiter. The patch also reorganize the way lsearch works a BIT, and adds a new function to host.c that's mainly taken from verify.c Nico PS: As usual, no warrenty for anything, but feedback is welcome.