Home / Fix guides / Domain, DNS and email deliverability

How to fix "DKIM record not found"

"DKIM record not found" means your domain has no public key in its DNS for receiving mail servers to check your email signature against. To fix it, switch on DKIM signing in your email provider, then publish the DNS record it gives you at your domain host.

DKIM (DomainKeys Identified Mail) is a digital signature that your email provider adds to every message you send. The matching public key lives in your domain's DNS. When a receiving server such as Gmail or Outlook gets your email, it looks up that key and checks the signature. If the lookup finds nothing, you get a "DKIM record not found" result, and the receiver has no proof the message really came from your domain.

The good news: this is usually a 15 minute job, and you do not need to be a developer to do it.

What people usually see

  • A DKIM checking tool reports "no DKIM record found" or "selector not found".
  • In Gmail, opening a message you sent and choosing Show original displays DKIM: NEUTRAL or DKIM: FAIL, or no DKIM line at all.
  • Your email provider's admin screen shows DKIM as "not enabled", "not authenticating" or "no record found".
  • Customers tell you your emails land in spam, or never arrive.
  • You see warnings in DMARC reports or from a bulk sending service asking you to authenticate your domain.

Why it matters

Email with no valid DKIM signature looks less trustworthy to mailbox providers. It is more likely to be filtered into spam, and easier for someone else to pretend to be you. For a small business that means missed quotes, unpaid invoices that never arrived, and customers who think you ignored them.

DKIM also supports DMARC. A DMARC policy needs either SPF or DKIM to pass and line up with your domain, and DKIM is the more reliable of the two when mail is forwarded. Gmail and Yahoo also expect domains that send in volume to be authenticated. If your emails are already going to spam, see why emails go to spam for the wider picture.

How to check if you have the problem

DKIM records live at a name made of a selector, then _domainkey, then your domain, for example selector1._domainkey.yourdomain.com. The selector is a label chosen by your email provider, so you need to know which one it uses. Common ones are google for Google Workspace and selector1 and selector2 for Microsoft 365. Your provider's DKIM page shows the exact name.

Free ways to check:

  1. Send yourself a test. Email a Gmail address from your business address, open the message, click the three dots, choose Show original, and look at the DKIM line. You want DKIM: PASS with d=yourdomain.com.
  2. Use a DKIM lookup tool. MXToolbox has a DKIM lookup where you enter your domain and selector. Google Admin Toolbox (Dig) also works: look up the TXT or CNAME record for your selector name.
  3. Use the command line. Run dig TXT google._domainkey.yourdomain.com +short (replace the selector and domain). An empty answer means nothing is published there. For Microsoft 365, query CNAME instead of TXT.
  4. Check your email provider's admin page. It usually says whether DKIM is on and whether the DNS record was detected.

If you do not know which selector is in use, the Show original view in step 1 reveals it: look for s= in the DKIM-Signature header.

SiteMonday checks this as part of week 10, the domain, SSL and email deliverability service, and lists it in your ranked fix list if it finds a problem.

How to fix it in general

There are two halves, and the problem is nearly always that one of them is missing.

  1. Find every service that sends email as your domain. That may be your main mailbox provider (Google Workspace, Microsoft 365, cPanel hosting mail), plus a newsletter tool, invoicing software, a booking system or a CRM. Each one needs its own DKIM setup.
  2. Generate the DKIM key in that service. Look for a section named Authenticate email, Email authentication, Domain authentication or DKIM. It will give you a record name and a value.
  3. Add the record at the place your DNS is managed. That is wherever your nameservers point, which is not always where you bought the domain. Create a record of the type given (TXT or CNAME), paste the name and value exactly, and save.
  4. Go back to the service and activate DKIM. Many providers only start signing once you click Start authentication, Verify or Enable.
  5. Wait and test. DNS changes often show within minutes but can take up to a few hours, sometimes longer.

Watch for these common slips:

  • Many DNS panels automatically add your domain to the end of the record name. If the provider gave you google._domainkey.yourdomain.com, you may only need to enter google._domainkey. If your record ends up as google._domainkey.yourdomain.com.yourdomain.com, that is why it fails.
  • Long TXT values must be pasted whole, with no missing characters or added line breaks. Quotation marks are added by some panels and not others.
  • Publishing the record without turning on signing in the provider, or the other way round.
  • Adding the record at the wrong DNS host because the nameservers point elsewhere. If that sounds possible, read about nameserver problems.

Common platforms

Menu names change over time, so treat these as a guide to what to look for.

  • Google Workspace: in the Admin console, look under Apps, Google Workspace, Gmail, then Authenticate email. Generate a record, add the TXT record at your DNS host, then click Start authentication. Full steps are in our Google Workspace DKIM guide.
  • Microsoft 365: in the Microsoft Defender portal, find Email authentication settings under the threat policies area and open the DKIM tab. You publish two CNAME records (selector1 and selector2) and then switch signing on. See the Microsoft 365 DKIM guide.
  • cPanel hosting: look for Email Deliverability in cPanel. It shows DKIM status and can often fix the record for you if your DNS is hosted with the same company.
  • Cloudflare, GoDaddy, Namecheap and other DNS hosts: these only hold the DNS. You add the record the email service gave you in their DNS records screen. On Cloudflare, make sure a CNAME record is set to DNS only (grey cloud), not proxied.
  • Newsletter and CRM tools: look for Sending domain, Domain authentication or Email settings. They normally give you one or more CNAME records to add.

How to confirm the fix worked

  1. Repeat the lookup (MXToolbox or dig) and check that your selector now returns a value.
  2. Check the provider's admin page shows DKIM as active or authenticating.
  3. Send a new test email to a Gmail address and look at Show original. You want DKIM: PASS and a d= value that matches your own domain. If it passes but shows the sender's domain instead of yours, the service is signing for itself, and your own DKIM is not yet active for that service.

Test again for each service that sends mail for you, not just your main mailbox.

How to stop it coming back

  • Keep a short list of every tool that sends email as your domain, and set up DKIM whenever you add a new one.
  • Do not delete DNS records you do not recognise until you know what they do. Old _domainkey records may belong to a tool still in use.
  • Take a copy of your DNS records before you move hosts, change nameservers or rebuild a site.
  • Add a DMARC record and read its reports so failures show up early. See missing DMARC record.
  • Recheck after any change to your email provider or DNS.

SiteMonday finds and explains problems like this one, but making the DNS change is up to you or your developer or IT person.

Step by step for your platform

Questions

What is a DKIM selector and where do I find it?

A selector is the label at the start of your DKIM record name, such as `google` or `selector1`. Your email provider's DKIM page shows it, or you can find it as `s=` in the `DKIM-Signature` header of a sent email.

Is DKIM the same as SPF?

No. SPF lists which servers may send mail for your domain, while DKIM adds a cryptographic signature to each message. You should set up both, plus DMARC.

How long does a new DKIM record take to work?

Often a few minutes, but allow a few hours before assuming something is wrong. Some providers also need you to click a verify or enable button after the record appears.

Do I need a separate DKIM record for each email service?

Yes, in most cases. Each service that sends mail as your domain signs with its own key and selector, so each needs its own record.

Can I have more than one DKIM record on my domain?

Yes. Unlike SPF, a domain can have many DKIM records as long as each uses a different selector.

Will fixing DKIM stop my emails going to spam?

It helps, but it is only one factor. Spam filtering also looks at SPF, DMARC, your sending reputation and the content of your messages.

Related problems