When a cPanel user forwards alex@example.com to a personal Gmail, the message exits the cPanel server with the original From: intact but the envelope sender (Return-Path:) now belongs to the forwarder. SPF authenticates the cPanel server’s IP — which is correct — but the result no longer aligns with the original sender’s domain. DMARC fails. Sender Rewriting Scheme is the standard workaround: it rewrites the envelope sender so SPF aligns with a domain you control, while the original sender stays recoverable.
What’s happening
SRS encodes the original sender’s address into a local-part on a domain you control. A message originally from sender@partner.com forwarded by forwarder.example.com exits with an envelope sender like SRS0=hash=ts=partner.com=sender@forwarder.example.com. SPF for forwarder.example.com now authenticates the message correctly, and any bounce returns to that address — the SRS code lets the receiving server decode it back to the original sender.
How to verify
Check whether SRS is enabled in the Exim configuration:
grep -i srs /etc/exim.conf.localopts
exim -bP | grep srs
Then send a test message through a forwarder and inspect the message’s Return-Path at the destination:
Return-Path: <SRS0=hash=ts=partner.com=sender@forwarder.example.com>
If you see the original sender’s full address unrewrritten, SRS is not active.
The fix
- Enable SRS in WHM > Exim Configuration Manager > Basic Editor, or via Advanced Editor with
srs_config = enabled. cPanel manages the SRS secret automatically. - Confirm DKIM is also being preserved. SRS fixes SPF alignment but does nothing for DKIM. If your forwarder rewrites the message body or headers (some virus scanners do), DKIM still breaks, and DMARC fails despite SPF passing. For sensitive forwarding paths, layer ARC sealing on top of SRS.
- Audit forwarder destinations for receivers under DMARC
p=reject. Forwarding to those destinations fails regardless of SRS if DKIM is also broken — set user expectations or replace the forwarder with a shared mailbox. - Monitor SRS bounces. Bounces to SRS-encoded addresses must be decoded back to the original sender. If your Exim isn’t configured to handle SRS bounces correctly, legitimate bounce notifications get dropped.
- Document SRS in your runbook. New operators will see SRS-encoded addresses in the logs and the queue and need to know they’re not garbage — they’re encoded original senders.
For environments where forwarders are common and DMARC enforcement is a target, Stack Harbor wires SRS and ARC into the standard Exim build under cPanel server administration.