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

I am having trouble configuring my mail server. I cannot seem to get the dns entry correct.

Currently I have: RHEL 5.7 hostname = oraclemail.crpdom01.com with the ip

A Name oraclemail.crpdom.com------>

I need an mx record also. Trouble is do i cannot figure out how do do it?

mx mx1.oraclemail.crpdom01.com ------>
mx oraclemail.crpdom01.com----->
mx mx1.oraclemail.crpdom01.com ------> A name oraclemail.crpdom01.com
mx oraclemail.crpdom01.com ------> oraclemail.crpdom01.com

Any ideas on how to configure this?

share|improve this question
what DNS server are you using? –  Lucas Kauffman Apr 3 '12 at 15:14

1 Answer 1

As per RFC 1035, an MX record must be a canonical hostname; no A record or CNAME is allowed.

If the box is to handle mail for the entire crpdom.com domain, the record looks like this:

crpdom.com. IN MX 10 oraclemail.crpdom.com.
share|improve this answer
It will only handle mail for anything on going to oraclemail.crpdom.com not mail for all of crpdom.com –  southard Apr 3 '12 at 15:40
So: mx oraclemail.crpdom01.com-----> oraclemail.crpdom01.com, just like your last row –  Sandman4 Apr 3 '12 at 16:02
I thought an MX record could not point to a A name record? –  southard Apr 3 '12 at 16:59
The A record would be the IP address for a given name, not the name. The MX record in this case points at the name. –  cjc Apr 3 '12 at 17:43

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.