Re: [exim] dnsdb

Top Page
Delete this message
Reply to this message
Author: Marc Perkel
Date:  
To: Steve Sargent
CC: exim-users
Subject: Re: [exim] dnsdb


Steve Sargent wrote:
> Does anyone have an example of using a dnsdb lookup in an ACL condition
> of this sort:-
>
> condition = ${if and {\
>                  ....... dnsdb a=
>                  ....... dnsdb mx=

>
>
>


Here's one I use:

    condition = ${if and {\
                    {eqi {${lookup 
dnsdb{a=$sender_address_domain}{$value}{NONE}}}{NONE}}\
                    {eqi {${lookup 
dnsdb{mx=$sender_address_domain}{$value}{NONE}}}{NONE}}\
                    }\
                    {yes}{no}}