How to set up SPF and DKIM for SendGrid

Short answer

SendGrid authenticates best with domain authentication (CNAMEs), not a raw SPF include. In SendGrid, set up Sender Authentication for your domain and publish the CNAME records it generates (for the return-path and the s1/s2 DKIM selectors). This gives you aligned SPF and DKIM so email passes DMARC.

Use domain authentication, not just an include

SendGrid’s Sender Authentication publishes a branded return-path and DKIM under your own domain, which is what DMARC alignment needs. The old include:sendgrid.net alone authenticates SendGrid’s domain, not yours, so SPF can pass while DMARC fails.

Publish the CNAMEs

In SendGrid: Settings → Sender Authentication → Authenticate Your Domain. Add the 3+ CNAME records it gives you (e.g. em1234, s1._domainkey, s2._domainkey) to your DNS, then click Verify.

  1. 1

    Verify the DKIM CNAME resolves

    After publishing:

    $ dig CNAME s1._domainkey.yourdomain.com +short

Check your SPF record now

Open the free SPF checker →

Frequently asked questions

Do I still need include:sendgrid.net?

If you use SendGrid’s domain authentication (recommended), you don’t add the shared include — the CNAME return-path handles aligned SPF. Mixing both can waste SPF lookups.

Why does SendGrid use CNAMEs for DKIM?

So SendGrid can rotate keys without you editing DNS — the CNAME points at SendGrid-managed records.

Aligns with the Google/Yahoo 2024 sender requirements.

Reviewed by the Skysnag Security Team. Last updated .