DKIM Authentication Failed? Here’s How to Fix It

August 18, 2026 Updated November 27, 2026 # SPF & DKIM
Share this insight:

DKIM authentication fails when the receiving server can't verify the DKIM signature on your message. To find out why, open the original message headers and find the receiver's Authentication-Results header. Check the DKIM result and the reason next to it, then use the signing domain d= and the selector s= from the matching signature to look up the public key. If the body hash failed, look for what changed the message after it was signed.

Key Takeaways

  • The DKIM result in Authentication-Results and the reason next to it show which check failed: no signature, no key, a signature that doesn't match the key, or a body that changed.
  • Most fixes are in DNS (the key at the selector), in the sending service (signing enabled, the right key) or in systems that modify mail after it is signed.
  • Confirm every fix with a fresh message sent through the same service and route, and look for dkim=pass with the right d= and s=.

DKIM Errors and How to Fix Them

 
The receiving server records the DKIM result in the Authentication-Results header of the delivered message. The word after dkim= is the result. A comment in parentheses may follow it, but the comment is optional and each receiver words it differently, so treat it as a hint rather than a diagnosis.

Find your result below. Each line gives the likely cause and the first thing to check:

  • dkim=none: the message carries no DKIM signature, often shown as dkim=none (message not signed). Check the raw message for a DKIM-Signature header, and make sure signing is enabled for the service that sent it. See cause 1.
  • No key for the signature: the receiver couldn't find a public key for the selector. Receivers report this differently, for example dkim=fail (no key for signature), dkim=permerror (no key for signature), dkim=neutral or key not found in DNS. Look up the TXT record at selector._domainkey.example.com, using the selector and domain from the signature. See cause 5 and cause 3.
  • dkim=fail (signature did not verify) or dkim=fail (bad signature): the receiver found a key, but the signature in the b= tag doesn't verify against it. The usual suspects are a published key that doesn't match the key the sender signs with, or a signed header that changed in transit. Check the key pair first, then changes made after signing.
  • dkim=fail (body hash did not verify): the hash of the message body no longer matches the bh= value in the signature, so the body changed after signing, for example through a footer, rewritten links or re-encoding. See cause 6.
  • dkim=temperror: a temporary failure, such as a timeout while fetching the key. Check that your DNS answers reliably; the receiver may succeed on a later attempt. See cause 7.
  • dkim=permerror: a permanent error that a retry won't fix. Check the record syntax, whether the key is usable, and whether the signature carries all its required tags. See cause 2.
  • dkim=pass but dmarc=fail: the signature is valid, but no passing signature has a d= domain that aligns with the From domain, and SPF doesn't align either. See cause 9.

Some receivers reject the message during delivery instead. Gmail answers 550 5.7.30 when a bulk sender's message "didn't pass DKIM authentication", and 421 4.7.30 when it rate-limits mail because "DKIM authentication didn't pass". Other servers use their own wording, for example 559 5.1.9 (DKIM reject DKIMr) missing, invalid or non-matching DKIM signature. Keep the full bounce message: it's the only record of the receiver's verdict. Then send a test message along the same route to a mailbox you control and read its headers as described in Step 1.

What Happens When DKIM Fails?

 
The consequences depend on the recipient’s filtering rules and your overall email authentication configuration.

A DKIM failure can:

  • reduce trust in the message;
  • contribute to spam placement;
  • negatively affect email deliverability if failures occur repeatedly;
  • cause DMARC to fail if SPF does not provide an aligned pass;
  • lead to quarantine or rejection when DMARC enforcement applies (our guide to DMARC bounce errors shows how each provider words that rejection).

Importantly, DKIM failure does not automatically mean DMARC failure.

DMARC can pass when either:

  • DKIM passes and aligns with the visible From domain, or
  • SPF passes and aligns with the visible From domain.

Therefore, if DKIM fails but SPF passes with proper alignment, the email can still pass DMARC. If neither authentication method passes with alignment, DMARC fails and the published domain policy may determine how the recipient treats the message.

Some mailbox providers ask for more than a DMARC pass. Outlook.com requires high-volume senders to pass both SPF and DKIM, so a message that shows DMARC=Pass and DKIM=Fail can still bounce with 550 5.7.515.

Why Does DKIM Fail?

 
Before changing your DNS records, identify why authentication is failing. DKIM problems can originate from several different parts of the email infrastructure.

1. DKIM Isn’t Configured

 
One of the simplest causes is that DKIM signing was never enabled, so your email provider sends messages without a DKIM signature.

This frequently happens when organizations add a new email service but forget to complete the service’s domain authentication process.

For example, you may have correctly configured DKIM for your primary mailbox provider but not for:

  • an email marketing platform;
  • a CRM;
  • a transactional email provider;
  • a customer support platform;
  • a billing system;
  • another SaaS application sending email from your domain.

Every legitimate service sending email using your domain should be reviewed individually.

2. The DKIM Record Is Incorrect

 
Syntax or formatting problems in your DKIM DNS record can make the public key unreadable.

Possible problems include:

  • an incomplete public key;
  • incorrect quotation marks;
  • missing DKIM tags;
  • extra or misplaced characters;
  • an incorrectly copied value;
  • publishing the record under the wrong hostname;
  • DNS provider formatting problems.

Even a small configuration mistake can prevent the receiving server from retrieving or using the correct public key.

Two details often cause confusion. An empty p= tag means the key has been revoked, so every signature made with it fails. The v=DKIM1 tag is recommended but optional; if it is present, it must come first in the record.

3. The DKIM Selector Is Wrong

 
Every DKIM signature contains a selector in the s= tag.

For example:

DKIM-Signature: ... d=example.com; s=selector1; ...

The receiving server combines the selector with the _domainkey label and the signing domain to find the public key.

In this example, it would query:

selector1._domainkey.example.com

If the selector referenced by the email does not have a corresponding DKIM record in DNS, verification cannot be completed.

This can happen after:

  • DKIM key rotation;
  • migrating to another email provider;
  • deleting an old selector too early;
  • entering the selector incorrectly;
  • publishing the key at the wrong DNS location.

4. The Public and Private Keys Don’t Match

 
DKIM relies on a cryptographic key pair.

The sending platform signs the message using the private key, while recipients verify it using the public key stored in DNS.

If the private key being used by the sending server does not correspond to the public key published for that selector, verification fails.

This problem may occur after changing DKIM keys when only one side of the configuration was updated.

5. The DKIM Public Key Is Missing

 
The message carries a DKIM signature, but there is no public key where the signature says to look. Receivers word this differently: no key for signature or key not found in DNS, with a result of fail, permerror or neutral.

Look up the TXT record for the selector and domain from the signature, as shown in cause 3. If your provider asked you to publish a CNAME there, follow it and check the TXT record it points to.

This usually means that:

  • the DKIM DNS record was removed;
  • the selector is incorrect;
  • the record was never published;
  • the DNS update has not propagated;
  • the record was published on the wrong domain.

6. The Message Was Changed After DKIM Signing

 
DKIM verifies the integrity of signed email content.

Once the sending server generates the DKIM signature, changes made to signed portions of the message can invalidate that signature.

For example, intermediary systems may:

  • append disclaimers;
  • add legal footers;
  • modify HTML;
  • rewrite URLs;
  • change whitespace or formatting;
  • alter headers;
  • modify the message body.

A changed body shows up as dkim=fail (body hash did not verify). A changed signed header makes the signature itself fail, for example dkim=fail (signature did not verify).

Mail gateways, forwarding systems, security filters, and mailing lists are common sources of these modifications. Make your own changes, such as footers or link tracking, before the final signature. Changes made by a forwarder outside your control need a separate look, because the original signature may not survive them.

Here is what this looks like in DMARC reports. Messages from glockapps.co, a domain monitored in DMARKOFF, carried two DKIM signatures: one for glockapps.co and one for amazonses.com. They reached the receivers from servers whose IP addresses resolve to cloud-sec-av.com. Both signatures failed, SPF softfailed because those servers aren't in the domain's SPF record, and the receivers applied the domain's p=reject policy. DMARKOFF marks this pattern as "Signature broken in transit". For four more messages on the same route, the reports show no DKIM result at all.

DMARKOFF Source details filtered by DKIM fail: messages from glockapps.co sent from cloud-sec-av.com, rejected with DMARC, DKIM and SPF fail, evaluation Signature broken in transit

DMARKOFF Source details, 11 to 26 November 2026: DKIM failures on mail relayed by cloud-sec-av.com

7. DNS Problems Prevent DKIM Lookup

 
DKIM verification depends on DNS.

A recipient needs to retrieve your DKIM public key before it can verify the signature. DNS downtime, timeouts, connectivity problems, or temporary resolution issues may therefore interrupt authentication.

These problems can result in a temporary error rather than a permanent DKIM failure.

For example:

dkim=temperror

If only a small number of messages failed during a brief period and your DNS record is otherwise correct, a temporary DNS issue may be responsible.

8. DKIM Isn’t Properly Configured for a Third-Party Sender

 
Using several email platforms makes DKIM configuration more complicated.

Each service may:

  • use its own DKIM selectors;
  • provide its own DNS records;
  • require domain verification;
  • use a CNAME instead of a TXT record;
  • require DKIM signing to be manually enabled.

Adding a new sender to SPF does not automatically configure DKIM for that sender.

Check the documentation provided by every email platform that sends on behalf of your domain and confirm that DKIM signing is enabled.

9. DKIM Authentication Passes but Alignment Fails

 
There is an important distinction between DKIM authentication and DKIM alignment.

A signature can technically pass DKIM verification but still fail the DKIM alignment requirement used by DMARC.

For DMARC, the domain in the DKIM d= tag must align with the domain visible in the message's From address.

For example:

From:

newsletter@example.com

DKIM signing domain:

d=example.com

These domains align.

But if the signature uses:

d=email-provider.com

the DKIM signature itself might be valid while failing DMARC alignment with example.com.

DMARC can use relaxed or strict DKIM alignment. Strict alignment requires an exact domain match, while relaxed alignment accepts any domain with the same organizational domain. If a message carries several signatures, compare the d= of every passing one with the From domain: one aligned pass is enough.

Our guide to DMARC alignment failure shows how to find the sender that signs with the wrong domain.

How to Fix DKIM Failure

 
The exact solution depends on the error, so troubleshooting DKIM should follow a logical sequence.

Step 1: Check the Email Headers

 
Start with a message that failed. Open its original headers and find the Authentication-Results header added by the mailbox provider that received it, usually the topmost one. Headers added further down the route come from other servers and are easier to forge.

A failed result looks like this:

Authentication-Results: mx.example.net; dkim=fail (body hash did not verify) header.d=example.com header.s=selector1

Then find the DKIM-Signature header whose d= and s= match that result. Pay particular attention to:

  • d=: signing domain;
  • s=: DKIM selector;
  • c=: canonicalization method;
  • h=: signed headers;
  • bh=: body hash.

Match the result to its cause using the list of DKIM errors above.

Step 2: Verify the DKIM Record in DNS

 
Take the signing domain and selector from the failed message. If the signature says d=example.com and s=selector1, the public key lives at selector1._domainkey.example.com.

Confirm that:

  • the selector exists;
  • the record is published under the correct domain;
  • the public key is complete;
  • the record syntax is valid;
  • there are no accidental formatting errors.

You can use the DMARKOFF DKIM Checker to look up a domain and selector, validate DKIM syntax, check the public key and key length, and confirm that the record is correctly published in DNS. You can also paste a DKIM record into the checker before publishing it, which can help catch configuration errors early.
 

Run DKIM Check

 

The checker shows what public DNS serves right now. It can't tell you whether a particular message verified: for that, send a fresh one as described in Step 10.

If you recently created or changed the DKIM record, remember that DNS changes may not become visible everywhere immediately.

Step 3: Confirm That DKIM Signing Is Enabled

 
A perfectly configured DNS record is useless if your outgoing mail platform is not actually signing messages.

Send yourself a test email and look for:

DKIM-Signature:

If the header is completely absent, check the DKIM configuration in your ESP or mail server.

Depending on the provider, you might need to:

  1. add the provider's DKIM records to DNS;
  2. verify the domain;
  3. wait until the provider detects the records;
  4. explicitly enable DKIM signing.

Repeat this process for every platform sending mail using your domain.

Step 4: Check the DKIM Selector

 
Compare the selector in the email:

s=selector1

with the selector currently published in DNS.

If they do not match, determine whether:

  • the sending platform is still signing with an old selector;
  • an old DNS record was deleted;
  • a new record was published under the wrong selector;
  • your provider changed its DKIM configuration.

If you're rotating keys, keep the old selector published until mail signed with it has been delivered. The full sequence is under How to Prevent DKIM Failures.

Step 5: Verify the Key Pair

 
If the selector and DNS record exist but authentication still fails consistently, make sure the public key corresponds to the private key used by the sender.

For managed email providers, this normally means regenerating or reconfiguring DKIM according to the provider's instructions.

Avoid manually modifying the public key unless you know exactly how the provider handles DKIM signing.

A mismatch can also come from DNS caching after a migration. When a Microsoft 365 domain moves to a new tenant, both tenants use the selectors selector1 and selector2. A resolver that still caches the old CNAME checks the new signature against the old key, and DKIM fails until the cache expires. See how DKIM breaks after a Microsoft 365 tenant migration.

Step 6: Investigate Message Modifications

 
If the failure states that the body hash or signature could not be verified, compare the message before and after it passes through your infrastructure.

Look for systems that may modify emails, including:

  • secure email gateways;
  • forwarding services;
  • anti-spam systems;
  • mailing list software;
  • CRM platforms;
  • compliance tools;
  • systems adding disclaimers or footers.

Changes made by MTAs or intermediary systems can invalidate DKIM signatures.

Where possible, configure these systems so that content modifications happen before DKIM signing.

Step 7: Review DKIM Canonicalization

 
DKIM canonicalization determines how certain formatting variations are treated during signature verification.

Two common options are:

  • simple
  • relaxed

A simple canonicalization strategy tolerates fewer changes, while relaxed canonicalization normalizes certain formatting differences before verification.

The setting appears in the c= tag of the DKIM signature, for example:

c=relaxed/relaxed

If your messages frequently travel through systems that make harmless formatting changes, canonicalization settings may be worth reviewing with your mail administrator or ESP.

However, canonicalization cannot protect DKIM against substantial modifications to signed content.

Step 8: Check DKIM Alignment

 
If DKIM passes but DMARC still reports a DKIM alignment failure, inspect the d= domain.

Compare:

Visible From domain

example.com

with:

DKIM signing domain

d=example.com

or an aligned subdomain.

Then inspect your DMARC record for:

adkim=r

or:

adkim=s

r means relaxed alignment, while s means strict alignment.

Strict alignment requires the domains to match exactly, so it can create failures in infrastructures that use subdomains or third-party DKIM signing domains.

Do not weaken alignment simply to hide a configuration problem. Ideally, legitimate services should be configured to sign using an aligned domain.

Step 9: Configure Every Legitimate Sending Source

 
Organizations often troubleshoot their main mail provider while overlooking less obvious email streams.

Create an inventory of platforms that send as your domain, such as:

  • Google Workspace or Microsoft 365;
  • marketing automation platforms;
  • transactional email services;
  • ecommerce platforms;
  • CRMs;
  • customer support software;
  • invoicing tools;
  • recruiting platforms;
  • monitoring and alerting systems.

Then confirm DKIM authentication for each one.

One improperly configured application can generate thousands of DKIM failures even when every other sending source works correctly.

Step 10: Confirm the Fix With a Fresh Message

 
After you change DNS, signing or routing, send a new message through the same service and the same route that failed. An old message keeps its old result, and a message sent another way says nothing about the route you fixed.

In the recipient's headers, look for dkim=pass with the d= and s= you fixed. If DMARC was part of the problem, check that it passes too.

If the original failure was an SMTP rejection, keep that bounce for comparison. A test mailbox at a different provider shows only that provider's verdict, so test with the provider that rejected you whenever you can.

Step 11: Monitor DKIM Through DMARC Reports

 
Fixing an individual test email does not necessarily mean your entire domain is properly configured.

DMARC aggregate reports can show which sending sources are:

  • passing DKIM;
  • failing DKIM;
  • passing or failing SPF;
  • aligned or misaligned;
  • sending unexpected traffic using your domain.

In the report XML, the auth_results section shows the raw DKIM and SPF results with their domains, while policy_evaluated shows whether they aligned for DMARC. Reports are aggregated, so the cause of a single message's failure still comes from its headers or bounce.

To read a report without digging through the XML by hand, drop the file into the free DMARC XML Report Analyzer. It accepts .xml, .zip, .gz and .eml files and lists every sending source with its SPF, DKIM and DMARC results. We tested it against 10 other free converters in this comparison.

This is particularly useful when multiple platforms send email on behalf of your organization.

DMARKOFF continuously analyzes authentication results and provides visibility into SPF, DKIM, and DMARC performance, helping teams identify misconfigurations and authentication failures across their sending infrastructure instead of relying only on individual message tests.
 
Start 14-day Free Trial
 

How to Prevent DKIM Failures

 
Once DKIM is working, regular maintenance helps prevent the same problems from returning.

Monitor All Sending Services

Maintain an accurate inventory of services allowed to send email using your domain.

Whenever a new ESP or SaaS application is introduced, make domain authentication part of the onboarding process.

Monitor DMARC Reports

DMARC reporting provides ongoing visibility into authentication performance and can reveal when a new source suddenly begins failing DKIM. We recommend using DMARC reporting to track authentication problems over time.

Rotate DKIM Keys Carefully

DKIM keys should be managed securely and rotated according to your organization's security policy and provider recommendations.

When rotating keys:

  1. create a new selector and key pair;
  2. publish the new public key;
  3. confirm that DNS has updated;
  4. start signing with the new private key;
  5. verify authentication;
  6. retire the previous selector only after it is no longer needed.

This prevents messages signed during the transition from suddenly becoming unverifiable.

Test After Infrastructure Changes

Recheck DKIM whenever you:

  • migrate email providers;
  • change DNS providers;
  • add a sending service;
  • modify mail routing;
  • implement an email security gateway;
  • change DKIM selectors;
  • introduce forwarding or compliance systems.

Infrastructure changes are one of the easiest ways for previously working authentication to break.

Use SPF, DKIM, and DMARC Together

DKIM should not operate in isolation.

SPF verifies whether a server is authorized to send mail for a domain used during SPF evaluation, while DKIM validates a cryptographic signature. DMARC then evaluates SPF and DKIM results together with domain alignment.

Implementing all three gives mailbox providers more information for distinguishing legitimate email from spoofed mail and gives domain owners reporting visibility into authentication activity.

Conclusion

 
A DKIM failure means the receiving mail server could not verify the cryptographic signature attached to your email. The problem may be as simple as a missing selector or DNS record, but it can also come from third-party platforms, mismatched keys, DNS outages, forwarding systems or changes made to the message after signing. If DKIM passes and DMARC still fails, the problem is alignment, not the signature.

The fastest way to fix DKIM failure is to work methodically. Start with the failed message's headers, identify the signing domain and selector, verify the corresponding public key in DNS, make sure the sender is actually signing messages, investigate anything that modifies messages after signing, and confirm the fix with a fresh message.

Most importantly, don't treat DKIM troubleshooting as a one-time task. Monitor authentication results across all sending sources and use DMARC reporting to catch new failures before they begin affecting a significant portion of your email traffic.

FAQ

It means the receiving server checked the DKIM signature on your message and could not verify it: no public key was found for the selector, the signature did not verify against the key, or the body changed after signing. A message with no signature at all shows dkim=none rather than dkim=fail.

DKIM can fail because the DKIM record is missing or malformed, the selector is incorrect, the public and private keys do not match, the message has been modified after signing, DNS is unavailable, or a third-party email platform has not been properly configured.

Start with the reason the receiver gives. "Body hash did not verify" means the message body changed after signing, often because of a footer, link rewriting or re-encoding. "Signature did not verify" or "bad signature" usually means the public key at the selector doesn't match the key the sender signs with, or a signed header changed in transit. Check the key with the DMARKOFF DKIM Checker, then send a fresh message and confirm it shows dkim=pass.

Yes. DKIM can survive forwarding when the signed content remains unchanged. However, if the forwarding service adds a footer, modifies the body, rewrites content, or changes signed headers, the DKIM signature may become invalid.

Yes. SPF and DKIM are separate authentication mechanisms. An email can pass SPF while failing DKIM, or pass DKIM while failing SPF.

Yes. DMARC requires at least one aligned authentication mechanism to pass. If SPF passes and aligns with the visible From domain, DMARC can pass even if DKIM fails.

Tanya Tarasenko
Tanya Tarasenko Technical Content Writer

The author has several years of experience creating high-quality content, with a strong focus on clear structure, readability, and truly meaningful insights.

She specializes in topics related to email authentication, deliverability, marketing technology, and digital communication.

Related Posts