Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We have several domains all pointing their MX records at mail.ourdomain.com, an internal mail server.

We are looking to outsource our email to a new supplier, who would like us to use mail.newsupplier.com; their mail server.

We'd rather not change all of the domain names to point to that MX record; several aren't in our control, and it would mean attempting to get many parties to change their MX records at the same time, which seems problematic.

Simpler would be to repoint mail.ourdomain.com at the IP for the new supplier. The problem is that our supplier isn't able to guarantee that IP will be fixed.

My question is, therefore: is changing mail.ourdomain.com to CNAME to mail.newsupplier.com an acceptable solution?

(For the record, only the email is moving, so we'd want to leave www.ourdomain.com and everythingelse.ourdomain.com unchanged.)

I've found several messages warning of the dangers of CNAMES in MX records, but I can't quite find someone talking about this particular setup, so any advice will be greatfully received.

share|improve this question

2 Answers 2

up vote 16 down vote accepted

According to RFC 1123, the MX record cannot point to a CNAME. If I were in your situation, I would setup mail.ourdomain.com as an A record pointing to the new suppliers IP address and then quickly work on changing all MX records over to the correct data. Then address why changing MX records is so difficult in your organization.

That being said, most mail servers will still submit mail to a CNAME; however, you can't be guaranteed of it.

share|improve this answer
3  
I would stick to the RFC: No you can't. –  Benoit Nov 4 '09 at 18:26

There are companies that provide Backup SMTP Service aka email store and forward. Perhaps you could use one of those companies to wash the IP for you.

If they can't be the permanent middleman maybe just having them as a secondary MX record will help with the transition process so you don't have undeliverables bouncing around.

If you are currently speaking of one of those sorts of companies maybe you could second source it and have them forward back to the first source.

share|improve this answer

Your Answer

 
discard

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.