When a forwarder rewrites a message's envelope sender with SRS, why does the copy pass SPF yet fail DMARC's SPF alignment, and what can still give it a DMARC pass?
answer
- whose domain is in MAIL FROM now
- the original domain is only embedded
- SRS0 address at the forwarder
- an untouched aligned signature
basics
~20 sSRS puts an address at the forwarder's domain in MAIL FROM, so SPF passes for the forwarder, which is unaligned with the original From domain. Only an aligned DKIM signature that still verifies after forwarding can give the copy a DMARC pass.
solid answer
~40 sA forwarder that relays a message to a new mailbox sends from its own IP addresses. With the **Sender Rewriting Scheme** (SRS, defined in a 2004 paper, never an RFC) it also replaces the envelope sender with an address at its own domain, such as `[email protected]`, so bounces come back to it and SPF can pass. That pass is for `example.org`, the forwarder. DMARC compares the `MAIL FROM` domain with the `From:` domain, `example.com`, and finds no shared organizational domain, so the **SPF path cannot align**: the original domain inside the local part is just text. What can still carry the copy is the original **DKIM signature**: if it had an aligned `d=example.com` and the forwarder did not modify the signed content, it still verifies and still aligns, and one aligned pass is enough.
go deeper
Remember that SRS makes SPF pass for the forwarder's domain, not yours, so SPF alignment is lost on forwarded copies.
Explain why the original domain inside the SRS local part does not count, and how an untouched aligned DKIM signature still carries DMARC.
Read forwarded rows in reports correctly: SPF passing for a forwarder with SPF unaligned is expected, and DKIM alignment is the health signal.
Use forwarding as the argument for aligned DKIM on every stream before enforcement, since no SPF work on your side can cover rewritten envelopes.
## The flow A retailer, `example.com`, sends an order confirmation to a customer's old address at `example.org`, a domain that forwards mail to the customer's current mailbox elsewhere. The confirmation is signed with `d=example.com`, and its envelope is aligned too. The forwarder relays it on. Without any rewriting, the forwarder would present the original envelope sender from its own IP address, and the final receiver's SPF check for `example.com` would typically not authorize that IP. Why that SPF check fails, and how SRS lets bounces still find their way back, is covered with SPF results and forwarding breakage. This answer is about what happens to **alignment** once the envelope has been rewritten. ## What SRS changes The Sender Rewriting Scheme, described in a 2004 paper (SRS has no RFC), rewrites the reverse-path into an address at the forwarder's own domain that encodes the original sender. The paper's format for the first hop is: ```pseudocode SRS0=HHH=TT=hostname=local-part@forwarder-domain # HHH: hash keyed with the forwarder's secret # TT: timestamp limiting how long the address is valid # hostname, local-part: the original sender, for routing bounces back ``` So the copy leaves `example.org` with `MAIL FROM:<[email protected]>`. Hop by hop: | Hop | Sending IP belongs to | `MAIL FROM` domain | SPF result | SPF aligned with `example.com`? | |---|---|---|---|---| | retailer to forwarder | `example.com` | `example.com` | `pass` | yes | | forwarder to final mailbox | `example.org` | `example.org` | `pass` | **no** | ## Why SPF passes but alignment fails DMARC (RFC 9989, May 2026) relies solely on SPF's `MAIL FROM` identity, and only the **domain** of that identity is aligned with the domain of the `From:` header. After SRS: - the `MAIL FROM` domain is `example.org`, the forwarder's; - SPF passes for `example.org`, because the forwarder authorizes its own servers; - `example.org` and `example.com` share no organizational domain, so the SPF-authenticated identifier does not align, in relaxed or strict mode; - the string `example.com` inside the SRS local part plays no part, because alignment never reads the local part. RFC 7960 states the general case: if a forwarder replaces the `MAIL FROM` with its own domain, "SPF might pass, but Identifier Alignment with the RFC5322.From header field will fail". SRS is the best-known way of doing that replacement, so it is the best-known example. ## Relaxed or strict makes no difference here Because the forwarder's domain belongs to a different organization, the SPF path fails alignment under `aspf=r` and `aspf=s` alike. Loosening the mode cannot rescue it. On the DKIM path, by contrast, `adkim=s` costs nothing as long as the original signature's `d=` is exactly the From domain, so the alignment mode is not the lever for forwarded mail; the signature is. ## What can still give the copy a pass DMARC needs only one aligned pass, so the copy survives if the **DKIM path** survives: 1. The original message carried a signature with an aligned `d=`, here `d=example.com`. 2. The forwarder did not modify the signed header fields or the body, so the signature still verifies at the final receiver. 3. The verified `d=example.com` aligns with `From: [email protected]`, and DMARC passes despite the unaligned SPF pass. If the forwarder altered the content, for example by adding a footer or rewriting a subject line, the signature breaks and neither path aligns. That breakage, mailing lists, and the sealed authentication record some forwarders add for receivers that choose to trust it, are covered with DMARC rollout. ## What it means for the domain you run - **Sign everything with an aligned `d=`.** It is the only alignment path that can survive a forwarder that rewrites the envelope; an aligned envelope domain never can. - **Expect forwarded mail in your reports.** Aggregate reports will show forwarders' IPs with SPF passing for the forwarder's domain and SPF alignment failing; when DKIM alignment passes in those rows, the stream is healthy. - **Do not chase the SPF path for forwarded copies.** No change to your own SPF record can make a forwarder's domain align with yours. - **Mind early SPF rejection.** RFC 9989 section 7.1 warns that a receiver may reject on an SPF `fail` before DMARC runs, so a message that would have passed on aligned DKIM can still be lost; an SRS-rewritten copy avoids that particular fail, though not the alignment loss.
- Does the original domain encoded inside an SRS0 address count toward SPF alignment?No. DMARC aligns only the domain of the `MAIL FROM` identity, which after SRS is the forwarder's domain. The original sender's domain survives only inside the local part, for routing bounces back, and RFC 9989 alignment never reads local parts. The SPF path of an SRS-rewritten copy cannot align with the original From domain.
- Why is an aligned DKIM signature more robust than an aligned envelope domain for mail that may be forwarded?A DKIM signature travels inside the message, so a forwarder that leaves the signed content alone hands it on intact and it still verifies with an aligned `d=`. The envelope is rebuilt at every hop, and a forwarder that rewrites it, with SRS or otherwise, replaces the aligned domain with its own.
- SRS keeps SPF aligned because the original domain is in the address.
- SRS restores the original envelope sender before DMARC is evaluated.
- A forwarded copy can never pass DMARC once SPF alignment is lost.
- Adding the forwarder to your own SPF record fixes forwarded alignment.
- Relaxed alignment accepts the forwarder's domain because SPF passed.