Key takeaways
- Add the two DKIM CNAME records SendGrid shows, s1.domainkey and s2.domainkey on your sending domain, copy their targets exactly, then click Verify in SendGrid.
- Verification can take up to 48 hours after you upload the records.
- Once DKIM passes, add a DMARC record so the signature is checked against your From domain.
A DKIM record is a public key published in DNS. SendGrid signs each message with a private key, and receivers use the public key to check that the signature is valid and that the message was not altered in transit. With SendGrid's default Automated Security setting, you publish two CNAME records that point to SendGrid-hosted keys. You do not paste a key yourself.
Research checked: 12 November 2026
The short answer
Add the two DKIM CNAME records SendGrid shows, `s1._domainkey` and `s2._domainkey` on your sending domain, copy their targets exactly, then click Verify in SendGrid. Verification can take up to 48 hours after you upload the records. Once DKIM passes, add a DMARC record so the signature is checked against your From domain.
Set up the DKIM records
SendGrid's domain authentication page describes the default setup. Follow these steps:
- In SendGrid, start domain authentication for the root domain of the address you send from, for example `example.com`.
- Keep Automated Security on, unless your DNS host does not accept underscores in CNAME names.
- Publish the two DKIM CNAMEs. The host names have this form:
``` s1._domainkey.example.com. CNAME s1.domainkey.u1234567.wl123.sendgrid.net. s2._domainkey.example.com. CNAME s2.domainkey.u1234567.wl123.sendgrid.net. ```
The `u1234567` and `wl123` parts are placeholders. Copy the exact values SendGrid shows for your account. Do not change the `s1` and `s2` labels.
- Enter only the hostname in DNS hosts that append your domain automatically. For these records that is `s1._domainkey` and `s2._domainkey`, and the root domain goes in the sending-domain field.
- Return to SendGrid and select Verify. If only some records verify, wait and check for typing errors before you change anything else.
SendGrid's page says that if verification still fails, you should wait and click Verify again after 48 hours, and contact SendGrid support if it continues to fail. Do not delete and recreate the records during that wait, because each change restarts DNS propagation for the record you touched.
Add DMARC after DKIM passes
DKIM alone does not tell receivers what to do with mail that fails. A DMARC record on the same domain tells them how to handle failures and where to send reports. SendGrid's guide shows a starting record:
``` _dmarc.example.com. TXT "v=DMARC1; p=none;" ```
Keep `p=none` while you read the aggregate reports. Reports arrive as XML attachments from receiving providers, so plan for a short routine to read them, or use a DMARC reporting tool that parses them for you. Move to `quarantine` or `reject` only after the sources you expect pass consistently. Add a `rua=` address if you want reports; a monitoring policy without reports gives you little to work with.
Verify the signature
Run these checks:
``` dig +short CNAME s1._domainkey.example.com dig +short CNAME s2._domainkey.example.com dig +short TXT _dmarc.example.com ```
Each CNAME should return the SendGrid target you copied. The DMARC lookup should return the record you published. Then send one message through SendGrid to an inbox you control, open the original headers, and confirm `dkim=pass` with a `d=` value that matches your From domain.
Worked example
A team publishes the two CNAMEs, but SendGrid still shows the domain as unverified after several hours. The DNS host had appended the domain to the entry, so the record was created as `s1._domainkey.example.com.example.com`. Entering only `s1._domainkey` in that host's field fixes the record. After Verify passes and the test message shows `dkim=pass` with `d=example.com`, the DMARC record can be checked against the same domain.