Skip to content

How to fix a failed DKIM check

Set up and switch on DKIM signing for Google Workspace or Microsoft 365, step by step.

Updated Nov 26, 2026 4 min read

How to fix a failed DKIM check

Your inbox placement test shows DKIM: Failed. This article explains what that means and how to fix it for Google Workspace and Microsoft 365.

What DKIM is

DKIM (DomainKeys Identified Mail) adds a digital signature to every email you send. Mailbox providers check that signature against a public key in your DNS. If it matches, they know the email really came from your domain and wasn't changed on the way. Without a valid DKIM signature from your own domain, Gmail, Outlook and Yahoo trust your emails much less.

Why the check usually fails

  • DKIM was never set up for your domain.
  • The DNS record was added, but DKIM was never switched on in Google Admin or Microsoft Defender. This is the most common cause.
  • The record was entered on the wrong host name, for example google._domainkey.example.com.example.com.
  • The key was copied incompletely. DKIM keys are long, and a missing character breaks them.
  • (Microsoft 365) Emails are signed with the onmicrosoft.com domain instead of yours, because custom-domain DKIM isn't enabled.

Google Workspace

Step 1: Generate your DKIM key

  1. Sign in to the Google Admin console (admin.google.com) with an admin account.
  2. Go to Apps → Google Workspace → Gmail → Authenticate email.
  3. Select your domain.
  4. Click Generate new record.
  5. Key length: choose 2048. Prefix selector: leave it as google.
  6. Click Generate. Google shows a DNS host name and a TXT record value. Keep this page open.

Step 2: Add the TXT record at your DNS host

  • Type: TXT
  • Host / Name: google._domainkey (if you send from a subdomain such as team.example.com, use google._domainkey.team)
  • Value: the full value Google shows you, starting with v=DKIM1;

Cloudflare: DNS → Records → Add record → TXT → paste the Name and Content → Save. GoDaddy: Domain Portfolio → your domain → DNS → Add New Record → TXT → paste → Save. Namecheap: Domain List → Manage → Advanced DNS → Add New Record → TXT Record → paste → green check mark.

Some DNS hosts don't accept 2048-bit keys. If yours shows an error, go back to Step 1 and generate a 1024-bit key instead.

Step 3: Turn DKIM on

This is the step most people miss.

  1. Wait about an hour for the DNS record to apply.
  2. Go back to Apps → Google Workspace → Gmail → Authenticate email.
  3. Click Start authentication.
  4. The status should change to Authenticating email with DKIM.

If Google says it can't find the record, wait a few more hours and try again. It can take up to 48 hours.

Microsoft 365

Step 1: Get your DKIM records from Microsoft

  1. Sign in to the Microsoft Defender portal (security.microsoft.com) with an admin account.
  2. Go to Email & collaboration → Policies & rules → Threat policies → Email authentication settings.
  3. Open the DKIM tab and select your domain.
  4. If asked, click Create DKIM keys.
  5. Microsoft shows two CNAME records. Keep this page open.

Step 2: Add both CNAME records at your DNS host

  • Type: CNAME (two records)
  • Host / Name: selector1._domainkey and selector2._domainkey (for a subdomain such as team.example.com: selector1._domainkey.team and selector2._domainkey.team)
  • Points to / Target: copy the exact values Microsoft shows you. They're unique to your domain, so don't build them by hand.

Cloudflare: add each CNAME and set Proxy status to "DNS only" (grey cloud). If it's proxied (orange cloud), DKIM will fail. GoDaddy: DNS → Add New Record → CNAME → paste Name and Value → Save. Namecheap: Advanced DNS → Add New Record → CNAME Record → paste Host and Value → green check mark.

Step 3: Turn DKIM on

  1. Wait about an hour for the records to apply.
  2. In Defender, open your domain on the DKIM tab again.
  3. Switch Sign messages for this domain with DKIM signatures to Enabled.

If Microsoft says it can't find the records, wait a few more hours and try again.

Check it and test again

Run a new Inbox Placement test in Targetive. DKIM should now show Passed.

Common mistakes

  • Records added, DKIM not switched on. Do Step 3.
  • Full domain typed into the Host field. Most DNS hosts add your domain automatically. Type only google._domainkey, not google._domainkey.example.com.
  • Cloudflare proxy turned on for Microsoft's CNAME records. Set them to "DNS only".
  • Key pasted with extra spaces or line breaks. Paste it as one line, exactly as shown.
  • Old keys from a previous provider. They don't hurt, but they don't help either. Make sure the key for your current provider is in place.

Still failing after 48 hours? Contact support from inside Targetive and include your domain name. We'll take a look.

Was this article helpful?

Let us know so we can keep improving.