Re: [exim] Lookup IP in foreign file format

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Tony Finch
Dátum:  
Címzett: Herb Martin
CC: exim-users
Tárgy: Re: [exim] Lookup IP in foreign file format
On Sat, 23 Jul 2005, Herb Martin wrote:

> I have a non-exim email blocking file format (that is
> unchangeable):
>
> 1 192.168.0.0 192.168.255.255
> 1 210.211.163.0
> 1 218.90.180.13
> 1 64.140.160.110
>
> While I can easily convert this file to a simple
> IP only for the 'deny', I would like to use this
> file dynamically, reading it in place and using it
> "as is."


Try ${lookup {1 $sender_host_address} lsearch {FILE} }

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}