1 / 10 Root Lookups · Pre-Seeded Stack Guide

Cloudflare Email Routing + Resend SPF & DMARC Setup

Use Cloudflare Email Routing (1 lookup) for inbound aliases and Resend (0 root lookups) for outbound APIs at 1/10 root lookups.

1. Domain, Providers & DMARC Policy

RFC 7208 + RFC 7489
Verified Email Providers (Click to Include in Root SPF)
RFC 7208 DNS Lookup Budget Guard
1 / 10 lookups
HEALTHY
Healthy budget: 1/10 root lookups consumed (9 remaining).
TXT @ example.com (SPF Record)
v=spf1 include:_spf.mx.cloudflare.net -all
42 chars (RFC 7208 single TXT string limit: 255 chars; keep total DNS response under 512 bytes)
Resend Subdomain TXT @ send.example.com (0 root lookups)
v=spf1 include:amazonses.com ~all
TXT @ _dmarc.example.com (DMARC Record)
v=DMARC1; p=reject; pct=100; adkim=r; aspf=r; rua=mailto:[email protected]
Live DNS Verification ReadyCheck

Verify your live SPF, DMARC, DKIM & MTA-STS

After publishing DNS records, run an instant Cloudflare DoH audit on ReadyCheck or grab the $49 Fix Pack for custom DKIM, MTA-STS, BIMI & AEO deployment.

Stack Provider Breakdown & DKIM Selectors

Provider Root Include Lookups DKIM Selector
Cloudflare Email Routing include:_spf.mx.cloudflare.net 1 N/A (forwarding service — pair with outbound SMTP)
Resend (Dedicated send.<domain>) send.<domain> (subdomain) 0 resend._domainkey
Cloudflare Email Routing Alignment Note: Forwarders do not originate new brand mail; pair with Postmark, Amazon SES, or Resend for outbound DKIM/DMARC alignment.
Resend (Dedicated send.<domain>) Alignment Note: Because Resend sets MAIL FROM to bounce@send.<domain>, SPF is evaluated against send.<domain> (1 lookup there, 0 root SPF lookups consumed!) and passes relaxed DMARC alignment (aspf=r) with your root From: domain.

Production Rollout Checklist

  • Cloudflare Email Routing handles inbound forwarding (1 root lookup), while Resend handles all outbound transactional mail via send.<domain> (0 root lookups).
  • Publish Resend's MX and TXT SPF records on send.<domain> plus resend._domainkey TXT for DKIM.
  • Keep DMARC aspf=r so Resend's send.<domain> envelope aligns cleanly under p=reject.
Next Step: Verify your published DNS records live with ReadyCheck (checks SPF, DMARC, DKIM selectors, MX, MTA-STS & BIMI via Cloudflare DoH).

Related Email Stack Guides

← Back to all 15 providers & 24 SPF/DMARC guides

Frequently Asked Questions

How many DNS lookups does Cloudflare Email Routing + Resend consume?

This stack consumes 1 of the 10 permitted RFC 7208 root DNS lookups (9 remaining). Resend isolates its SPF lookup onto send.<domain>, keeping root SPF lookups at zero for Resend.

What DMARC alignment settings work best for Cloudflare Email Routing + Resend?

Start with relaxed alignment (adkim=r, aspf=r) and p=reject at pct=100 while verifying DKIM keys across Cloudflare Email Routing and Resend (Dedicated send.<domain>).

Should I use ~all or -all on my SPF record?

Most modern mail security teams pair ~all or -all with DMARC p=quarantine/reject. Use ~all during rollout to avoid dropping legitimate forwarded mail, then tighten to -all once rua reports confirm 100% pass rates.