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}}