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

Top Page
Delete this message
Reply to this message
Author: Lena
Date:  
To: exim-users
Subject: 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