Ran into an issue with one of my personal websites where email wouldn’t work. I had recently switched the site to Cloudflare, so I did a search for “Cloudflare Email”. This page on Cloudflare’s website explained the issue.
“Many hosting companies use the domain name for MX records and resolve the mail server internally. When using Cloudflare, the MX record cannot be the domain itself, which passes through Cloudflare.”
In order to fix the issue:
- I logged into Cloudflare and clicked on DNS.
- Then, I selected MX, entered my domain name, and clicked the field to configure it.
- In the popup, I entered my mail server, “mail.mydomain.com”.
- After I saved it, I sent a test email, and it worked!