Re: [exim] ${lookup{value}lsearch{file}{yes}{no}} tricks hel…

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Lena
Data:  
Para: exim-users
Assunto: Re: [exim] ${lookup{value}lsearch{file}{yes}{no}} tricks help request
> From: supportsobaka@???

> Could someone help with syntax of?${lookup{value}lsearch{file}{yes}{no}}
>
> I'm trying to write a condition that will return "FALSE" if either of hosts
> from "Received:" headers (yes, any on the way from sender's server to me)
> is listed in?/etc/whitelist_networks, otherwise "TRUE".


deny !condition = ${if forany{<\n $h_Received:}\
                             {match{$item}\
                                   {\N\B(\d+\.\d+\.\d+\.\d+)\B\N}\
                                   {$lookup{$1}iplsearch{/path/file}{1}{0}}\
                                   {0}\
                             }\
                   }


--
Lena