February 4, 2026 8 min read

How Do I Check If DKIM Is Working?

To verify DKIM is working, send a test email and check the Authentication-Results header for "dkim=pass". You can also use MXToolbox DKIM Lookup to verify your public key is published correctly in DNS. Both checks are necessary: the DNS record must exist AND your mail server must be signing messages correctly.

DKIM requires two components working together: a public key in DNS and a mail server that signs outgoing messages. Both must be configured correctly for DKIM to pass. This guide shows you how to verify both parts.

Step 1: Check Your DKIM DNS Record

First, verify your public key is published in DNS:

  1. Go to mxtoolbox.com/dkim.aspx
  2. Enter your domain name
  3. Enter your DKIM selector (e.g., "google" or "selector1")
  4. Click "DKIM Lookup"

The tool queries selector._domainkey.yourdomain.com and displays your public key record. If no record is found, your DNS configuration is incomplete.

Finding Your Selector

Common DKIM selectors by provider:

If you do not know your selector, check your email provider's documentation or examine the DKIM-Signature header in a previously sent email.

Step 2: Test with Real Email

DNS lookup confirms your key is published, but you also need to verify your mail server is signing messages:

  1. Send a test email from your domain to a Gmail account
  2. Open the email in Gmail
  3. Click the three dots menu, then "Show original"
  4. Look for the Authentication-Results header
  5. Find dkim=pass

You should see something like:

Authentication-Results: mx.google.com;
       dkim=pass header.d=example.com header.s=google

Understanding DKIM Results

dkim=pass

The signature is valid. The public key was found and the signature verified successfully.

dkim=fail

The signature is invalid. Possible causes:

dkim=neutral or dkim=none

No DKIM signature was found on the message. Your mail server is not signing emails.

dkim=temperror

Temporary DNS lookup failure. The receiving server could not retrieve your public key.

dkim=permerror

Permanent error retrieving the public key. Check your DNS record for syntax errors.

Checking the DKIM-Signature Header

Every DKIM-signed email includes a DKIM-Signature header with these fields:

DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=example.com; s=google;
        h=from:to:subject:date;
        bh=...;
        b=...

Common DKIM Problems

Public Key Not Found

The DNS record does not exist or has the wrong selector. Verify the selector in your DKIM-Signature matches the DNS record location.

Body Hash Mismatch

The message body was modified after signing. This often happens with mailing lists, email gateways, or antivirus scanners that add footers or modify content.

Key Retrieval Failure

DNS timeout or unreachable DNS server. Check that your DNS is responding correctly and the record is properly formatted.

Signature Missing

Your mail server is not signing outgoing messages. Check your email service configuration to ensure DKIM signing is enabled.

Test All Sending Sources

If you use multiple systems to send email (marketing platform, transactional service, etc.), test DKIM from each one. Each sending source needs its own DKIM configuration.

Using Command Line

Query your DKIM record directly with dig:

dig TXT selector._domainkey.example.com +short

Replace "selector" with your actual selector and "example.com" with your domain.

Frequently Asked Questions

How do I find my DKIM selector?
Look in the DKIM-Signature header of any email you have sent. The selector is the "s=" value. Common selectors include "google" for Google Workspace and "selector1" or "selector2" for Microsoft 365.
Why does DKIM pass sometimes but fail other times?
DKIM can fail when messages are modified after signing. Email forwarding, mailing lists, and security gateways that add footers or scan content can break DKIM signatures.
Can I have multiple DKIM keys?
Yes, you can have multiple DKIM keys for the same domain by using different selectors. This is useful for different email services or key rotation.

Ready to Improve Your Email Deliverability?

SortedIQ helps high-volume senders maximize inbox placement and sender reputation.

Talk to Our Team