Hello, Thanks all for the response, there are many ways to solve this. It took me a while to figure out which would be the best and most simple. While I was doing that I cam across " router/150_exim4-config_hubbed_hosts". I then created "/etc/exim4/hubbed_hosts" with an entry like this: "mydomain.org: 222.333.444.555" where the IP address is the external IP address of the smtp server. Sending a test email and checking the logs it appears the emails were sent correctly. I also received a confirmation email
I don't know if this is the proper use of hubbed_hosts, but it required the least configuration, just creating /etc/exim4/hubbed_hosts with the right entry was enough. The only downside I can see that it doesn't take advantage of MX records, so if smtp1 is down it can't try smtp2 etc. But I can live with that... until it goes down. ;-) Mike Cardwell wrote: > Hmmm. That's annoying. If your box has iptables, you could do > something like this: > > iptables -t nat -A OUTPUT -p tcp -d smtp1.mydomain.org --dport 25 -j DNAT > --to-destination 222.333.444.555:25 I tried this, but exim4 was still unable to find the smtp server. Thank you, Jeroen -- ## List details at http://www.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://www.exim.org/eximwiki/
