skip to content

A retailer's order confirmations, sent through an outside commerce platform, pass SPF and DKIM yet fail DMARC; what is the likely cause, and how is it fixed?

level: seniorimportance: must knowfreq 50%

answer

  1. whose domains actually passed
  2. the platform's bounce domain
  3. the platform's own d=
  4. envelope subdomain or your own d=

basics

~20 s

Both passes cover the platform's own domains, its bounce domain in MAIL FROM and its DKIM d=, so neither aligns with the retailer's From domain. Fix it with an envelope subdomain of the retailer's domain or a signature with the retailer's d=.

solid answer

~50 s

The passes are real but for the wrong domains. Out of the box, a sending platform puts its **own bounce domain** in `MAIL FROM`, so SPF passes for, say, `bounces.example.net`, and it signs with its **own** `d=example.net`, so DKIM verifies too. The `From:` says `[email protected]`, and neither `example.net` name shares `example.com`'s organizational domain, so DMARC has no aligned identifier and fails. There are two fixes, and either is enough: have the platform sign with `d=example.com` using a selector published under the retailer's domain, or have it use a **custom envelope subdomain** such as `bounce.example.com` in `MAIL FROM`, with SPF authorizing the platform there, which aligns under the default relaxed `aspf`. Doing both gives a spare path. Adding the platform to `example.com`'s own SPF record fixes nothing, because SPF is not checked against the From domain.

go deeper

for a junior

Remember that SPF and DKIM can both pass for the platform's domains while DMARC fails, because neither domain is the one in From.

for a middle

Explain the two fixes, an aligned DKIM d= and an aligned envelope subdomain, and why the subdomain aligns only under relaxed aspf.

for a senior

Diagnose by listing the domain each passing check covered, prefer the DKIM fix for its resilience, and verify both paths in reports before enforcement.

for a principal

Make an aligned signature a contract requirement for every outside sender, so no new platform can reach production mail without an aligned path.

## What the receiver actually saw The retailer, `example.com`, sends order confirmations through an outside commerce platform that runs at `example.net`. Customers' mailbox providers record SPF `pass` and DKIM `pass` for these messages, yet DMARC `fail`, and once the retailer's policy moves past `p=none`, receivers that honor it can quarantine or reject the confirmations. The first move is to write down which domain each check covered: | Identity | Value on the message | Result | Aligned with `example.com`? | |---|---|---|---| | Author Domain (`From:`) | `[email protected]` | | | | SPF, `MAIL FROM` domain | `bounces.example.net` | `pass` | no | | DKIM, `d=` | `example.net` | `pass` | no | How to read those values out of the receiver's recorded results is covered with envelope and header identities; for alignment, what matters is the domains. ## Why two passes add up to a fail DMARC (RFC 9989, May 2026) passes a message only when at least one SPF or DKIM pass is for a domain **aligned** with the From domain: the same organizational domain under the default relaxed mode, the identical name under strict mode. Here: - SPF honestly says the platform's IP may send for the platform's bounce domain. It says nothing about `example.com`. - DKIM honestly says the platform signed the message. It says nothing about `example.com` either. - `example.net` and `example.com` share no organizational domain, so **neither identifier aligns**, and DMARC fails. RFC 9989 sections 4.4.1 and 4.4.2 explain why DMARC refuses these passes: there is no generally accepted way for a domain owner to list outside domains allowed to sign or appear in `MAIL FROM` for it, and anyone can publish SPF or sign for their own domain. ## Fix 1: a DKIM signature with the retailer's d= RFC 9989 section 5.1.2 asks a domain owner to make every sending system sign with a `d=` domain aligned with the Author Domain. For an outside platform that usually means: 1. The platform generates a key pair for the retailer, or the retailer supplies one. 2. The retailer publishes the public key under its own zone at a selector name such as `s2026a._domainkey.example.com`, or points that name at a record the platform maintains. 3. The platform signs confirmations with `d=example.com; s=s2026a`. The DKIM identifier is now `example.com`, aligned in both relaxed and strict mode. How selectors, key records and rotation work is covered with DKIM. ## Fix 2: a custom envelope subdomain RFC 9989 section 5.1.1 asks for a `MAIL FROM` domain whose SPF pass aligns with the Author Domain. Since bounces still have to reach the platform, the usual pattern is a dedicated subdomain: 1. The retailer delegates or publishes `bounce.example.com` so that bounces to it reach the platform. 2. It publishes an SPF policy at `bounce.example.com` authorizing the platform's sending addresses. 3. The platform sends with `MAIL FROM:<[email protected]>`. The SPF identifier is now `bounce.example.com`, which shares `example.com`'s organizational domain and therefore aligns under relaxed `aspf=r`, the default. Under `aspf=s` it would not align, because strict mode needs the identical name. ## Which fix to prefer - **DKIM first.** An aligned signature survives plain forwarding when the message is not modified, while the SPF path is lost on forwarded copies, which either fail SPF or pass it only for the forwarder's domain. - **Both when the platform supports it.** Two aligned paths mean one misconfiguration does not fail the stream. - **Not the tempting non-fix.** Adding the platform to the SPF record of `example.com` changes nothing while `MAIL FROM` stays at `example.net`, because SPF checks the `MAIL FROM` domain, not the `From:` domain. - **Not a Sender: header.** RFC 9989 Appendix A.3 explains that DMARC deliberately ignores `Sender:`. ## Confirming the fix Before and after the change, the retailer's aggregate reports show each source with its SPF and DKIM results and alignment, which is how a forgotten platform shows up in the first place; reading those reports is covered with DMARC reporting. After the change, a test confirmation should show an aligned DKIM pass for `example.com` and, if Fix 2 is in place, an aligned SPF pass for `bounce.example.com`. Only then is it safe to keep tightening the policy, as RFC 9989 section 5.1.6 requires legitimate unaligned streams to be remediated before enforcement.

  • Why does adding the platform's sending addresses to example.com's own SPF record not fix the DMARC failure?
    Because SPF is evaluated for the `MAIL FROM` domain, and the platform still uses its own bounce domain there. The receiver never consults `example.com`'s SPF record for this message, so the change only grows that record. SPF alignment needs the envelope domain itself to move under `example.com`, for example to `bounce.example.com`.
  • The platform moves its envelope to bounce.example.com, but the retailer's DMARC record has aspf=s. Does the SPF path align?
    No. Strict SPF alignment requires the `MAIL FROM` domain to be identical to the From domain, and `bounce.example.com` is not `example.com`. The stream then depends on an aligned DKIM signature, or the retailer relaxes `aspf` back to its default `r`, under which the subdomain shares the organizational domain and aligns.
  • Is an aligned DKIM signature or an aligned envelope subdomain the better first fix for a platform stream?
    Usually the aligned DKIM signature. It aligns in both relaxed and strict modes and survives forwarding that leaves the message unmodified, whereas an envelope subdomain aligns only under relaxed `aspf` and is lost on forwarded copies, whether or not the forwarder rewrites the envelope. Many owners do both so either path can carry the stream.

  • Adding the platform to example.com's SPF record fixes the SPF alignment.
  • Two passing checks should be enough for DMARC to pass.
  • The platform's DKIM signature fails because d= differs from From.
  • An envelope subdomain like bounce.example.com aligns even under aspf=s.
  • Adding a Sender: header naming the retailer makes DMARC pass.