MXWarden
Deliverability Playbooks / Step-by-Step Fix

Why SendGrid Passes SPF Yet Fails DMARC — And How to Fix Alignment in 5 Minutes

Adding include:sendgrid.net to your root SPF record is NOT enough for DMARC. Unless SendGrid Domain Authentication is enabled, SendGrid envelopes use [email protected] and sign DKIM as d=sendgrid.info — failing alignment 100% of the time.

Fix SendGrid DMARC Alignment & Single-Sender Trap (s1/s2 DKIM + Return-Path) — Technical Breakdown

SendGrid ModeEnvelope Return-PathDKIM Signature (d=)DMARC Verdict
Single Sender Verification[email protected]d=sendgrid.infoFAIL (0% Aligned — Blocked under p=reject)
Legacy Manual SPF Only[email protected]d=sendgrid.infoFAIL (SPF checks sendgrid.net, not your From domain!)
Domain Auth (Automated Security ON)[email protected]d=yourapp.com (s1 & s2 CNAMEs)PASS (100% SPF + DKIM Relaxed Alignment)
Link Branding EnabledTracked URLs use url123.yourapp.comAvoids shared ct.sendgrid.net spam reputationPASS + Higher Inbox Placement

Implementation Sequence

Step 1

Turn on Domain Authentication (Automated Security)

Navigate to SendGrid -> Settings -> Sender Authentication -> Authenticate Your Domain. Leave 'Use Automated Security' enabled so SendGrid manages 2048-bit key rotation via CNAMEs.

Step 2

Publish all three CNAME records without HTTP proxying

Copy the emXXXX Return-Path CNAME plus s1._domainkey and s2._domainkey CNAMEs into your DNS provider. On Cloudflare, set all three to DNS Only (grey cloud).

Step 3

Enable Link Branding to ditch ct.sendgrid.net

Spam filters penalize shared tracking domains like ct.sendgrid.net. Authenticate a branded link CNAME in the same wizard to protect transactional password-reset and receipt links.

Step 4

Test live header alignment before stepping up DMARC

Trigger one transactional email from your app and run MXWarden's Header X-Ray to verify smtp.mailfrom=emXXXX.yourapp.com and header.d=yourapp.com both align.

Frequently Asked Questions: Fix SendGrid DMARC Alignment & Single-Sender Trap (s1/s2 DKIM + Return-Path)
SendGrid says 'Verified', why did Cloudflare break it an hour later?

If Cloudflare's orange proxy cloud is enabled on s1._domainkey or emXXXX, Cloudflare serves an HTTP proxy IP instead of the target TXT/MX record, causing DKIM and SPF lookups to fail silently.

Do I still need include:sendgrid.net in my root SPF after Domain Authentication?

SendGrid's emXXXX CNAME delegates SPF directly on that envelope subdomain. Keeping include:sendgrid.net on root is only needed if a legacy integration forces your root domain into the SMTP MAIL FROM command.

How many DNS lookups does include:sendgrid.net consume?

It consumes 2 lookups (sendgrid.net -> ab.sendgrid.net) containing 17 IPv4 CIDR blocks.

More Playbooks & Browser Utilities