[Documentation](https://mailglo.com/docs/) / Questions and answers

For AI agents: [llms.txt, the index of guides and public pages](https://mailglo.com/llms.txt)

# 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

- [RFC 9989, section 4.4](https://www.rfc-editor.org/rfc/rfc9989#section-4.4) and [section 4.4.2](https://www.rfc-editor.org/rfc/rfc9989#section-4.4.2): alignment, and why DMARC needs it for SPF. May 2026.
- [RFC 9989, section 8](https://www.rfc-editor.org/rfc/rfc9989#section-8): no `p=reject` on SPF alone. May 2026.
- [RFC 7208, section 2.4](https://www.rfc-editor.org/rfc/rfc7208#section-2.4): SPF checks the MAIL FROM address. April 2014.
- Amazon: [Using a custom MAIL FROM domain](https://docs.aws.amazon.com/ses/latest/dg/mail-from.html) and [Complying with DMARC](https://docs.aws.amazon.com/ses/latest/dg/send-email-authentication-dmarc.html). Read on 27 November 2026.

Last updated 28 Nov 2026: First version.
