Emailgers

Provider guide · updated 2026-09-03

SendGrid: domain authentication and return-path alignment

SendGrid domain authentication uses three CNAME records: two for DKIM selectors and one for a branded return path. With automated security on, no SPF include is required on your root domain.

How SendGrid domain authentication works

SendGrid authenticates your domain by having you point CNAME records at hosts it controls. Two CNAMEs at s1._domainkey and s2._domainkey delegate DKIM to SendGrid so it can rotate keys without further DNS changes. A third CNAME, named like em1234.example.com, becomes the return path used for SPF.

The numeric part of the em host and the exact CNAME targets are generated per account and shown in the SendGrid UI under Settings, Sender Authentication. Copy them from there.

TypeNameValue
CNAMEs1._domainkey.example.coms1.domainkey.u1234567.wl123.sendgrid.net

The u number and wl number are shown in your SendGrid account.

CNAMEs2._domainkey.example.coms2.domainkey.u1234567.wl123.sendgrid.net
CNAMEem1234.example.comu1234567.wl123.sendgrid.net

This is the return-path host. SPF is evaluated on this subdomain, not on example.com.

SPF: only needed without automated security

With automated security enabled (the default), SendGrid manages SPF on the return-path subdomain through the em CNAME. You do not need include:sendgrid.net on your root domain for SendGrid mail.

If you turn automated security off, SendGrid gives you TXT records instead, including an SPF record containing include:sendgrid.net. In that case add the include to your existing SPF record.

Alignment and DMARC

Because the return path is a subdomain of your domain, SPF passes with relaxed alignment. DKIM is signed with d=example.com through the delegated selectors, which gives strict alignment. Either result satisfies DMARC.

Publish DMARC on your domain starting with p=none. SendGrid documents that DMARC is required by major mailbox providers for bulk senders.

TypeNameValue
TXT_dmarc.example.comv=DMARC1; p=none; rua=mailto:[email protected]

Verification and common problems

After adding the CNAMEs, click Verify in SendGrid. Verification fails when a DNS host has proxied the record or appended the domain to the target. Confirm each CNAME resolves with a DNS lookup before retrying.

If you use Cloudflare, set the three records to DNS only. Proxied CNAMEs will not verify.

Sources