In DMARC's SPF alignment, which SPF-checked domain is compared with From, and what replaces it on a bounce with a null MAIL FROM?
answer
- two identities SPF can check
- envelope, not the greeting
- empty reverse-path on bounces
- postmaster at the HELO name
basics
~20 sOnly the MAIL FROM domain that SPF validated counts. When the reverse-path is null, as on a bounce, RFC 7208 defines the MAIL FROM identity as postmaster@ the HELO name, so that name is aligned; a separate HELO check never counts.
solid answer
~40 sSPF can check two identities: the domain in the `HELO`/`EHLO` command and the domain in `MAIL FROM`. RFC 9989 (May 2026) says DMARC relies **solely** on SPF validation of the `MAIL FROM` identity, and only an SPF `pass` produces an SPF-authenticated identifier. When the `MAIL FROM` reverse-path is null (`MAIL FROM:<>`), as on a delivery status notification, RFC 7208 section 2.4 defines the `MAIL FROM` identity as the mailbox `postmaster@` the HELO name, so that HELO domain becomes the SPF domain DMARC aligns. That is still the `MAIL FROM` identity, not the separate HELO check RFC 7208 recommends: a HELO pass for a sending host on a message with a normal `MAIL FROM` contributes nothing to DMARC. RFC 7489 said the HELO identity was "not typically used"; RFC 9989 makes the exclusion explicit.
go deeper
Recall that DMARC uses SPF's MAIL FROM result, and only a pass, never the HELO result.
Explain the null reverse-path rule: with MAIL FROM:<> the identity becomes postmaster@ the HELO name, and that domain is what aligns.
When SPF shows pass but DMARC fails, check which identity the pass was for before blaming the record, and remember relayed bounces need DKIM.
Choose HELO names for your own outbound hosts knowing they become the SPF identity on every bounce you send, and decide whether that path must align.
## Two identities SPF can check **SPF** (RFC 7208, April 2014) authorizes IP addresses to send for a domain, and it can be applied to two identities taken from the SMTP dialog: - the **HELO identity**, the domain the client gives in `HELO` or `EHLO`. RFC 7208 section 2.3 RECOMMENDS checking it as well, and checking it before `MAIL FROM` when both are checked, because a record for a single host is a cheap and reliable answer. - the **MAIL FROM identity**, the domain of the reverse-path in `MAIL FROM`. Section 2.4 says verifiers MUST check it if a HELO check was not done or did not reach a definitive result. Each check yields its own result for its own domain. A receiver may log both. DMARC, however, picks exactly one of them. ## The one DMARC uses RFC 9989 section 3.2.4 defines the **SPF Domain** as "an SPF-validated MAIL FROM identity", and sections 3.2.4 and 4.4.2 say DMARC relies **solely** on SPF validation of the `MAIL FROM` identity. Three rules follow: 1. The SPF-authenticated identifier is the `MAIL FROM` domain, and it exists only when SPF returns `pass` for it. `softfail`, `neutral`, `none` and the error results produce no identifier to align. 2. That domain is compared with the **Author Domain**, the domain of the `From:` header, in relaxed or strict mode as `aspf` says. 3. A result for the HELO identity is never an input to alignment, however reliable it was. ## The null reverse-path case SMTP allows an empty reverse-path, written `MAIL FROM:<>`. RFC 5321 section 4.5.5 requires it on notifications about an earlier message: non-delivery notifications (bounces), other delivery status notifications and message disposition notifications. With no sender mailbox there would be no domain for SPF to check, so RFC 7208 section 2.4 fills the gap: 1. The client greets with, say, `EHLO mx1.example.org`. 2. It sends `MAIL FROM:<>`. 3. SPF treats the `MAIL FROM` identity as the mailbox `[email protected]`, built from the local part `postmaster` and the HELO identity. 4. If SPF passes for `mx1.example.org`, that domain is the SPF-authenticated identifier, and DMARC aligns it with the bounce's `From:` domain. RFC 9989 section 3.2.4 points to exactly this rule. The domain checked is the HELO name, but it is checked *as the MAIL FROM identity*; that is why DMARC may use it while still ignoring the separate HELO check. ## Why the HELO check is excluded | | HELO check | MAIL FROM check (incl. null path) | |---|---|---| | Domain checked | the `HELO`/`EHLO` name | the reverse-path domain, or the HELO name when the path is `<>` | | RFC 7208 strength | RECOMMENDED | MUST, unless a HELO check was definitive | | Used for DMARC alignment | never | yes, when SPF returns `pass` | RFC 9989 states the rule rather than a rationale, but the reason is visible in how mail flows. The HELO name identifies the sending host, not the party responsible for the message; a shared sending service typically greets with its own host names whichever customer it is sending for, so a HELO pass says nothing about which From domain was authorized. The `MAIL FROM` domain is where a sender says problems should go, and a domain owner can choose it. ## From RFC 7489 to RFC 9989 RFC 7489 (2015) said DMARC uses the SPF result of the `MAIL FROM` identity and noted that the HELO identity "is not typically used" except to stand in for a null reverse-path. RFC 9989 replaced that hedge with "relies solely on". An answer that says DMARC may fall back to any SPF pass on the HELO name is describing neither text. ## Practical consequences - **Bounces you generate.** Your own notifications carry `MAIL FROM:<>`; their SPF path aligns only if your MTA's HELO name is aligned with the notification's `From:` domain: sharing its organizational domain under relaxed `aspf`, identical to it under `aspf=s`. - **Bounces relayed by others.** RFC 7960 notes that when a forwarder relays a notification with an empty `MAIL FROM`, the forwarder's HELO domain will likely sit in a different organizational domain from the original `From:`, so SPF may pass but alignment fails; DKIM has to carry such mail. - **Diagnosis.** When a message passes SPF yet fails DMARC, first ask which identity the logged SPF pass was for. A HELO pass, or a pass for an unrelated envelope domain, explains the fail on its own.
- Does an SPF softfail for an envelope domain that matches the From domain help DMARC?No. Only an SPF `pass` makes the `MAIL FROM` domain an SPF-authenticated identifier, and RFC 9989's examples state that alignment cannot exist without a passing result. A `softfail` leaves the SPF path empty however perfectly the domains match, so the message needs an aligned DKIM pass to pass DMARC.
- Why did DMARC's authors not let the HELO identity count as a fallback?RFC 9989 states the rule rather than its reasons, but the HELO name identifies a sending host, not the party responsible for the message. A shared sending service typically greets with its own host names for every customer, so a passing HELO says nothing about the From domain. The `MAIL FROM` domain is the one a responsible sender chooses, so it is the identity worth aligning.
- DMARC aligns whichever SPF identity passed, HELO or MAIL FROM.
- A null-sender bounce can never produce an SPF identifier for DMARC.
- An SPF softfail still counts toward DMARC if the domains match.
- For a bounce, SPF checks the From header domain instead of the envelope.
- RFC 9989 lets receivers fall back to the HELO check when MAIL FROM fails.