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

Right now I have a single mail server for IMAP. Let's say I want to introduce Exchange but not all users will be on it. Some users will be on my "legacy" IMAP, others on the "new" Exchange. Is it possible to "split up" your users (from the same e-mail domain) on two services like this? What would the MX records look like? My guess is that this isn't possible, but thought I'd ask.

By the way, I realize that Exchange can offer IMAP and all that, but my question is more about splitting users across services and the MX records. The actual protocols above are only examples.

share|improve this question

migrated from May 19 '10 at 17:55

This question came from our site for professional and enthusiast programmers.

You can have more than one MX record, which point to different mail servers. There's a priority setting, so mail is attempted to be delivered to the primary first... – OMG Ponies May 19 '10 at 16:53
@OMG Ponies Yes, but it's not going to try the second server on the list if you successfully connect to the first one, even if the first server rejects the message as a bad recipient. – ewall May 19 '10 at 17:45
@ewall: Ah yes - my net/sysadmin skills are very rusty. – OMG Ponies May 19 '10 at 17:52
You could possibly try adding email gateway, which would just inspect the destination address and route accordingly – user304055 Aug 10 '15 at 9:31
up vote 8 down vote accepted

There's no way you can do this via the MX records within a single domain name--DNS is always going to point emails destined to and to the server that answers at the highest-priority MX record. (In other words, the second -highest priority MX record is not used unless there was no response at the first IP address. If you connect to the first but it rejects the email as a bad address, the sending client is not going to re-try sending to the next MX record.)

However, you could do this with a subdomain. For example, your main email server (and MX record) would respond for all emails destined to, but your Exchange server would only respond to emails like And one trick you could do to make this a little easier would be to have the main server except emails for and forward them all to (You would want to configure Charlie's email client with a "Respond-To" address of, to make it less confusing for the senders.)

Also, there's a big caveat with the above trick: since Exchange is so tied into the Active Directory domain, it's not easy to move users to subdomains or change the subdomain that the Exchange server is answering to... so it may end up easier for you just to convert everyone off the old server to the new Exchange server all at once.

share|improve this answer
It's pretty easy to setup Exchange to answer to a subdomain, or a variety of configurations. It does require AD though. Regardless, +1 you can't accomplish what he wants with MX records. – Chris S May 19 '10 at 18:01

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.