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 have this "new" problem, i just rebuilt the configuration of our domain+server+hosting to new office standards.

Here is the setup

We have a domain with a well known registrar. A "web hosting" company, with it's own, that let's us configure everything (except dynamic ip updates) A "dns hosting" that supports dynamic ip updates. An office server on a dynamic ip connection. E-mail


On the .com registrar side i have the "dns hosting" name servers hooked up.

From this "dns hosting" i redirect and traffic to the "web hosting" server an ip like with some CNAME and A records. Traffic to goes to the dynamic address.

All is well... ping works fine... services work fine... dns propagation is all done by now.

The problem is mail. When i send a mail to my domain i get instant reply from the DNS: reports "mail for loops back to myself"

In my previous configuration all i needed to do is use a TXT record like "v=spf1 ip4:​ ip4: a mx​~all" and e-mail would just "work"

Now it doesn't... am i missing something? Did my previous dns host have some kind of standard configuration that made it work and this one doesn't? Do i need to add anything else.

share|improve this question
You have to describe how your mail should work: where is it sent from, where is mail destined for received, etc. The TXT record is for the SPF check used by anti-spam filters to help judge if email claiming to be for is coming from an authorized mail server. It doesn't have anything to do with directing incoming mail for your domain. That would be the MX record. – cjc Nov 8 '12 at 12:23
Also you need to specify WHAT exactly isn't working? Do you see an error when you try sending/receiving emails? Can you post the log file? – tftd Nov 8 '12 at 12:25
Fixed now... i get an e-mail reply that says reports "mail for loops back to myself" – unmircea Nov 8 '12 at 12:33
That's more mail server configuration than DNS. Can you update your question with the mail server software you're using? – cjc Nov 8 '12 at 12:37
The problem is this... i get a reply from my DNS Hosting mail server... but mail is supposed to reach my Web hosting server... i want to route mail to another server altogether. – unmircea Nov 8 '12 at 12:47
up vote 1 down vote accepted

Just checked MX records and was pointing to "LOCAL"... added an A record for to the web host and another A record in the DNS host... the had the MX record point to that. FIXED

Seems older dynDNS service did this by default since it had no Backup MX, this one does, so it directs to their own servers by default.

share|improve this answer
MX records must never point to a hostname which is a CNAME. This will break your mail in subtle and annoying ways. – Michael Hampton Nov 9 '12 at 0:57
True... i read the RFC 2 hours after i wrote this. I now use an A record to the ip with the same name. I edited the answer. – unmircea Nov 9 '12 at 6:16

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.