Authenticate your store’s email with SendGrid (SPF and DKIM)

Short answer: in SendGrid, go to Settings, Sender Authentication, and start Domain Authentication for your store’s domain. Copy the DNS records it shows (with the default settings: three CNAME records and one DMARC TXT record) into your DNS host, click Verify, then check. Keep your root SPF record for your other senders.

Reviewed

This page is for store owners whose store sends email through SendGrid, for example through an SMTP or mail plugin set to SendGrid. It follows SendGrid’s own documentation (Configure domain authentication), read on 2026-11-16. If SendGrid changes its pages, trust its pages over ours. Other services are on the hub page.

Symptom

You see one of these:

  • A checker or a mail provider says your store’s email fails SPF or is not DKIM signed, and your store sends through SendGrid.
  • Your messages show “via sendgrid.net” after the sender name. SendGrid’s page says domain authentication removes that tagline.
  • SendGrid asks you to authenticate a domain and you do not know where the records go.

Why it happens

SendGrid sends the email for you. Receiving servers want proof that it may do so for your domain. The proof is a set of records in DNS (the public address book of your domain), and SendGrid calls adding them “domain authentication”.

The records are made for your account, so there is no fixed value to copy from this page. SendGrid’s page gives only patterns, with placeholders like em[0000] and [u00000000].

With the default setting, Use automated security on, SendGrid’s page lists these records:

TypeHost (name) patternWhat it is for
CNAMEem[0000].example.comReturn path, which carries SPF and DKIM support
CNAMEs1._domainkey.example.comDKIM
CNAMEs2._domainkey.example.comDKIM
TXT_dmarc.example.comDMARC

A CNAME record points one name to another name that SendGrid controls. That is how SendGrid can update the underlying SPF and DKIM data for you. The return path is a hidden address in the message header where bounce notices go. The page’s example DMARC value is v=DMARC1; p=none;.

SendGrid’s page also lists a second layout, with automated security off: one MX record at the em[0000] host, and TXT records for SPF (also at the em[0000] host), DKIM (m1._domainkey.example.com) and DMARC. It says to turn automated security off only if your DNS host does not accept underscores in CNAME records, and that you then must update those TXT records yourself whenever your sending setup changes, for example when you add an IP address. The plugin’s text for SendGrid says the same two cases: CNAME records, or TXT records if Automated Security is off.

Why your root SPF record is still needed

Notice that the SPF value for SendGrid sits at the em[0000] host, not at your root domain. This is why our plugin says no include: for SendGrid is needed in your root SPF record: it says SendGrid “authenticates SPF through its own return-path records” and that your domain “still needs a valid SPF record for your other senders”, such as your web host or mailbox provider.

So do not delete your root SPF record, and do not invent a SendGrid include for it. Keep the record that covers your other senders. If you have none, see How to add or fix an SPF record.

Fix

  1. Open Sender Authentication. In the SendGrid console, go to Settings, then Sender Authentication. In the Domain Authentication section, click Get Started.
  2. Choose your DNS host from the list on the Authenticate Your Domain page. “I’m not sure” and “Other Host (Not Listed)” are in the list. Then choose whether to brand links. SendGrid says you can add link branding later. Its automatic GoDaddy setup works only if GoDaddy hosts the domain, automated security is on and you are not using link branding.
  3. Type only your root domain in Domain You Send From, for example example.com. No www, no http://. SendGrid says you can only send from the domain you enter, and that subdomains do not inherit the authentication.
  4. Open Advanced Settings and leave “Use automated security” checked, unless your DNS host rejects underscores in CNAME records. Other options are there if you need them:
    • Use a custom return path lets you choose the label of the return-path name. SendGrid warns that a record with the same name as one that already exists overwrites it, so look at your existing CNAME records first.
    • Use a custom DKIM selector is for when another service already uses the selector s. You type three letters or numbers.
    • Make domain EU-pinned is for customers who must keep the domain in the EU region.
  5. Click Next. The Install DNS Records page shows your records (the Manual Setup tab, unless the automatic GoDaddy setup applies).
  6. Add each record at your DNS host. Copy the type, host and value exactly, and do not retype them. If you have a DMARC record already, do not add a second one at _dmarc (general DNS advice, not from SendGrid’s page: only one DMARC record may exist at that name). Keep your own record and check it first.
  7. Watch for a doubled domain. SendGrid’s page warns that some DNS hosts (it names GoDaddy, Amazon Route 53 and Namecheap) add your domain to what you type. If you paste em123.example.com you can end up with em123.example.com.example.com, and the record fails. In that case type only em123 in the host field. See step 4 of the DKIM guide.
  8. Go back to SendGrid and click Verify. SendGrid says verification can take up to 48 hours after you upload the records. If only some records verify, wait. It may also be a typo in one of them.

Check it worked

  1. Look at SendGrid. After a successful verification, SendGrid’s page says you should see the records on the Domain Authentication page.
  2. Run the free checker. Enter the domain your store sends from. Your root SPF line should show a valid record (it need not contain SendGrid). The DKIM line may say “Not checked”: the checker tries common selector names, which include SendGrid’s defaults (s1 and s2), so only a custom selector would be missed. That is not a failure. See “Check it worked” in the DKIM guide to look it up yourself, for example dig +short CNAME s1._domainkey.example.com.
  3. Send a real test. Send an order email from your store to a mailbox at a large provider that is not your own sending account, open “show original” or the message source, and look for spf=pass and dkim=pass. SendGrid’s page says a message uses your authenticated domain when its From address is on that domain, so send from an address on the domain you authenticated.

If it still fails

  • Not verified after two days. Compare the host and value of each record at your DNS host with the ones SendGrid shows, character by character. A doubled domain name is the most common slip (step 7).
  • The records were added for a different domain. The domain in your From address must be the one you authenticated. A subdomain needs its own authentication.
  • A record you already had disappeared. A custom return path or link subdomain with the same name as an existing CNAME overwrites it. Check your DNS host’s history or ask your host.
  • SPF still fails on your root domain. SendGrid does not fix a missing or broken root record. See the SPF guide.
  • Mail still goes to spam. Authentication is one part of it. See WooCommerce emails not sending or going to spam.

How the plugin helps

Email Health Check & Log for WooCommerce reads the settings of three popular SMTP plugins to guess which service your site sends through. If that is SendGrid and your root SPF record exists, its SPF check says SendGrid uses its own return-path records, so it does not need to be in the root record, and asks you to make sure you finished its domain setup. If you have no SPF record it still reports that. It does not read your SendGrid records or change your DNS. Get the plugin on WordPress.org.

Check your own domain

Type your domain into the free checker to see whether your SPF, DKIM and DMARC records are in place. Or install the free plugin, which checks the basics from inside your dashboard.