DNS host
Cloudflare DMARC, DKIM and SPF setup
In the Cloudflare dashboard open DNS > Records and select Add record. SPF is a TXT record with Name @, DMARC a TXT record with Name _dmarc, and DKIM a TXT or CNAME record at <selector>._domainkey. Set DKIM CNAMEs to DNS only and keep CNAME flattening off for them, or the provider cannot see its key.
Cloudflare
What goes in Name
- SPF · Name
@- DKIM · Name
<selector>._domainkey- DMARC · Name
_dmarc
Check the records after you save them
Enter the domain: SPF, DKIM at common selectors, DMARC and MX are looked up live, so you see whether Cloudflare is serving the new records yet.
Try
Lookups go from your browser to Cloudflare's public DNS resolver; nothing is stored. Without a selector the checker tries the ones providers document.
What you get
The result, in plain words
- Pass, warning or fail for SPF, DKIM, DMARC and MX
- SPF lookups counted against the limit of 10
- DKIM keys found at google, selector1, selector2 and 50+ other selectors
- The records to publish, with the steps at your DNS host
Cloudflare email
DMARC Management and Cloudflare's own email records
Cloudflare reads DMARC reports for free and runs two email products with their own SPF and DKIM. If you only host DNS here, skip to the field values.
DMARC Management
Free on every plan for domains on Cloudflare DNS; generally available since June 16, 2026
- Where
Email > DMARC Management > Enable DMARC Management
- What it changes
Adds a Cloudflare report address (rua) to your _dmarc record, or offers to create the record
- What you get
Sending sources by IP and service, pass, warning or fail for DMARC, DKIM, SPF and BIMI, and an SPF audit against the 10-lookup limit
- Apex domains only (example.com); subdomain setups are not supportedsource (opens the vendor's page in a new tab)
- It cannot change SPF when a CNAME in the zone points to an external domain; edit SPF by hand thensource (opens the vendor's page in a new tab)
- Available on all planssource (opens the vendor's page in a new tab)
- The June 2026 release added source IPs with reputation and ASN, record status and the SPF lookup auditsource (opens the vendor's page in a new tab)
Step by step
Enable itsource (opens the vendor's page in a new tab)
Select the account and domain, go to Email > DMARC Management and select Enable DMARC Management
Let it add the report addresssource (opens the vendor's page in a new tab)
With a _dmarc record in place Cloudflare adds its rua address to it; with none, it invites you to add one. Keep any rua you already use
Review the recordssource (opens the vendor's page in a new tab)
In Email record overview select View records to see and set up SPF, DKIM and DMARC from one page
Wait for the first reportsource (opens the vendor's page in a new tab)
The first DMARC report can take up to 24 hours to arrive and show in DMARC Management
Email Routing and Email Service
Cloudflare's forwarding (Routing) and sending (Email Service) products
- Routing · SPF at @
v=spf1 include:_spf.mx.cloudflare.net ~all- Routing · DKIM
cf2024-1._domainkey- Sending · DKIM
cf-bounce._domainkey
- Routing adds the MX records route1, route2 and route3.mx.cloudflare.netsource (opens the vendor's page in a new tab)
- Only the root MX, SPF and DKIM records can be unlocked and editedsource (opens the vendor's page in a new tab)
Step by step
Open the recordssource (opens the vendor's page in a new tab)
Compute > Email Service > Email Routing > Settings lists the MX, SPF and DKIM records with a Locked or Unlocked status
Merge SPFsource (opens the vendor's page in a new tab)
If the domain already has SPF, add include:_spf.mx.cloudflare.net to that record so the domain keeps one
Keep the DKIM records apartsource (opens the vendor's page in a new tab)
Routing signs with cf2024-1._domainkey and Email Service with cf-bounce._domainkey; the sending SPF sits on the cf-bounce subdomain
Field values
What goes in each field in Cloudflare
Where: Dashboard > your domain > DNS > Recordssource (opens the vendor's page in a new tab)
- Type
- TXT
- Name
@- Content / Target
- v=spf1 include:<your provider> ~all
- Proxy status
- Not shown for TXT
- TTL
- Auto (300 seconds)
- Type
- TXT or CNAME, as your provider gives it
- Name
<selector>._domainkey- Content / Target
- The key (Content) or the CNAME target (Target)
- Proxy status
- DNS only for a CNAME
- TTL
- Auto (300 seconds)
- Type
- TXT
- Name
_dmarc- Content / Target
- v=DMARC1; p=none; rua=mailto:<address>
- Proxy status
- Not shown for TXT
- TTL
- Auto (300 seconds)
Step by step
Add a record in Cloudflare
TXT record: SPF, DMARC and DKIM keys
Open DNS Recordssource (opens the vendor's page in a new tab)
In the Cloudflare dashboard select the domain and go to DNS > Records
Add a TXT recordsource (opens the vendor's page in a new tab)
Select Add record and choose TXT as the Type
Fill in the fieldssource (opens the vendor's page in a new tab)
Name (@ for SPF, _dmarc for DMARC, <selector>._domainkey for a DKIM key), Content and TTL
Savesource (opens the vendor's page in a new tab)
Select Save. Cloudflare wraps Content in double quotes if you leave them out
CNAME record: DKIM from a provider that hosts the key
Open DNS Recordssource (opens the vendor's page in a new tab)
Select the domain and go to DNS > Records, then Add record
Choose CNAMEsource (opens the vendor's page in a new tab)
Select CNAME as the Type, enter the Name and put the full target your provider gives in Target
Set DNS onlysource (opens the vendor's page in a new tab)
Set the Proxy status to DNS only; Cloudflare may warn about or block proxying a CNAME used for DKIM
Savesource (opens the vendor's page in a new tab)
Pick the TTL and select Save
Cloudflare specifics
Before you save
- Email records should be DNS only; a proxied mail hostname breaks mail deliverysource (opens the vendor's page in a new tab)
- CNAME flattening can break a provider's DKIM CNAME; turn it off for that recordsource (opens the vendor's page in a new tab)
- Email > DMARC Management adds a DMARC record if you have none, or adds a Cloudflare rua address to the one you have. It works on apex domains onlysource (opens the vendor's page in a new tab)
- Cloudflare recommends its email security wizard (Email > DMARC Management > View records) over adding TXT records by handsource (opens the vendor's page in a new tab)
- TTL Auto is 300 seconds; your local DNS cache can take longer to show a changesource (opens the vendor's page in a new tab)
- Records here work once the domain uses the two Cloudflare nameservers; a nameserver change can take up to 24 hourssource (opens the vendor's page in a new tab)
Records by provider
The exact values each service asks for:
Troubleshooting
Common Cloudflare errors and fixes
DKIM CNAME does not resolve
Turn off CNAME flattening for that recordsource (opens the vendor's page in a new tab)
Mail hostname proxied
Set the record's proxy status to DNS onlysource (opens the vendor's page in a new tab)
TXT validation error
Use balanced double quotes around the content, or none at allsource (opens the vendor's page in a new tab)
SPF cannot be edited in DMARC Management
When a CNAME in the zone points to an external domain, edit the SPF record by handsource (opens the vendor's page in a new tab)
Verification CNAME fails on a paid plan
Turn off CNAME flattening for all CNAME records in DNS Settings and Flatten on the record; a flattened CNAME is not returned to the providersource (opens the vendor's page in a new tab)
Two SPF records after Email Routing
Delete the extra record and keep one that includes _spf.mx.cloudflare.net and your other senderssource (opens the vendor's page in a new tab)
DKIM fails for Cloudflare mail
Check the selector matches the product (cf2024-1 for Routing, cf-bounce for Email Service) and the key has no extra spacessource (opens the vendor's page in a new tab)
For cold email
Mailboxes that come with the DNS records done
Outreach2day buys the domains, publishes SPF, DKIM and DMARC, creates the mailboxes and starts warmup, then sends your campaigns from its own sequencer or exports the mailboxes to Instantly or Smartlead.
- SPF, DKIM and DMARC set for youOn every domain, checked after setup and kept in place
- $2.50 a mailbox a month12-mailbox minimum; warmup and the sending engine included
- 1,000+ mailboxesA volume price per mailbox, quoted on a call
Questions
Should DKIM records be proxied in Cloudflare?
No. Set DKIM CNAMEs to DNS only (grey cloud). Cloudflare may warn about or block proxying them, and a proxied or flattened CNAME hides the provider's key.
How do I add a DMARC record in Cloudflare?
Add a TXT record with Name _dmarc and Content such as v=DMARC1; p=none; rua=mailto:[email protected], or turn on Email > DMARC Management, which creates the record or adds Cloudflare's report address to it.
How do I add a DKIM record in Cloudflare?
Open DNS > Records and select Add record. If your provider gives a TXT key, choose TXT, enter <selector>._domainkey as the Name and paste the key as Content. If it gives a CNAME, choose CNAME, enter the Name and the full target, and set the Proxy status to DNS only. Keep CNAME flattening off for that record, or the provider cannot see its key.
How do I set up SPF, DKIM and DMARC for my business email on Cloudflare?
Add three records in DNS > Records: a TXT record at @ with your email provider's SPF value, the DKIM TXT or CNAME record your provider gives at <selector>._domainkey (DNS only for a CNAME), and a TXT record at _dmarc such as v=DMARC1; p=none; rua=mailto:[email protected]. Then turn on DKIM signing in your provider and run the check above. For cold email domains, Outreach2day cold email infrastructure sets all three automatically, including on domains you connect by pointing their nameservers to us.
Is Cloudflare DMARC Management free?
Yes. Cloudflare lists it as available on all plans for domains on Cloudflare DNS, and made it generally available on June 16, 2026. It reads the aggregate reports for the apex domain and shows which services send as it.
What is the Cloudflare DKIM selector?
Cloudflare signs only the mail it sends or forwards itself: Email Routing uses cf2024-1._domainkey and Email Service uses cf-bounce._domainkey. For any other provider the selector is that provider's (selector1 for Microsoft 365, google for Google Workspace); Cloudflare only hosts the record.
How do I add an SPF record in Cloudflare?
Open DNS > Records, select Add record and choose TXT. Enter @ as the Name, which stands for the domain itself, and your provider's value as Content, such as v=spf1 include:<your provider> ~all, then Save. Keep one SPF record per domain and add every sending service's include to it.
How long do Cloudflare DNS changes take?
Records on Auto TTL refresh after 300 seconds, though local caches can hold the old value longer. Run the check above after saving.
Sources
Cloudflare documentation, checked . Menus and values change; if a step differs, Cloudflare's own page is the reference.
- Manage DNS records (developers.cloudflare.com)
- Create zone apex record (developers.cloudflare.com)
- DNS record types (developers.cloudflare.com)
- Time to Live (TTL) (developers.cloudflare.com)
- Proxy status (developers.cloudflare.com)
- Email issues troubleshooting (developers.cloudflare.com)
- Set up email records (developers.cloudflare.com)
- Security records (developers.cloudflare.com)
- Enable DMARC Management (developers.cloudflare.com)
- Full setup (developers.cloudflare.com)
- DMARC Management (developers.cloudflare.com)
- DMARC Management is generally available (blog.cloudflare.com)
- Email Routing DNS records (developers.cloudflare.com)
- Email Service authentication (developers.cloudflare.com)
- Email Service troubleshooting (developers.cloudflare.com)
- CNAME flattening (developers.cloudflare.com)
Deliverability call
Talk to our deliverability team
Book a call with the people who run our mailbox infrastructure. We look at your current setup and tell you what to change. Running 1,000+ mailboxes? We also quote a volume price below every vendor list price in our comparisons, warmup and sending included.
- Review your domains, DNS records and current inbox placement
- Size the setup: domains, mailboxes per domain and daily volume per mailbox
- Plan warmup and the move from your current provider or sequencer
- 1,000+ mailboxes: a volume price per mailbox for your setup
Free call
See open times in your time zone and book on this page.
Or open the booking pageLoading available times…
Open the booking page instead