Check your domain
Enter your domain, then pick the record to check:
SPF
example.com. IN TXT "v=spf1 include:_spf.mx.cloudflare.net ~all"
- Email Routing uses this TXT record at the root of the domain. If the domain already has an SPF record, merge the
include:into it. Never publish a secondv=spf1record. - Remember SPF allows only 10 DNS lookups, so check the merged record with the SPF checker.
- Email Routing also publishes three MX records at the root:
route1.mx.cloudflare.net,route2.mx.cloudflare.netandroute3.mx.cloudflare.net, with priorities assigned automatically. They replace the MX records of any other mail provider on that domain.
Syntax and the 10-lookup limit are covered in SPF record syntax.
DKIM
- The DKIM record is a TXT record at
cf2024-1._domainkey, startingv=DKIM1; h=sha256; k=rsa; p=. - The public key is long and specific to Cloudflare, so copy the full value from the dashboard rather than from an example.
cf2024-1._domainkey.example.com. IN TXT "v=DKIM1; h=sha256; k=rsa; p=…key from the Cloudflare dashboard…"
Not sure which selector a message was signed with? See what is a DKIM selector.
DMARC
DMARC is a separate record that you publish yourself, at _dmarc under your domain. Start by only collecting reports, then tighten the policy once the reports show all your senders passing:
_dmarc.example.com. IN TXT "v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com"
Replace the address with a mailbox you control. What is DMARC explains the policies, and how to read a DMARC report shows what to do with the reports.
Common problems
- Email Routing turned on for a domain that already has mailboxes elsewhere. Its MX records replace the existing ones and mail moves.
- A second SPF record added instead of merging the include.
- The long DKIM key truncated when pasted.
- Expecting Email Routing to send mail. It forwards incoming mail; outgoing mail from the domain needs its own provider and records.
Failing messages are diagnosed in why DKIM or DMARC fails.
Sources
Values on this page come from the provider's own documentation, last checked on 8 November 2026. Providers change these settings, so confirm against the current page before you edit DNS: