Overview per host

Cloudflare: set up and check SPF, DKIM and DMARC

Everything a domain at Cloudflare needs for secure, deliverable mail on one page: where the DNS records live, which values come from the mail provider, the mistakes that happen most often at Cloudflare, and a step-by-step guide per record. The domain check tests your domain right here.

Guides for Cloudflare

Domain check for Cloudflare

The domain check tests a domain at Cloudflare in one run: name servers and DNSSEC, MX, SPF, DKIM and DMARC, plus certificate, redirects and registration. If the name servers are not those of Cloudflare, another provider is responsible for the DNS records.

Cloudflare: what you should know

For many domains Cloudflare is only the DNS provider, often because of the CDN and website protection. Cloudflare does not run mailboxes, so SPF, DKIM and MX always come from the provider the mail actually goes through, such as Microsoft 365, Google Workspace or the web host. That is why there is no MX guide for Cloudflare.

The proxy status is what matters: only A, AAAA and CNAME records can be proxied, MX and TXT are always “DNS only”. Mail-related CNAME records, such as those for DKIM, therefore have to be set to “DNS only” explicitly. Cloudflare Email Routing forwards addresses of the domain to another mailbox; it does not send, so the values of the actual mail provider still apply for sending. Cloudflare offers sending separately as Email Service (beta).

Mail values at Cloudflare at a glance

The values a domain at Cloudflare needs for sending mail; the guides above cover the details.

  • MX: comes from the mail provider, for example smtp.google.com for Google Workspace or your-domain-com.mail.protection.outlook.com for Microsoft 365. Cloudflare Email Routing sets its own MX records.
  • SPF: the mail provider’s include, such as include:spf.protection.outlook.com for Microsoft 365 or include:_spf.google.com for Google Workspace.
  • DKIM: key from the mail provider, added at Cloudflare as CNAME or TXT under selector._domainkey, proxy status “DNS only”.
  • DMARC: TXT record at _dmarc, start with v=DMARC1; p=none and a reporting address, then p=quarantine and p=reject after a few weeks of reports.

How to reach the Cloudflare DNS editor

Every record, whether SPF, DKIM, DMARC or MX, is created in the same place:

  • In the Cloudflare dashboard open the domain and choose "DNS" → "Records".
  • Choose "Add record" and enter type, name and content.
  • For MX, TXT and mail-related CNAME records keep the proxy status on "DNS only"; the orange cloud belongs to web records only.
  • Save; Cloudflare propagates instantly.

Click path at Cloudflare

Add record
Type
TXT
Name
_dmarc
Content
v=DMARC1; p=none; rua=mailto:dmarc@example.com
TTL
keep the default

Button:Save

Schematic sketch using the field names from the Cloudflare help, not a picture of the interface: which value goes into which field.

Official guide from Cloudflare: Manage DNS records(opens in a new tab)retrieved 10 Nov 2026

Frequently asked questions

Where do I find the DNS settings at Cloudflare?
In the Cloudflare dashboard open the domain and choose "DNS" → "Records". Choose "Add record" and enter type, name and content.
Does Cloudflare set SPF, DKIM and MX automatically?
No. Cloudflare does not run mailboxes; the values come from the mail provider and are created at Cloudflare as DNS records.
What goes wrong most often at Cloudflare?
The DKIM CNAME of Microsoft 365 or a newsletter tool sits behind the proxy with an orange cloud. The receiver then does not find the key and the signature fails. Switch the record to “DNS only”; Cloudflare propagates the change instantly.
How do I check my domain at Cloudflare?
With the domain check on this page: it shows the responsible name servers, MX, SPF, DKIM and DMARC, plus certificate, redirects and domain expiry, each with a recommendation. So that nothing changes unnoticed, DomainWarn then keeps checking the domain.

DomainWarn checks SPF, DKIM, DMARC, DNS and certificates of all client domains regularly and reports changes before mail lands in spam.

Monitor this domain continuously14-day free trial, no credit card.

Other hosts

All hosts at a glance