Troubleshooting Email Delivery Issues when using Cloudflare

This tutorial covers the steps you should take if, when you change your domain to point to Cloudflare, you no longer receive emails to your domain. If you follow this tutorial and still need further help, please let us know what you have tried and share your domain name and, if possible, a redacted screenshot of your DNS records in Cloudflare.

1. Do you have any MX records set for your domain?
You will need to have MX records set in the DNS tab of your Cloudflare dashboard for you to receive emails. There is a tutorial on Adding DNS Records if you need help with this. Your MX record should point to the server that manages your mail. Examples of what this should look like are:

Where is your domain name, is the server name required by your mail host. The one pointing to is often used when you are on shared hosting and your email is hosted on the same server as your website.

2. Is the name field of your MX record set to @?
If not, it covers a subdomain for mail, not the mail domain. Make sure the name is set to @ or on the MX record. Where it says in the examples above, make sure this shows your domain name here or the MX record will not work as expected.

3. Do your MX records point to (or similar)?
If so, make sure you have an A record set for mail pointing to the IP address of the server that handles your mail (given by your email provider or web host). (make sure this is set to :grey:).

If you have an MX record like this example

where the mail is handled by a subdomain of your own domain, you will need another DNS record. If you use, it needs to have the name mail, for example. It will need to be an A record pointing to the IP address of your server, shown as in the example below:

4. Do you have an A record (normally mail) pointing to the IP of the server where your mail is hosted?
If you have created an A record, as shown in step 3, make sure this has a :grey: next to it. If it is :orange:, click the cloud to turn it :grey:.

When you connect to the server to retrieve mail, you must connect through a host that is set to :grey:, i.e. if your mail program is set up to connect through which has an A record set to :orange: then it will not work. You should probably create another hostname like or that is set to :grey: so it does not affect your website config on Cloudflare. Once you have another entry like set to :grey:, you should modify the hostname that yous program connects over to rather than

In practical terms: I will use Outlook as an example, it is similar to other email programs/apps. When you configure an email account on Outlook, it will ask for a server name. This is often provided by your webhost as something like, in this case, you must have an A record for mail pointing to your server IP, that is set to :grey:. If you try to use a subdomain/domain that is :orange:, your mail will likely not work.

This is a Community Tutorial, most are wiki posts, so can be contributed to by Regulars and MVPs here, you can view all the community tutorials here. If there is a tutorial you would like to see, you can request one here.

Other great resources on this community include the Community Tips . These address best practices when configuring Cloudflare, how to fix issues you may see, and tools to troubleshoot. Also you can view Expert Tips, great posts on the community that can help users with a similar issue.

We encourage users to check out these great resources and the Cloudflare Support Centre before posting

My emails stopped comming - not reachable
After setting up cloudflare account, email is not working
My Emails Stop Working I Can Not Send Or Receive
I can't send / receive mail
After CDN from Cloudflare Cannot Configure Email on Android Mobile
How do I direct Gmail import to my site on Cloudfare?
Webmail Not work after using Cloudflare
Cloudflare NS Update
Need help to configure our DNS record to make email work under the cloud
Mail is not received anymore
After adding my website to Cloudflare I didn't receive email any more
Weird e-mail error returns
Mail sent but not received
I want to link my domain to godaddy email cpanel
Ajuda Email não funciona
Name Servers
Problem setting DNs and Shopify
MX records not propagating correctly
Free plan for a video game website
Website only
Changing name servers will affect MX records?
After activate SSL My webmail email are not working
Community Tutorials
Outlook email stop working when i use cloudflare for SSL
Mail server unreachable
Mail not responding
Mail not working anymore here, too
Struggling with DNS setup for email - Help?
Yet another mail delivery issue?!
Do not receive emails
Problem with email
After Active Cloudflare SSL NOT received WEBMAIL i.e ([email protected])
Mail does not working after switching to Cloudlfare
Cannot get email working since moving to Cloudflare - what are the correct settings under DNS?
Smtp doesnot work
Email issues with InMotion Hosting
Email routing
Hi first post, trying to work something out
Email issues with cf
My email is not working
Adding and accessing webmail in cloudflare domains
Mail is not sent to webmail i.e
Mail does not work in Outlook or Thunderbird with Cloudfare // El correo no funciona en Outlook o Thunderbird con Cloudfare
DNS setting in Cloudflare for working smpt server
Configuration dns email
Pending Nameserver Update 5555
DNS Propagation issue to MX/Mail Records cloudflare
Email password and ID
Email password and ID
Mail Tutorial Feedback
How to Set Up Email
Cloudflare and Email
Gmail Forwarding
Website Not showing MX Records
Mail issue pls help
Email Bouncback After Initiating CDN
Is SNI Enabled for Mail Services?