Resend: SPF, DKIM and DMARC setup
Your app sends through Resend, and a receiver reports an SPF, DKIM or DMARC failure, or the domain won't verify. Resend needs a DKIM key on your domain and SPF on its Return-Path subdomain, send by default. Here are the records and what aligns.
The DNS records Resend asks for
Add the domain on Resend's Domains page. Resend generates the records for each domain and lists them in the domain's Records tab; copy the host names and values exactly as Resend shows them. The records below are the ones Resend's own Cloudflare guide walks through. example.com is the domain you added; Resend recommends a subdomain such as updates.example.com.
- TXT
Name
resend._domainkey.Valueexample.com p=<public key from Resend>DKIM. Resend's guide uses the nameresend._domainkey; use the name your Records tab shows. - MX
Name
send.example.comValue10 <mail server from Resend>Return-Path. Resend uses thesendsubdomain by default. - TXT
Name
send.example.comValuev=spf1 include:<from Resend> ~allSPF for the Return-Path subdomain. It does not go into the SPF record at example.com. - TXT
Name
_dmarc.example.comValuev=DMARC1; p=none; rua=mailto:[email protected];Resend's suggested starting record, added after the domain verifies.
Some domains show CNAME records for sending instead of the MX and TXT pair: one on the Return-Path subdomain and one on an r-prefixed sibling, such as send and rsend. Add both.
Which check aligns with DMARC
- Yes: SPF aligns in relaxed mode. The Return-Path defaults to
send.example.com, a subdomain of your From domain. Relaxed is the DMARC default. - Careful: SPF does not align with
aspf=s, becausesend.example.comis not exactlyexample.com. - Yes: DKIM aligns once the domain verifies: the DKIM key sits on the domain you send from.
DKIM alignment alone is enough for DMARC to pass. Resend's docs say the same: an email must pass SPF or DKIM, not necessarily both.
Common mistakes
- Sending from the root after verifying a subdomain. If you verified
updates.example.com, send from an address at that subdomain. Resend returns a 403 domain mismatch error otherwise. - Cloudflare proxy. When Resend shows a CNAME, don't proxy it (no orange cloud). Proxying stops verification.
- The DNS host adds your domain twice. Resend's guide says to paste only the part before your domain, such as
send, notsend.example.com. - Changing the Return-Path later. It is set when you add the domain and can't be changed. To use another subdomain, delete the domain and add it again.
Check your setup
- Check your domain with MailDoctor (form below) for SPF, DMARC and the rest.
- Check the key with the DKIM key checker. Use the selector from the DKIM record name Resend gives you: the part before
._domainkey. - Check the Return-Path subdomain's SPF record with the SPF lookup counter.
- Send yourself a message through Resend and paste its headers into the email header analyzer. It shows the Return-Path, the DKIM domain, and which of them aligns.
Marketing mail: Resend Broadcasts track unsubscribe preferences. For lists you manage yourself, add the List-Unsubscribe and List-Unsubscribe-Post headers. See Add an unsubscribe link.
Sources, checked 27 November 2026: Add and verify a domain · Verified domains · Custom Return Path · Implementing DMARC · Cloudflare
Check the domain you send from. Grade, problems and the exact records to fix them.