Email source6 min read · Updated Jun 2026

Configure SPF and DKIM for SendGrid

SendGrid authenticates with its Domain Authentication wizard, which produces CNAME records for both link branding and DKIM, plus an SPF host. The values below are templates. Copy the exact ones SendGrid generates for your account.

Step 1: Authorise with SPF

Add SendGrid to your SPF record:

TXT
Host@ (yourcompany.com)
Valuev=spf1 include:sendgrid.net ~all
Provider note

SendGrid’s recommended setup uses CNAME-based authentication (a subdomain like em123.yourcompany.com). Either approach aligns. The include shown here is the simplest if you send from your root domain.

Step 2: Sign with DKIM

SendGrid publishes DKIM as two CNAMEs created by its Domain Authentication flow. The uXXXXXX / wlXXX tokens are unique to your account.

  1. 1
    In SendGrid, go to Settings → Sender Authentication → Authenticate Your Domain and enter your domain.
  2. 2
    SendGrid generates three CNAME records (one for link branding, two for DKIM). Publish them at your DNS provider.
  3. 3
    Back in SendGrid, click Verify. All three must show a green check.
CNAME
Hosts1._domainkey
Points tos1.domainkey.u1234567.wl123.sendgrid.net
CNAME
Hosts2._domainkey
Points tos2.domainkey.u1234567.wl123.sendgrid.net
Provider note

Use the exact u…/wl… values from your SendGrid dashboard. The ones above are placeholders and will not verify.

Step 3: Verify alignment in ClearDMARC

Once DNS has propagated, open the Sources view in ClearDMARC. SendGrid should now show PASS · aligned for both SPF and DKIM. If it still shows a fail, the DKIM step usually needs more time or the provider’s wizard hasn’t been marked complete.

Running the full ClearAuth suite? ClearSPF and ClearDKIM host these records for you, so you add SendGrid once in the console and never edit DNS by hand again.

Was this guide helpful?