Documentation Questions and answers

Why does SPF pass while DMARC fails?

SPF can pass for your sending service's bounce address, not the From address your readers see. DMARC counts that pass only when both domains share a main domain. With strict alignment, they must match exactly. Fix it with a bounce address on your domain, or a DKIM signature for your domain.

What the receiver compares

The From address is the one people see. The bounce address, also called the return path or MAIL FROM, is where bounces go. DMARC uses the SPF result for the bounce address.

Anyone can publish an SPF record for a domain they own, so a pass on its own proves little. RFC 9989 says so: "any Domain Owner, even a bad actor, can publish an SPF record for its domain and send an email that will obtain an SPF "pass" result." DMARC therefore asks for alignment. By default the two domains must sit under the same main domain: a bounce address at bounces.example.com matches news@example.com. One at example.net doesn't. With aspf=s in your DMARC record, they must match exactly.

Check it on a real domain

Amazon SES, by default, sends with a bounce address under amazonses.com. We looked up the name SES uses in its Ireland region on 27 November 2026:

$ dig +short TXT eu-west-1.amazonses.com | grep spf1
"v=spf1 include:amazonses.com -all"

That record allows Amazon's servers, so mail SES sends for you passes SPF. Now compare the two domains. If your From address is you@example.com, the main domains are amazonses.com and example.com. They differ, so the SPF pass doesn't count for DMARC.

A message's headers show both results. Look for the Authentication-Results line your mailbox adds. Shortened, it reads like this:

spf=pass smtp.mailfrom=eu-west-1.amazonses.com
dmarc=fail header.from=example.com

smtp.mailfrom is the bounce domain and header.from is the From domain. If they don't match under your alignment setting, SPF doesn't count. Then look for a dkim=pass. Compare its signing domain, header.d, with the From domain. DKIM has its own alignment setting, adkim. If no pass matches, DMARC fails.

Fix it

  1. Set a bounce address on your domain. Most sending services have this setting, called custom MAIL FROM, custom return path or bounce domain. In SES, set a subdomain such as bounces.example.com and publish the two records SES shows you.
  2. Send yourself a message and check its smtp.mailfrom. It should show your subdomain. Still seeing amazonses.com? In SES, open the Region you sent from. Check the custom MAIL FROM status of the address or domain you sent as.
  3. If your DMARC record has aspf=s, the subdomain won't match. Remove aspf=s, or rely on DKIM, step 4.
  4. Sign with DKIM for your domain as well. A DKIM pass for your domain makes DMARC pass on its own. It often survives forwarding, which usually breaks SPF. RFC 9989 tells domain owners with p=reject not to rely on SPF alone.

Sources

Check your domain

See your SPF, DMARC and DKIM records and what to fix. Free, no account. Don't see your signing key? On the results page, enter the name your email service gives you under Signing keys.

Last updated : First version.

For AI agents: this page in Markdown, llms.txt, the index of guides and public pages