SendGrid DNS records: DKIM, SPF and DMARC setup
The records
Illustrative values. Copy the real ones from SendGrid: Settings, Sender Authentication, Authenticate Your Domain. The numbers in em1234 and u1234567 are unique to your account.
| Type | Name | Value | What it is for |
|---|---|---|---|
| CNAME | em1234 | u1234567.wl123.sendgrid.net | Return-Path, which is where SPF is checked |
| CNAME | s1._domainkey | s1.domainkey.u1234567.wl123.sendgrid.net | DKIM key 1 |
| CNAME | s2._domainkey | s2.domainkey.u1234567.wl123.sendgrid.net | DKIM key 2 |
| TXT | _dmarc | v=DMARC1; p=none; | DMARC policy |
Specific to SendGrid
- These are the records for automated security, which is on by default. SendGrid manages the SPF and DKIM values behind the CNAMEs, so you do not have to update them when its infrastructure changes.
- With automated security turned off, SendGrid gives you an MX record and TXT records instead of CNAMEs, and you maintain them yourself.
- SPF for SendGrid mail is checked on the em subdomain, not on your root domain. Your root SPF record does not need include:sendgrid.net when the CNAME is in place.
- SendGrid warns that some DNS hosts append your domain to whatever you type. Entering em1234.yourdomain.com can produce em1234.yourdomain.com.yourdomain.com; in that case enter only em1234.
SPF, DKIM and DMARC at a glance
- SPF
- Handled by the em CNAME. No change to the root SPF record.
- DKIM
- Two CNAMEs, s1._domainkey and s2._domainkey.
- DMARC
- SendGrid's setup includes a TXT record at _dmarc with v=DMARC1; p=none;. If the domain already has a DMARC record, keep the existing one. A domain may have only one.
SendGrid verifies when you click Verify; DNS changes can take up to 48 hours to be visible.
Step by step at your DNS host
What to type differs by host, mainly in how the name field behaves and whether values need quotes.
Record shapes read from SendGrid’s documentation on 11 November 2026. Other platforms: Mailchimp · Klaviyo · Amazon SES · Instantly.
Check the records after you save
Look up the live DNS. This tool does not spend credits.
Related
- Set up SendGrid DKIM and DNS records on Cloudflare
The exact name and value to enter at Cloudflare for each SendGrid record, with the mistakes that stop it verifying.
- Set up SendGrid DKIM and DNS records on GoDaddy
The exact name and value to enter at GoDaddy for each SendGrid record, with the mistakes that stop it verifying.
- DMARC checker: read a domain's DMARC policy
Look up a DMARC record and see what the policy does, where reports go, and what weakens it.
- SPF, DKIM and DMARC setup by provider
Provider-specific steps for publishing SPF, DKIM and DMARC, with a live DNS checker on every page.