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
- Type
- TXT
- Name
- _dmarc
- Content
- v=DMARC1; p=none; rua=mailto:dmarc@example.com
- TTL
- keep the default
Button:
Official guide from Cloudflare: Manage DNS records(opens in a new tab)