D1, R2 & Resend · Free guide

Setting up Resend DNS records on Cloudflare without hurting your inbox email

Authenticate Resend on a dedicated subdomain (such as mail.yourdomain.com) rather than overriding your root domain's primary SPF or MX records. Keeping Resend's DKIM and bounce-handling DNS records scoped to a subdomain protects Google Workspace or Microsoft 365 deliverability while letting your static site send transactional messages cleanly.

By StaticLaunch · Four Media Group LLC

Why sending transactional site mail from a subdomain wins

Your daily business mailbox uses your root domain (@yourdomain.com). Isolating automated website alerts and download receipts onto [email protected] keeps automated bounce reputation completely separate from human inbox correspondence.

  • Root MX records stay dedicated strictly to Google Workspace / Microsoft 365.
  • Subdomain mail.yourdomain.com carries Resend's exact DKIM TXT, SPF TXT, and MX return-path records.
  • Root DMARC policies monitor both streams cleanly via aligned subdomains.

Keep DNS proxy status set to DNS-only (grey cloud) where required

Remember Cloudflare orange-cloud HTTP proxying applies strictly to web traffic (A/AAAA/CNAME website hostnames)—leave mail MX and verification CNAME/TXT records unproxied exactly as Resend's DNS verifier expects.

Use Reply-To cleanly on contact inquiry alerts

Send from [email protected] and set the reply_to header dynamically to the validated visitor email so hitting Reply inside Gmail or Outlook answers the customer directly.

Common questions

Will adding Resend's DKIM record break my existing Google Workspace emails?

No—provided you verify all records on a subdomain or merge cleanly without overwriting existing v=spf1 or google._domainkey records on your apex domain.

Should I create a second SPF TXT record on the same hostname?

Never create two separate v=spf1 TXT records on identical hostnames; RFC rules permit only one SPF record per hostname, whereas placing Resend on mail.yourdomain.com gives it its own clean hostname.

References

Provider interfaces and limits can change. Consult the original documentation before changing production settings.