Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an Exchange 2010 server that is visible under 2 MX records and with 2 different IP addreses from 2 different network providers. They both report as when someone is sending us an email and they both report as when we send email. But for now the 2nd MX (and ip address that is sending the email has actually different domain name, reverse dns then the one it's reporting when it connects to other servers.

The problem is I don't know which IP Address will be used to send email out so I was thinking to setup same record in DNS for both Ip addresses, and same Reverse DNS for both at both providers.

Will that work just fine or I'm missing something? I guess then I just have to add one MX record and not two as it would be meaningless to add 2nd.

Current setup looks more or less like this:

MX record: IN MX 5
A record: IN A
MX record: IN MX 10
A record: IN A

And I would like to change it to:

MX record: IN MX 5
A record: IN A
A record: IN A

As it's the only way I think this will go. The problem I can see is if one Ip address is down and dns will be pointing the server to it no matter what then some mails will bounce off. And I guess for that round-robin to work i will need TTL 0 so DNS (at hosting has to allow that).

share|improve this question
What exactly do you want to achieve here? Are there any problems with your current setup? I think the 2x MX records is a better way of doing it, than the round-robin DNS. – MichelZ May 22 '12 at 11:53
The problem is that if mails go out thru 2nd ip address on one server they got: 4.7.1 Client host rejected: cannot find your hostname. When actually i checked and the ip address resolves but it resolves just it doesn't match the name. – MadBoy May 22 '12 at 12:01
I guess it could be the other server but apparently (so says on Wiki) some servers report unknown host if the RevDNS doesn't match DNS, – MadBoy May 22 '12 at 12:07
So, the best thing would be to get both IP Addresses to resolve to I'm sure your provider can help you with that? – MichelZ May 22 '12 at 12:11
Yes and i will do that. But the question is should I change the DNS of those ip addresses as well to or leave it as it is.. Because if i will change it I get Round Robin DNS – MadBoy May 22 '12 at 12:21
up vote 1 down vote accepted

You should change your Reverse DNS entries for both IP Addresses to match your EHLO domain

This should get rid of your problem :

4.7.1 Client host rejected: cannot find your hostname

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.