SendGrid domain authentication

SendGrid gives you three CNAME records to publish on your domain, and suggests a DMARC record. With the default "automated security" on, SendGrid then manages SPF and DKIM for you.

em1234.example.com          CNAME  u1234567.wl123.sendgrid.net
s1._domainkey.example.com   CNAME  s1.domainkey.u1234567.wl123.sendgrid.net
s2._domainkey.example.com   CNAME  s2.domainkey.u1234567.wl123.sendgrid.net
_dmarc.example.com          TXT    v=DMARC1; p=none;

The numbers are different for every account. Copy yours from SendGrid.

Step by step

  1. In SendGrid, go to Settings, Sender Authentication, and click Get Started under Domain Authentication.
  2. Pick your DNS host, and enter your root domain (example.com, without www). Leave automated security on unless you have a reason not to.
  3. Add the records it shows at your DNS provider.
  4. Come back and click Verify. DNS changes can take up to 48 hours; if only some records verify, wait and try again before changing anything.

Do I add include:sendgrid.net to my SPF record?

Not with automated security on. SendGrid sends with a return address on the em subdomain, and receivers check SPF there, which SendGrid manages through that CNAME. Adding include:sendgrid.net to your main record only uses up one of your ten SPF lookups. With automated security off, SendGrid shows TXT and MX records instead, and you maintain them yourself.

The mistakes I see most

Check your DKIM

I'll look up the SendGrid selectors (s1 and s2) on your domain and check the keys.

Related