MailDoctor Email deliverability check

Guides

SendGrid: SPF, DKIM and DMARC setup

Your app sends through Twilio SendGrid, and a receiver reports an SPF, DKIM or DMARC failure. The fix is SendGrid's domain authentication: a few CNAME records that put SPF and DKIM on your own domain.

The DNS records SendGrid asks for

Start domain authentication under Sender Authentication in SendGrid, then copy the records it shows. With automated security on, which is the default, they look like this. example.com is your domain.

With automated security off, SendGrid gives an MX and an SPF TXT record on the em subdomain and a DKIM TXT record instead, and you update them yourself when your account changes. Link branding is a separate set of CNAMEs for tracked links; it does not affect SPF, DKIM or DMARC.

Which check aligns with DMARC

DKIM alignment alone is enough for DMARC to pass. Until domain authentication is complete, recipients may see “via sendgrid.net” next to your From address.

Common mistakes

Check your setup

  1. Check your domain with MailDoctor (form below) for SPF, DKIM, DMARC and the rest.
  2. Check the keys with the DKIM key checker, using the selector from each DKIM CNAME name: the part before ._domainkey (s1 and s2 in SendGrid's example).
  3. Check your root SPF record with the SPF lookup counter. The automated security setup itself adds nothing to it.
  4. Send yourself a message through SendGrid and paste its headers into the email header analyzer. It shows the Return-Path, the DKIM domain, and which of them aligns.

Marketing mail: with subscription tracking on, SendGrid adds List-Unsubscribe and List-Unsubscribe-Post: List-Unsubscribe=One-Click. See List-Unsubscribe headers.

Sources, checked 27 November 2026: Configure domain authentication · Everything about DMARC · Troubleshooting DMARC failures and alignment · Cloudflare proxy status

Check the domain you send from. Grade, problems and the exact records to fix them.