# Why Email Forwarding & Mailing Lists Break SPF/DKIM under DMARC p=reject (SRS, DKIM & ARC)

> Understand how auto-forwarding breaks SPF and how mailing lists break DKIM signatures under DMARC p=reject, plus SRS, relaxed DKIM canonicalization, and RFC 8617 ARC.

- **Canonical URL**: https://opslint.dev/dmarc/mailing-lists-forwarding-arc-spf-breakage/
- **Category**: `DMARC`
- **Interactive Workbench**: [Open in Live Workbench](https://opslint.dev/dmarc/#domain=cloudflare.com)
- **Normative Specifications**: `RFC 7489 §10.3 & RFC 7960 (Interoperability Issues Between DMARC and Indirect Email Flows)`, `RFC 8617 (Authenticated Received Chain - ARC)`, `RFC 6376 §3.4 (DKIM c=relaxed/relaxed Header/Body Canonicalization)`

## Incident Symptom & Root Cause

**Production Symptom**: After enabling DMARC p=reject, engineers or executives posting to Mailman / Google Groups mailing lists have their emails rejected for all external list subscribers, or customers using alumni .edu / pobox forwarding rules miss messages that lack DKIM!

**Protocol / Engine Root Cause**: Indirect mail flows break authentication in two distinct stages: (1) Simple auto-forwarding preserves the original envelope MAIL FROM while relaying from the forwarder's IP (breaking SPF—unless the forwarder rewrites MAIL FROM via SRS, which STILL breaks DMARC SPF alignment because Return-Path is now the forwarder's domain!); (2) Mailing lists modify the Subject: tag ([dev-list]) and append an unsubscribe footer to the message body—invalidating the sender's cryptographic DKIM body hash (bh=) too!

## Remediation Diff (Broken vs Verified Fix)

### Fragile Sender Setup: SPF-Only (No DKIM) or c=simple/simple + l= Tag Abuse

```text
# 1. Sending with SPF ONLY (zero DKIM signature) + DMARC p=reject:
# 100% of auto-forwarded emails (.edu, Cloudflare Email Routing, Exchange forward) FAIL DMARC!

# 2. Signing DKIM with c=simple/simple (breaks if an intermediate MTA touches whitespace/case!):
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=example.com; s=s1; ...
# (Note: NEVER use DKIM 'l=' body-length tag to survive footers—'l=' allows attackers to append phishing HTML!)
```

### Forwarding-Resilient DKIM (c=relaxed/relaxed) + ~all + ARC-Aware Gateways

```text
# 1. Outbound Sender Configuration (Survives 99% of Auto-Forwarding!):
# - Sign 100% of outbound mail with 2048-bit RSA DKIM using c=relaxed/relaxed
# - Do NOT oversign volatile headers (avoid signing Return-Path, Received, Comments)
# - Pair SPF ~all (instead of pre-DATA -all) with DMARC p=reject so receivers verify DKIM!
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=example.com; s=pm2026;
  h=from:to:subject:date:message-id:mime-version:content-type; ...

# 2. If YOU operate a forwarding relay or mailing list (Postfix / Sympa / Mailman 3):
# - Forwarders: Rewrite MAIL FROM via SRS AND seal upstream auth via RFC 8617 ARC (OpenARC / rspamd)!
# - Mailing lists: Enable DMARC From-Munging ("Alice via DevList <list@lists.org>", Reply-To: alice@example.com)!
```

## Engineering Deep Dive

Separate Alumni / Mailbox Auto-Forwarding from Subject/Footer-Modifying Mailing Lists, because they behave completely differently! In plain mailbox forwarding (alice@example.com -> bob@stanford.edu -> bob@gmail.com), Stanford's MTA relays the raw message bytes untouched. Even if Stanford uses SRS (Sender Rewriting Scheme) so raw SPF passes for SRS0=...@stanford.edu, stanford.edu does NOT align with From: alice@example.com—so DMARC SPF alignment ALWAYS fails across external forwarding! What saves the message 100% of the time? Aligned DKIM (d=example.com) with c=relaxed/relaxed canonicalization! Because the headers and body weren't altered, Alice's DKIM signature verifies cleanly at Gmail and passes DMARC!

Now look at Modifying Mailing Lists (Mailman, Listserv, legacy Google Groups) that prepend [sec-ops] to Subject: and append a 4-line text/HTML footer to the body: now SPF is unaligned AND Alice's DKIM body hash (bh=) fails verification! When BOTH aligned SPF and aligned DKIM fail under p=reject, only two mechanisms in the email ecosystem prevent mass subscriber bounces (which otherwise cause mailing lists to auto-unsubscribe your staff due to bounce scores!): (1) modern list software (Mailman 3, Discourse, Groups.io) detects p=reject/p=quarantine via DNS and automatically rewrites From: "Alice (via list)" <list@lists.org> with Reply-To: alice@example.com; and (2) RFC 8617 ARC (Authenticated Received Chain)!

How does RFC 8617 ARC rescue legitimate list/forwarded mail at Gmail and Microsoft 365? Before modifying the Subject or body, the mailing list server verifies that Alice's original message passed dmarc=pass on arrival, records that cryptographic attestation inside ARC-Authentication-Results, ARC-Message-Signature, and ARC-Seal (i=1), and forwards the message. If Gmail trusts that intermediary's ARC seal reputation and sees dmarc=pass at i=1, Gmail can apply a local policy override (reason=trusted_arc) instead of bouncing legitimate list traffic!

## Indirect Mail Flows Survival Matrix under DMARC p=reject

| Case / Engine | Protocol Behavior | Production Remediation |
| :--- | :--- | :--- |
| **Auto-forward without SRS (body untouched)** (`#flow-plain-forward-no-srs`) | SPF fails (wrong IP); DKIM passes & aligns! DMARC PASSES via DKIM (unless pre-DATA -all rejected early!). | Sign 100% of mail with DKIM (c=relaxed/relaxed) and prefer SPF ~all under DMARC p=reject. |
| **Auto-forward WITH SRS (Cloudflare Email Routing, Postfix SRS)** (`#flow-srs-forward`) | Raw SPF passes for forwarder domain (unaligned with From:!); DMARC still relies 100% on DKIM! | Never rely on SPF alone—SRS fixes raw SMTP bounces, NOT DMARC SPF alignment! |
| **Mailing list altering Subject: or appending body footer** (`#flow-modifying-mailing-list`) | SPF unaligned AND sender DKIM bh= broken -> DMARC FAILS unless From-munged or ARC-rescued! | List operators: enable DMARC From-rewriting + ARC sealing (OpenARC / rspamd arc module). |
| **Using DKIM 'l=' body length limit to survive footers** (`#flow-dkim-l-tag-ban`) | CRITICAL VULNERABILITY: allows attackers to append arbitrary HTML/CSS overlay phishing after byte l! | NEVER set 'l=' in DKIM-Signature (explicitly warned against in RFC 6376 §8.2!). |

## Frequently Asked Engineering Questions

### Wait: why doesn't SRS (Sender Rewriting Scheme) make forwarded mail pass DMARC SPF?

Because SRS rewrites the SMTP envelope MAIL FROM from <alice@example.com> to <SRS0=hash=TT=example.com=alice@forwarder.edu>! While raw SPF now passes for forwarder.edu, DMARC compares forwarder.edu against visible From: <alice@example.com> -> domain mismatch -> SPF Alignment FAILS! Only intact DKIM (or trusted ARC) passes DMARC across external forwarding.

### How can I tell in my DMARC XML aggregate reports whether a failure was actually rescued by ARC at Google?

Inspect the <reason> block inside <policy_evaluated> in the XML report! When Google overrides a DMARC failure due to a trusted mailing list or ARC chain, <disposition> shows 'none' alongside <reason><type>local_policy</type><comment>arc=pass</comment></reason> (or <type>mailing_list</type>).

### Which DKIM headers should we ALWAYS include (and exclude) in 'h=' for maximum forwarding survival?

Sign immutable core headers required by RFC 6376 §5.4: from (mandatory!), to, cc, subject, date, message-id, reply-to, in-reply-to, references, mime-version, content-type, list-unsubscribe, list-unsubscribe-post. Never sign trace/transport headers added or rewritten by hops (Return-Path, Received, X-Forwarded-To).

## Related Problem-Cluster Guides

- [SPF ~all (SoftFail) vs -all (HardFail) Under DMARC Enforcement: RFC Truth & Forwarding](https://opslint.dev/spf/softfail-tilde-all-vs-hardfail-minus-all-dmarc/) — Compare SPF ~all SoftFail, -all Fail, and ?all Neutral under RFC 7208 and RFC 7489 DMARC, including why forwarded DKIM-signed mail interacts differently with -all.
- [DMARC Identifier Alignment Explained: SPF Pass + DKIM Pass Can Still Fail DMARC!](https://opslint.dev/dmarc/identifier-alignment-spf-dkim-relaxed-vs-strict/) — Why emails with spf=pass and dkim=pass still bounce with dmarc=fail when Return-Path or DKIM d= domains don't align with From:, plus aspf=r/s and adkim=r/s rules.
- [DKIM 2048-Bit RSA Key Rotation, Selector Naming, and CNAME Vendor Delegation](https://opslint.dev/dmarc/dkim-2048-bit-key-rotation-and-cname-delegation/) — Upgrade weak 1024-bit DKIM keys to 2048-bit RSA without mid-flight verification failures using dual-selector blue/green rotation and vendor CNAME delegation.
- [How to Read DMARC Aggregate XML Reports: policy_evaluated vs auth_results Triage](https://opslint.dev/dmarc/dmarc-aggregate-xml-report-disposition-triage/) — Decode gzipped RFC 7489 Appendix C DMARC XML reports without false alarms: why auth_results vs policy_evaluated differ, how to spot spoofers vs forwarders, and fix gaps.
