CloudflareDNS 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

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

  1. Pass, warning or fail for SPF, DKIM, DMARC and MX
  2. SPF lookups counted against the limit of 10
  3. DKIM keys found at google, selector1, selector2 and 50+ other selectors
  4. 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.

Field values

What goes in each field in Cloudflare

Where: Dashboard > your domain > DNS > Recordssource (opens the vendor's page in a new tab)

SPF
Type
TXT
Name
@
Content / Target
v=spf1 include:<your provider> ~all
Proxy status
Not shown for TXT
TTL
Auto (300 seconds)
DKIM
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)
DMARC
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

  1. Open DNS Recordssource (opens the vendor's page in a new tab)

    In the Cloudflare dashboard select the domain and go to DNS > Records

  2. Add a TXT recordsource (opens the vendor's page in a new tab)

    Select Add record and choose TXT as the Type

  3. 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

  4. 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

  1. Open DNS Recordssource (opens the vendor's page in a new tab)

    Select the domain and go to DNS > Records, then Add record

  2. 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

  3. 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

  4. Savesource (opens the vendor's page in a new tab)

    Pick the TTL and select Save

Cloudflare specifics

Before you save

Records by provider

The exact values each service asks for:

Troubleshooting

Common Cloudflare errors and fixes

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.

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 page