On this page
What this issue is
SPF (Sender Policy Framework) is a DNS record listing the servers allowed to send mail for a domain. The receiving server compares the IP address that delivered the message with that list, using the envelope sender (the hidden Return-Path address, not the From line you see).
When a rule forwards a message, for example from leads@yourcompany.com to sales@gmail.com, the forwarding server connects to Gmail from its own IP. It usually keeps the original envelope sender. Gmail then checks the original domain's SPF record, and the forwarder's IP is not in it. Result: SPF fail.
SRS (Sender Rewriting Scheme) fixes this. The forwarder rewrites the envelope sender to its own domain, so SPF is checked against the forwarder's record instead. Forwarders without SRS break SPF every time.
- Form or app sends emailSent from an IP listed in your SPF record
- Mailbox receives itSPF passes here
- Forwarding rule re-sendsNew IP, original envelope sender kept, no SRS
- Final inbox checks SPFForwarder IP not in your SPF record
- Lead seen by salesSpam folder or rejected
The message is fine when it leaves the sender. SPF fails at the last hop.
Why it costs you leads or sales
Lead notifications, order emails and booking confirmations are often sent to a shared mailbox that forwards to the people who act on them. If the final inbox sees an SPF fail, it may route the message to spam or reject it. Nobody sees the lead, and the form itself looks like it works.
The risk grows when your domain publishes a strict DMARC policy (p=quarantine or p=reject). DMARC passes if either SPF or DKIM passes and aligns with the From domain. A forwarder that breaks SPF and also edits the message (for example adds a footer or subject tag) can break DKIM too, so DMARC fails and the policy is applied.
Example: illustrative numbers for 100 lead emails sent through a forwarder without SRS, with and without a strict DMARC policy. Real results depend on the receiving provider.
How to check if your site has it
List your forwarding rules
Look in your email host (Google Workspace, Microsoft 365, cPanel, your domain registrar's email forwarding) for aliases or rules that send copies to another address. Note which ones receive form, order or booking notifications.
Send a test message through the rule
Trigger your form or send an email from an outside account to the forwarding address. Use a final inbox you can inspect, such as Gmail.
Open the original headersGmail
In Gmail, open the message, click the three dots, then Show original. Look at the SPF, DKIM and DMARC lines at the top.
Read the result
SPF: FAILorSOFTFAILwith the forwarder's IP, together withDKIM: PASSandDMARC: PASS, means forwarding breaks SPF but DKIM saves you. If DKIM and DMARC also fail, you have a delivery problem to fix now.Check the Return-Path
If the Return-Path still shows your original domain, the forwarder is not using SRS. A rewritten address such as
srs0=...@forwarder.commeans SRS is on.
Authentication-Results: mx.google.com;
dkim=pass header.d=yourcompany.com;
spf=fail (domain of leads@yourcompany.com does not designate 203.0.113.25 as permitted sender) smtp.mailfrom=leads@yourcompany.com;
dmarc=pass (p=QUARANTINE) header.from=yourcompany.comHow to fix it
There are three fixes. Pick the first that your setup allows. They are listed from most reliable to least.
| Option | What it does | When to use it |
|---|---|---|
| Stop forwarding; fetch or share the mailbox | The final user reads the mailbox directly, so no re-sending happens | Best choice when you control the mailboxes |
| Forward with SRS | Forwarder rewrites the envelope sender so SPF passes against its own domain | When you must forward to an outside address |
| Rely on DKIM and DMARC | DKIM survives forwarding if the message is not changed, so DMARC passes | As a safety net on top of either option |
Google Workspace
Use a Gmail routing or alias setup inside Workspace rather than an auto-forward to an outside address, or add the people to a Google Group so they receive the mail from inside the domain.
Microsoft 365
Use a shared mailbox or a distribution group instead of an external forwarding rule. Microsoft rewrites the sender when it forwards externally, but a shared mailbox avoids the hop.
cPanel or Exim hosts
Ask your host whether SRS is enabled for forwarders. If not, switch the forwarder to a real mailbox and set up fetching or an IMAP connection in the destination account.
Postfix (self-managed)
Install an SRS daemon such as postsrsd and point Postfix at it with sender_canonical_maps and recipient_canonical_maps.
Send form mail to the final address directly
In your form plugin's notification settings, add the final recipient as the To address instead of the forwarding alias.
Use an SMTP or email service plugin
Send through an authenticated provider that signs with DKIM for your domain, and add its include to your SPF record.
Not applicable
Tag Manager does not send or forward email. This fix happens in your email host and DNS.
# /etc/postfix/main.cf
sender_canonical_maps = tcp:127.0.0.1:10001
sender_canonical_classes = envelope_sender
recipient_canonical_maps = tcp:127.0.0.1:10002
recipient_canonical_classes = envelope_recipient,header_recipientHow to confirm it's fixed
- Send a new test through the same forwarding path.
- In Show original, DMARC shows PASS.
- Either SPF passes (with SRS, against the forwarder's domain) or DKIM passes and aligns with your From domain.
- The Return-Path shows a rewritten SRS address if you enabled SRS.
- The test message lands in the inbox, not spam.
- Repeat the test with a Gmail, an Outlook and a Yahoo address as the final recipient if your team uses them.
How to prevent it happening again
- Keep a list of every forwarding rule and what mail passes through it.
- Prefer shared mailboxes or groups over external auto-forwarding.
- Keep DKIM enabled for every system that sends as your domain.
- Publish DMARC with reporting (
rua=) and read the reports for forwarding-related failures before moving top=reject. - Re-test after changing email hosts, adding aliases or tightening DMARC.
How FunnelGuard handles this
This issue is outside what FunnelGuard checks. FunnelGuard runs your customer journeys and checks that test leads reach the inbox and CRM, but it does not read SPF results from forwarded mail or analyse your forwarding setup.
The kind of tool that fits is an email authentication and DMARC reporting tool. It reads DMARC aggregate reports and shows which sending sources and forwarders fail SPF or DKIM. A free mail-header analyser or a DNS and SPF checker also helps with one-off checks.
Frequently asked questions
Questions people ask
Why does email forwarding break SPF?
The forwarding server re-sends the message from its own IP address but usually keeps the original envelope sender. The final inbox checks the original domain's SPF record, and the forwarder's IP is not listed, so SPF fails.
What is SRS in email?
SRS (Sender Rewriting Scheme) is a method where the forwarder rewrites the envelope sender to an address at its own domain. SPF is then checked against the forwarder's record, which lists its own servers, so it passes.
Will a forwarded email still pass DMARC if SPF fails?
Yes, if DKIM passes and aligns with the From domain. DMARC needs only one of SPF or DKIM to pass with alignment. DKIM usually survives forwarding unless the forwarder changes the signed content.
Why are my forwarded contact form emails going to spam?
A common cause is SPF failing at the final inbox because the forwarder does not use SRS, often combined with a DMARC policy that tells receivers to quarantine failures. Check the original headers of a spam-foldered message to see the SPF, DKIM and DMARC results.
How do I check if my forwarding rule uses SRS?
Send a test through the rule and open the original headers at the destination. If the Return-Path is a rewritten address like srs0=...@forwarder.com, SRS is on. If it still shows your own domain, it is not.
Should I add the forwarder's IP to my SPF record?
No. It weakens your domain's protection, risks hitting the 10-lookup limit, and breaks whenever the forwarder changes IPs. Use SRS, a shared mailbox, or DKIM-aligned DMARC instead.
Is it better to use a shared mailbox than forwarding?
Usually yes. People read the mailbox directly or through a group, so there is no second delivery hop and no SPF recheck from a different IP.
Related issues
- DLV-048Domain has no SPF recordFix guide
- DLV-049SPF exceeds 10 DNS lookups (permerror)Fix guide
- DLV-052DKIM selector record missing or wrong keyFix guide
- DLV-053DMARC record missing (Gmail/Yahoo bulk sender requirement)Fix guide
- DLV-054DMARC alignment fails because From domain differs from the sending domainFix guide
- DLV-051SPF missing the ESP's include (SendGrid, Mailgun, Postmark)Fix guide