First, I don’t claim to be the ultimate expert on this stuff, but I have readup on it and been through it a few times.
An MX record serves only one purpose. It is there so that a foreign mail server trying to send mail to domain.com can find the appropriate mail server for INCOMING mail to domain.com.
If I am an SMTP server, i have the question “I have mail for [email protected], who wants it?” The answer is obtained by looking up the MX record for the domain… starting with the highest priority MX record found. If that address fails (theoretically) I should move on to the next priority MX record, until there are no more MX records to try, and then either give up, or try again later, depending on how I am configured.
If you have 2 MX records of the same priority, then theoretically other servers will choose randomly, so half the mail is attempted first at one of the servers, and half at the other.
It really makes no sense to have an MX record pointing to “SMTP.domain.com”, assuming that it really is an SMTP server, and not misnamed. In your setup there are basically two things that could be going on…
-
smtp.otherhost.com is actually also a POP/incoming server (and in that case it is probably exactly the same server with the same IP as mail.otherhost.com).
-
smtp.otherhost.com is not actually accepting incoming mail, and so roughly half of the mail sent to domain.com fails at least once by going to the wrong server, and then succeeds after some random number of additional tries. (These would not be failures that would create bounces or errors back to the user, but would be inefficient).
Either way, it may be working fine, but it is not really right. If smtp.oterhost.com is not accepting incoming mail, then you shouldn’t have it in an MX record at all.
If smtp.otherhost.com is the SAME server as mail.otherhost.com, then you definately should not have two MX records like that, because in the future SMTP.otherhost.com could very well be moved to some other IP, and at the very least, the two records are redundant (and not in a good way) and could only cause issues and confusion in the future.
Finally, if smtp.otherhost.com is actually a seperate server from mail.otherhost.com, but is set up as like a backup/relay for incoming mail to mail.otherhost.com, then yes, you could have an MX record for both, BUT smtp.otherserver.com should have a lower priority (bigger number) than mail.otherhost.com… that way when things are working normally, mail will go directly to te server where the client will be picking it up, and will only go to the backup when it needs to.