Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I'm almost done configuring my nameservers for my domain. Everything works fine website responding...but My MX record don't seem to be working, and I tried a lot of things. I created a cname with subdomain pop and smtp an MX record with has a host name (but I have no idea if it should be that host) i did try but nothing seem to be working. If you compare and (which the MX is working) maybe you could help me figure out what i'm doing wrong here.

I'm configuring my nameserver on


share|improve this question
up vote 9 down vote accepted

Make sure that mail server MX record is referring has A record, CNAME is not enough. This is important but I do no remember why. Here is an example:

@       IN SOA 1308717736 21600 7200 1209600 10800
@       IN NS
@       IN NS
@       IN MX   10
mail    IN A

Also, make sure there is corresponding PTR record that resolves IP addres to the name of your mail server. This is not directly related to your problem, but it is important for successful mail delivery.

@       IN  SOA 2011041900 3h 15m 3w 3h
@       IN  NS
@       IN  NS
200     IN  PTR

Once you have your mail working consider adding SPF record.

share|improve this answer
CNAMEs will work for MX Record entries, they are just not RFC compliant. – user48838 Jul 8 '11 at 9:48
Thank you for the quick answer, here is my setup.. I can receive emails on but i can't send email from : @ IN MX 7200 10 mail IN A 7200 ( 50 IN PTR 7200 @ IN NS @ IN NS – Azshlanar Jul 8 '11 at 13:50
is the IP suppose to be my Public IP ? in this case I put the address that is working for other domain... – Azshlanar Jul 8 '11 at 14:05
Thank you it is working!!! – Azshlanar Jul 8 '11 at 15:57
CNAMEs do not work if used for domains in MX records, contrary to the false claim above. The loop prevention algorithm specified by the SMTP standard breaks if the SMTP Relay client system is a fallback mail exchanger but the name used for it in MX records is an alias via a CNAME resource record. – JdeBP Jul 9 '11 at 1:05

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.