Email not working correctly after DNS update

Tom asked:

I have my domains at name.com where they are pointing to cloudflare DNS name servers.

After changing webhost I have changed my server IP address at CloudFlare.

My setup is this:

A localhost points to 127.0.0.1 Automatic       
A example.com   points to xxx.xxx.xxx.xxx   Automatic       
CNAME direct    is an alias of example.com  Automatic       
CNAME ftp   is an alias of example.com  Automatic       
CNAME mail  is an alias of example.com  Automatic       
CNAME www   is an alias of example.com  Automatic       
MX example.com  mail handled by example.com Automatic   

However – after 48 hours – I am receiving email on both my new and on my old webhost email (i.e. I have setup two email accounts in thunderbird – both info@example.com – that each check a pop3 at either the old or new webhost)

My answer:


You can’t run email through CloudFlare; it only proxies web traffic.

So your MX record must point to a hostname with an actual IP address not in CloudFlare, that is, a gray cloud showing in the DNS, and an actual address record rather than a CNAME.

For example:

CloudFlare DNS panel


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.