On 27/02/18 18:35, Sebastian Arcus via Exim-users wrote:
> condition = ${if match_domain {${lookup
> dnsdb{mx=$sender_address_domain}}}{+no_extended_callout_mxs}}
>
>
> For example the mx query might return:
>
> 10 mx1.exampledomain.com
> 20 mx2.exampledomain.com
> 0 exampledomain-com.mail.protection.outlook.com
>
>
> For example I'm interested in the *.outlook.com domain - I want to know
> if it is in the list of mx's - but I am essentially comparing a list
> (the list of mx records) with another list (of whitelisted domains)-
> which I guess is not possible.
Have a look at the foreach/forany expansion conditions, and to
trim the mx priorities away from the mx lookup try the map expansion.
--
Cheers,
Jeremy
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/