Re: [exim] route to smarthost only emails that would be send…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Heiko Schlittermann
Datum:  
To: exim-users
Betreff: Re: [exim] route to smarthost only emails that would be send to MX dns ending with .google.com
Jeremy Harris <jgh@???> (Fr 29 Jan 2016 10:03:44 CET):
> On 29/01/16 08:12, krzf83@??? 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 ------------ -