Jeremy Harris <[email protected]> (Fr 29 Jan 2016 10:03:44 CET):
> On 29/01/16 08:12, [email protected]  wrote:
> > Is there any way to route outgoing emails via smarhost
> 
> a manualroute router, early in your routing chain...
> 
> > but only if
> > target MX has specific string in its dns name?
> 
> ... conditioned on a match of "this_string" against
> the results of a dnsdb mx lookup on the domain.
> 
> Be aware that the lookup returns multiple results,
> and not necessarily including the one that would have
> been used.


    ${if forany{<\n ${lookup 
dnsdb{mxh=$domain}}}{match{$item}{\N(?i)\.google\.com$\N}}}'


    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: F69376CE -
 ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -

Attachment: signature.asc
Description: Digital signature

-- 
## 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/

Reply via email to