Re: [Exim] No verify sender callout for whitelisted hosts

Top Page
Delete this message
Reply to this message
Author: Andreas Metzler
Date:  
To: Exim Users List
Subject: Re: [Exim] No verify sender callout for whitelisted hosts
On Wed, Aug 27, 2003 at 04:22:40PM +0100, Jez Hancock wrote:
> On Wed, Aug 27, 2003 at 04:05:01PM +0100, Jez Hancock wrote:

[...]
>> Struggling with this. Essentially the logic I'm after is:


>> if sender_domains is in +whitelist_from_domains
>>     require verify = sender
>> else
>>     require verify = sender/defer_ok/callout=10s
>> endif


>> and checking continues in the next ACL statement but I'm not sure how to
>> implement this.
> Ok I've ended up with this which appears to work as required:


>   # Deny unless the sender address can be verified via callout:
>   require verify        = sender\
>           ${lookup{$sender_address_domain}lsearch{WHITELIST_DOMAINS_FILE}\
>               {}\
>               {/callout=10s/defer_ok}\
>           }


> Is this the best way to see if $sender_address_domain is in my
> WHITELIST_DOMAINS_FILE or is there an easier way of doing this?


*Imho* this is easier.
deny !verify = sender
     sender_domains = WHITELIST_DOMAINS_FILE


deny !verify = sender/defer_ok/callout=10s
     !sender_domains = WHITELIST_DOMAINS_FILE


            cu andreas