Re: [exim] SMTP Transport: hosts rewriting

Top Page
Delete this message
Reply to this message
Author: John Burnham
Date:  
To: christian meutes, exim-users
Subject: Re: [exim] SMTP Transport: hosts rewriting

>
> I have many many many domains which are resolving with their
> MXes into one IP address. This IP address isnt reachable
> inside them exim-cluster-setup so that i need to rewrite this
> IP address into a other one. So if the transport handles a
> Domain which resolves with its MX into 10.10.10.10 it should
> use instead 172.20.20.20 for delivering, when the MX doesnt
> resolve into 10.10.10.10 the transport should operate
> normally instead and has to use the MX address.
>
> I configured this but it doesnt work, neither with $host or
> $host_address:
>
> remote_smtp:
> driver = smtp
> hosts_override = true
> hosts = ${if eq{$host}{10.10.10.10}{$host}{172.20.20.20}}
>
> Does anybody got an idea, how i can accomplish this?
> Thanks for you ear!
>

Is there a reason why you're not doing this with a manualroute router instead ?
John