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.
Incident Symptom & RFC 7489 Root Cause
Authentication & Policy 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!
Alignment & Policy Discovery Mechanics
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!
Broken vs Verified Policy & Header Configuration
# 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!)# 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)!Protocol Mechanics & Operational 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
| Policy / Scenario | RFC 7489 Evaluation | Production Remediation |
|---|---|---|
| Auto-forward without SRS (body untouched) | 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) | 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 | 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 | 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!). |
Edge Cases & Engineering FAQs
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).
Aggregate RUA Report Analytics
Automated XML aggregate report ingestion and dynamic SPF flattening to stay under the 10-lookup ceiling without stale netblocks.