4

I've inherited a setup where the mail server is exchange 2010.

For some reason, I'm not sure why there is 2 MX records setup. One being the exchange server which is the higher priority while the external (non-exchange) server is the secondary mx record. I don't believe this was done for redundancy reasons as the other mail server is not set to route mail back to the exchange server (it's just the webhosts email for their hosting)

The client has been experiencing disappearing email, however after my investigations its not actually disappearing, but exchange is successfully receiving the mail and then passing it on to the external server. It isn't happening all the time, just with some email messages from some domains.

My question:

Is exchange passing the mail on because it can see the secondary MX record and is configured (somewhere) to send mail out?

If so, how do I stop it? Is it as easy as just removing the second MX record pointing to the external mail server and exchange will stop passing mail on?

I'm not exchange expert so I'm kinda stumped. Exchange MX tools are saying everything is setup and configured correctly from an external point of view.

EDIT:

I don't believe the secondary MX server (MX2) was setup to cache mail in the event the exchange server is unreachable. A now defunct IT contractor came along moved the clients mail from MX2 to an onsite exchange server.

By disappearing email I mean that its not showing up on the exchange server, but in the mailbox on MX2. I used the message tracking interface in exchange to find the emails in question and the following is listed in the message details:

Submitted
23/11/2011 9:32 AM exchangeserver.name.here
The message was submitted to exchangeserver.name.here

Transferred
23/11/2011 9:32 AM exchangeserver.name.here
The message was successfully handed off to a different e-mail system. This is as far as we can track it.

Exchange is handing off the email. I don't want it to, how do I stop it?

5
  • 4
    Are you sure exchange is forwarding email to the other server? Or are external systems deciding that is the best server and delivering to it directly?
    – Zoredache
    Nov 22, 2011 at 23:44
  • 1
    Maybe you can write real domain-name here? We aren't fortune-tellers and shamans here and can't debug mail-troubles blindly and there are not any dangerous in posting domain name. Backup MX in common case is better for reliable mail-delivery Nov 23, 2011 at 4:56
  • I didn't take someones place, I inherited an over complicated mess for an office of less than 15 people. Installing onsite exchange is idiotic for this size. Nov 23, 2011 at 5:30
  • Please stay on topic. I asked a question and you're getting personal. If you have nothing constructive to contribute there is no reason for such comments. And for the record, I don't believe its a backup MX which is the question I'm asking about. The ENTIRE point of this website. Nov 23, 2011 at 12:46
  • @LazyBadger Tone it down.
    – sysadmin1138
    Nov 23, 2011 at 12:53

2 Answers 2

6

I'm afraid I don't believe Exchange is doing what you claim. Once Exchange has delivered the message locally, that is it - there is no reason to send the mail on elsewhere because it has reached its final destination. That's like giving a letter you receive in the post to somebody else when you've read it - you just don't do that.

It could be a transient error on your Exchange server which is causing remote mail servers to choose a higher preference MX record. If you pardon me from quoting Wikipedia for a moment, this sums it up quite nicely.

It is not specific about what should cause the sender to use a higher-preference MX record, merely that the sender must be able to use higher-preference MX records. Some servers (such as Sendmail and Postfix 2.1 or later) will attempt the next-furthest MX server after some types of temporary delivery failures, such as greeting failures. Other servers (such as qmail and Postfix 2.0 or earlier) will only use more distant MX records if the servers specified in the shortest-distance MX records could not be contacted at all.

-- Wikipedia MX Record article

Before you go removing this second MX record though, you might just want to check it's not working the other way around than you think. At my old place we had our Exchange server as MX preference 10 and an emergency cloud based system at preference 20. This cloud system would accept our mails when the Exchange server was down and deliver them when it was back up (to give a very high level overview, what else it did is not relevant here).

I'm also confused by your comment. You say they have disappearing mail, but then you say it's not disappearing. What is happening with it then, if you don't mind elaborating? Are you maybe seeing a problem that isn't there, and this second MX record is just a red herring?


tl;dr

If the second MX record is definitely nothing to do with your email infrastructure, then it has no business being be there and you should remove it. MX records of all preferences should be capable (even if not immediately) of successfully delivering the message to its recipient.

4
  • 1
    Worth repeating -- "If the second MX record is definitely nothing to do with your email infrastructure, then it has no business being be there and you should remove it. MX records of all preferences should be capable (even if not immediately) of successfully delivering the message to its recipient." Nov 23, 2011 at 1:36
  • See my edits above. Nov 23, 2011 at 2:03
  • From what my investigations have shown, I dont believe it has anything to do with the infrastructure. But Exchange is handing mail off instead of delivering it. I'm just concerned that there is a setting in exchange somewhere that I need to change before disabling the secondary MX. Not all email is being handed off, only some. Nov 24, 2011 at 1:23
  • removing the second SMTP resolved the issues. Dec 6, 2011 at 2:19
5

Will having 2 MX records pointing to different mail server types cause delivery issues?

Without the proper configuration, this will almost certainly result in a semi-broken system.

I'm not sure why there is 2 MX records setup. ... If so, how do I stop it? Is it as easy as just removing the second MX record

Is that other server suppose to be receiving mail, or is it only setup to send mail? If it is supposed to be able to receive mail, then you are going to need to dig deeper into the configurations and figure out what is going on.

If you don't have any special SMTP routes setup on both mail servers, to deal with this multi-server setup, then you should remove the MX record for the non-exchange server.

It is certainly possible to have that other server setup to act as a backup, but if it hasn't been setup properly, then you will lose mail.

1
  • The second mx as far as I can tell is not used, but with the message details, I'm not sure. Nov 23, 2011 at 2:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .