[exim] SMTP Transport: hosts rewriting

Góra strony
Delete this message
Reply to this message
Autor: christian meutes
Data:  
Dla: exim-users
Temat: [exim] SMTP Transport: hosts rewriting
Hello list,

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!

Christian Meutes
systems engineer
--
claranet gmbh internet service provider
tel +49 (0) 69 - 40 80 18 - 300
email: christian.meutes@??? http://www.claranet.de/