DMARC, SPF and DKIM for Cloudflare Email Sending

Updated 2026-11-25

Cloudflare Email Sending is the outbound half of Cloudflare Email Service. You send transactional mail from a Worker, the REST API or SMTP, and Cloudflare signs and delivers it. As of November 2026 Email Sending is in beta, and since November 24, 2026 it is also available on the Workers Free plan. This guide follows Cloudflare's developer documentation and says so where the docs are silent. For the background on each standard, see SPF explained, DKIM explained and DMARC explained.

What Cloudflare Email Sending sends from

The visible From address is on a domain you have onboarded for Email Sending. The domain must use Cloudflare DNS: the docs say "You must be using Cloudflare DNS to use Email Service". You can onboard a subdomain such as mail.example.com as its own sending domain, and the onboarding then adds the cf-bounce records to that subdomain.

The envelope sender (Return-Path) is "Set to Cloudflare bounce processor", and you cannot set or override it. The docs do not print the full Return-Path address or say which domain it is on. They only say that the cf-bounce subdomain exists "to handle bounce processing". That matters for alignment below.

Free and Paid. As of November 2026 the plans differ in who you may send to:

  • Workers Free: only to verified destination addresses in your account. Any other recipient fails with E_RECIPIENT_PLAN_RESTRICTED in the Workers binding, with 403 and code 10208 in the REST API and with 550 5.7.1 in SMTP. Sends to verified addresses are free and do not count toward quotas.
  • Workers Paid: any recipient. The docs list 3,000 emails per month included, then $0.35 per 1,000.

Email Service is for transactional mail only. The FAQ answers "Can I use Email Service for marketing emails?" with "No".

Sending versus Routing. They are often confused. Email Routing receives mail for your domain and forwards it. Email Sending sends new mail from your domain. Each has its own records: Sending uses the cf-bounce subdomain, Routing uses the root domain. If you also forward mail, read the Cloudflare Email Routing guide.

SPF

Onboarding adds an SPF record on the cf-bounce subdomain, not on your root domain. As of November 2026 the docs show these records:

cf-bounce.example.com MX route1.mx.cloudflare.net
cf-bounce.example.com MX route2.mx.cloudflare.net
cf-bounce.example.com MX route3.mx.cloudflare.net
cf-bounce.example.com TXT "v=spf1 include:_spf.mx.cloudflare.net ~all"

The MX records route bounces back to Cloudflare, and Cloudflare assigns the priorities. The record on cf-bounce is separate from your root record, so, since the docs put it there, Email Sending does not add a lookup to the SPF record your other senders share. The 10-lookup limit of RFC 7208 counts per record tree. The cf-bounce record uses 1 lookup, the include. When we queried _spf.mx.cloudflare.net on November 25, 2026 it held only IP ranges, so the include costs 1 lookup in total. Cloudflare can change that, so count the tree with the SPF lookup counter.

You only edit the root record when you also use Email Routing. Its SPF goes on the root domain with the same include. The docs show how to merge it with an existing record:

example.com TXT "v=spf1 include:_spf.mx.cloudflare.net include:_spf.google.com ~all"

The docs warn that "SPF records are limited to 10 DNS lookups total" and advise flattening or removing non-essential includes if you go over. They also say to ensure only one SPF record exists per name.

DKIM

Email Sending signs with a key Cloudflare generates. The record is a TXT record on the cf-bounce._domainkey name:

cf-bounce._domainkey.example.com TXT "v=DKIM1; h=sha256; k=rsa; p=<public key from the dashboard>"

The selector is cf-bounce, which the docs describe as "selector managed by Cloudflare". Email Routing uses a different selector, cf2024-1, so the two do not collide. The docs also say to use different selectors for different services and name google._domainkey for Google Workspace.

Not documented, as of November 2026: the key length (the examples show only k=rsa), a way to rotate or replace the key, and the d= domain of the signature. We do not guess these. A sent test message shows the signature, and the email header analyzer reads it.

Onboarding locks the cf-bounce records. Per the docs, Email Sending records "stay managed by Email Service for the lifetime of the domain configuration", and unlocking exists only for Email Routing records. Removing the domain from Email Sending deletes the cf-bounce MX, SPF, DKIM and DMARC records that Cloudflare created.

DMARC alignment

DMARC passes when SPF or DKIM passes and the authenticated domain aligns with the From domain. SPF alignment compares the envelope sender domain with the From domain, and DKIM alignment compares the d= domain with the From domain.

Cloudflare says only that when sending, "Email Service ensures proper SPF and DKIM alignment to pass DMARC authentication", and that outbound mail is always authenticated with both SPF and DKIM. The docs do not say which of the two aligns, and they do not publish the d= domain or the Return-Path domain. The DKIM key sits under cf-bounce._domainkey.example.com and the bounce records under cf-bounce.example.com, which suggests both domains are under your domain. That is our reading, not a statement in the docs. Confirm it from a real message: read Authentication-Results and check the d= and smtp.mailfrom domains.

Alignment is relaxed by default, which only needs the same organizational domain. If your DMARC record sets aspf=s or adkim=s, strict alignment needs the exact same name, and the outcome can differ.

DMARC record. If your domain has no DMARC record, onboarding adds this one on _dmarc:

_dmarc.example.com TXT "v=DMARC1; p=reject;"

If a record already exists, Cloudflare keeps it unchanged. The record is not locked, and Cloudflare does not overwrite your edits. There is no rua address, so you get no reports.

Step by step to p=reject

  1. Decide who else sends as your domain. The docs say that if Email Service is the only sender, you can keep the default p=reject. If other services also send as your domain, change the policy before they fail.
  2. Publish a monitoring record. If the domain has no DMARC record yet, publish v=DMARC1; p=none; rua=mailto:[email protected] before you onboard, so Cloudflare keeps it. If you already onboarded, replace the automatic p=reject now. This policy does not protect the domain yet; it turns on aggregate reports.
  3. Onboard the sending domain. In the dashboard go to Compute, Email Service, Email Sending, select Onboard Domain, choose the domain and select Done. Wait 5 to 15 minutes for DNS.
  4. Send a test and read the headers. On Workers Free, use a verified destination address as the recipient. Check that SPF and DKIM pass and which domains they authenticate.
  5. Read the reports and fix other senders. Typically for a few weeks (the docs give no duration), look at which servers send as your domain and give each legitimate service SPF and DKIM that align.
  6. Move to quarantine, then reject. Change to p=quarantine when the reports show only aligned mail, and to p=reject when they stay clean. Cloudflare's own order is the same: none, quarantine, reject after confirming legitimate mail authenticates.

The first record for step 2, and the final record:

_dmarc.example.com TXT "v=DMARC1; p=none; rua=mailto:[email protected]"
_dmarc.example.com TXT "v=DMARC1; p=reject; rua=mailto:[email protected]"

Common mistakes

  • Leaving the automatic p=reject with other senders. Cloudflare adds p=reject without rua when no record exists. A newsletter tool or CRM that is not aligned is then rejected, and you see no reports (DMARC without rua).
  • Mixing up Sending and Routing. Sending records are on cf-bounce, Routing records on the root. As far as the docs show, a root SPF record without the include does not affect Email Sending, but it does affect Email Routing.
  • Two SPF records on one name. If you add a second v=spf1 record instead of merging, SPF breaks (multiple SPF records).
  • Sending to unverified recipients on Free. The error is E_RECIPIENT_PLAN_RESTRICTED. It is a plan limit, not an authentication problem.
  • Not using Cloudflare DNS. Onboarding picks a domain from your Cloudflare account, so the domain must use Cloudflare DNS.
  • Relying on a test flag. Some receivers support t=y (RFC 9989, DMARCbis, which obsoletes RFC 7489) or pct (RFC 7489). Neither is a safety net. RFC 7489 says unknown tags must be ignored, so a receiver that implements only RFC 7489 can treat p=reject; t=y as a full reject. Move from p=none to p=quarantine to p=reject and let the reports decide.

How to check it

Run the email security check on your domain to read SPF, DKIM and DMARC in one pass. Use the SPF lookup counter to count the include behind _spf.mx.cloudflare.net and your other senders. In the DKIM selector finder, look for the documented selector cf-bounce. Build or check your policy with the DMARC record generator.

Frequently asked questions

Do I need to change the SPF record on my root domain for Email Sending?

Not for Email Sending itself, as far as the docs show. As of November 2026 Cloudflare publishes the SPF record on the cf-bounce subdomain, for example cf-bounce.example.com, not on the root. The root record only needs include:_spf.mx.cloudflare.net if you also use Email Routing, which puts its SPF on the root domain.

What is the difference between Email Sending and Email Routing?

Email Sending sends outbound transactional mail. Email Routing receives mail for your domain and forwards it to verified addresses or a Worker. They have separate DNS records, separate DKIM selectors and separate settings pages, and removing one does not affect the other.

Why do I get E_RECIPIENT_PLAN_RESTRICTED?

On the Workers Free plan, Email Sending sends only to verified destination addresses in your account. A send to any other recipient fails: the Workers binding throws E_RECIPIENT_PLAN_RESTRICTED, the REST API returns 403 with code 10208, and SMTP refuses with 550 5.7.1. Verify the recipient as a destination address, or move to the Workers Paid plan.

Does my domain have to use Cloudflare DNS?

Yes. The Email Sending docs say "You must be using Cloudflare DNS to use Email Service". Onboarding picks a domain from your Cloudflare account and adds the records for you.

Which DKIM selector does Email Sending use?

As of November 2026 the docs name cf-bounce._domainkey for Email Sending and cf2024-1._domainkey for Email Routing. Cloudflare generates the key. The docs do not state a key length or a rotation procedure.

Sources