SendGrid domain authentication: the CNAME records and fixing "not verified"
With automated security on (the default), SendGrid gives you three CNAME records to add at your DNS host: one for the return path (a host like em1234.example.com) and two for DKIM (s1._domainkey and s2._domainkey), all pointing at sendgrid.net. Add them exactly as shown, add a DMARC TXT record at _dmarc, then click Verify in Settings > Sender Authentication. Most failures are a doubled domain in the host name, a record added in the wrong DNS zone, or DNS that hasn't updated yet (allow up to 48 hours).
- Start domain authentication In Settings > Sender Authentication, choose Domain Authentication and enter the root domain you send from.
- Keep automated security on Leave Use automated security enabled to get three CNAME records instead of MX and TXT records.
- Add the records At the DNS host that serves your domain, add the em…, s1._domainkey and s2._domainkey CNAMEs, entering only the part before your domain if the host appends it.
- Add DMARC Add one TXT record at _dmarc, starting with v=DMARC1; p=none; if you have none.
- Verify Click Verify in the console; if it fails, check each record with dig and try again, allowing up to 48 hours.
The records SendGrid asks for
Start in Settings > Sender Authentication, Domain Authentication, Get Started. Enter only the root domain you send from (no www., no protocol). With Use automated security left on, you get three CNAMEs. The placeholders below stand for the values your console shows:
| Type | Host | Points to | Purpose |
|---|---|---|---|
| CNAME | em1234.example.com | u1234567.wl123.sendgrid.net | Return path; carries SPF |
| CNAME | s1._domainkey.example.com | s1.domainkey.u1234567.wl123.sendgrid.net | DKIM key 1 |
| CNAME | s2._domainkey.example.com | s2.domainkey.u1234567.wl123.sendgrid.net | DKIM key 2 |
| TXT | _dmarc.example.com | v=DMARC1; p=none; | DMARC policy |
Because the records are CNAMEs, SendGrid can rotate DKIM keys and change SPF without you editing DNS again. If you turn automated security off, you get an MX record and TXT records for SPF and DKIM instead, and you must update those TXT records yourself whenever your configuration changes.
If you chose a custom return path or a custom DKIM selector under advanced settings, the host names will differ from the pattern above. Copy them from the console, not from a guide.
Why Verify fails, most common first
- The domain is doubled. GoDaddy, Route 53, Namecheap and most other DNS hosts append your domain to the host you type. Pasting
em1234.example.comcreatesem1234.example.com.example.com. Enter onlyem1234,s1._domainkeyands2._domainkey. - DNS hasn't updated yet. SendGrid says verification can take up to 48 hours after you add the records. If it still fails after that, the records are wrong, not slow.
- The records are in the wrong place. You added them at your registrar, but the domain's nameservers point to another provider (Cloudflare, your host). Add them where the domain's DNS is actually served.
- A record already exists at that name. A CNAME cannot sit alongside other records with the same name, so an old TXT or A record at
s1._domainkeyblocks it. - A typo in the value, often a missing character in the
u…orwl…part, or a value pasted into the wrong row. - You authenticated a different domain from the one in your From address. Subdomains do not inherit authentication from the parent domain.
Check each record yourself
Look up what the world sees, with your own host names in place of the examples:
dig +short CNAME em1234.example.com
dig +short CNAME s1._domainkey.example.com
dig +short CNAME s2._domainkey.example.com
dig +short TXT _dmarc.example.comEach CNAME should print the sendgrid.net target from the console. No answer means the record isn't live (or is under a doubled name). Then ask SendGrid to validate and tell you which record fails:
curl -s https://api.sendgrid.com/v3/whitelabel/domains \
-H "Authorization: Bearer $SENDGRID_API_KEY"
curl -s -X POST https://api.sendgrid.com/v3/whitelabel/domains/12345/validate \
-H "Authorization: Bearer $SENDGRID_API_KEY"The first call gives each domain's id, valid flag and its dns records (mail_cname, dkim1, dkim2, each with host, data and valid). The validate call returns validation_results with a valid flag and a reason for mail_cname, dkim1, dkim2 and spf. EU regional subusers use https://api.eu.sendgrid.com.
DMARC and link branding
SendGrid's setup shows a DMARC record of v=DMARC1; p=none;. That only monitors; it doesn't ask receivers to reject anything, but Gmail and Yahoo expect bulk senders to publish at least this. If you already have a DMARC record, keep it and don't add a second one: a domain must have exactly one at _dmarc. Move to p=quarantine or p=reject only after reports show all your real mail passing. See SPF, DKIM and DMARC for transactional email.
Link branding is a separate, optional step offered during setup. It adds two more CNAMEs so tracked links point at your own subdomain instead of sendgrid.net. It doesn't affect whether the domain authenticates, but matching link domains tend to look better to filters and to readers.
After it verifies
Once the domain shows as verified, any address on it can be used as a From address, so you no longer need single sender verification for it. Send a test to a Gmail address and open Show original: you want DKIM: PASS with your domain and DMARC: PASS. Don't delete the CNAMEs later: with automated security, SendGrid relies on them to rotate keys, and removing them breaks DKIM for every message.
Questions
How long does SendGrid domain authentication take?
Usually minutes once the records are live, but SendGrid allows up to 48 hours for DNS changes. If it still fails after 48 hours, a record is wrong.
Do I need to add SendGrid to my SPF record?
Not with automated security. SPF is checked against the return-path domain (the em… CNAME), which points to SendGrid, so your root SPF record doesn't need to change.
Can I authenticate the same domain more than once in SendGrid?
Yes. SendGrid says to use a custom DKIM selector (three letters or numbers) when you authenticate a domain more than once, or when another service already uses its selector.
Related
- SendGrid 403: from address not a verified Sender IdentitySendGrid returns 403 when the From address isn't a verified single sender or on an authenticated domain. The fix, and the other 403: access forbidden.
- SPF, DKIM and DMARC for transactional email: setupSign with DKIM on your domain, align SPF via a custom Return-Path, start DMARC at p=none. The records for Postmark, Mailgun, SendGrid and Resend.
- Custom Return-Path domain: why and how to set it upA custom Return-Path puts bounces on your own subdomain so SPF aligns for DMARC. On Postmark: CNAME pm-bounces.example.com to pm.mtasv.net, then verify.
- Transactional emails going to spam: a checklist that worksCheck in order: SPF, DKIM and DMARC pass and align; links and content; reputation; complaint rate; list hygiene. Start with the message headers.
- Bouncewise SendGrid API key: read-only scopesCreate a SendGrid Custom Access key with Read on Stats, Email Activity, Suppressions and Domain Authentication, then pick Global or EU in Bouncewise.