Email that dies right after a domain moves to Cloudflare gets blamed on "propagation". The other suspect is a record that Cloudflare saved without complaint and that cannot work for mail.

So I tested where the line is. On 24 November 2026 I entered five questionable mail setups into a live Cloudflare zone (Free plan) through the DNS API, on a test subdomain, and wrote down what came back. The test records were deleted afterwards.

What was entered and what Cloudflare answered

What I entered Cloudflare's answer Result for mail
MX with an IP address as content Refused, error 9009: "Change the content of your MX record to be a hostname (and not an IP address)" None, the record is not created
MX pointing to a name that is a CNAME Accepted, no warning Invalid MX target under RFC 2181, section 10.3
Two SPF records on one name Accepted, no warning SPF permerror (RFC 7208, section 4.5)
A record of the mail host set to Proxied Accepted, no warning Ports 25, 587 and 993 do not answer
MX pointing to a proxied name Accepted; answers carry a generated _dc-mx name Senders are sent to the server directly, so its address is visible

One refusal out of five. Saving is not validation: a record that saves is not a record that works.

The two that stop mail

The mail host behind the proxy. The orange cloud passes HTTP ports, not mail ports. If mail.example.com is proxied, its A record returns Cloudflare addresses and nothing listens there on 25, 587 or 993:

dig +short A mail.example.com nc -vz -w 5 mail.example.com 587 

If the addresses belong to Cloudflare (its ranges are published at cloudflare.com/ips) and the port test times out, set that one record to DNS only. The website can stay proxied.

Two SPF records. A typical way to get here: a new service is added and its v=spf1 line is pasted as a second TXT record instead of being merged into the first one. RFC 7208 says a domain with more than one SPF record gets permerror, and receivers treat that as a failed check:

dig +short TXT example.com | grep spf1 

Two lines in the answer means one record too many. Merge the mechanisms into a single record.

The one that is a finding, not a breakage

MX pointing to a proxied name does not stop mail. Cloudflare answers with a generated _dc-mx name that resolves to the real server, so delivery works. The side effect is that the address you hid behind the proxy is readable by anyone who asks for the MX record.

Does it show in real zones?

It shows as a correlation. In an open dataset of .lt websites I maintain, 28.4 % of mail domains whose website answers from Cloudflare's network have no SPF record at all (2,059 of 7,253). Among the rest it is 11.5 % (6,626 of 57,657). DMARC goes the other way: it is missing on 58.3 % of the Cloudflare group and on 69.8 % of the rest. The dataset records where the website answers from, not who hosts the DNS zone or when it was moved, so this says the two go together and nothing about cause.

If mail already stopped

The API test covers three of the causes. The rest are DNSSEC left on at the registrar, records lost in the import, a missing DKIM record and Email Routing taking over the MX records. I wrote up the four commands that tell these causes apart, with the answer each cause gives and the fix for each.

Sources: Cloudflare Docs, proxy status, Cloudflare Docs, network ports, RFC 7208, RFC 2181, dataset doi:10.5281/zenodo.24282573 (CC BY 4.0).