Infraova
Resources›Guides›How to diagnose a DKIM failure

Guide

How to diagnose a DKIM failure

Trace a DKIM failure from the DNS record to the signing configuration and identify the root cause.

BusinessAgencyDeliverability·7 min read

The situation

DKIM failures occur when a receiving server cannot verify the cryptographic signature on an outgoing message. This can happen because the DNS public key record is missing, the signing configuration is misconfigured, or the sending platform is not signing correctly.

Before you begin

The affected domain and selector
Access to the DNS provider
Access to the sending platform's DKIM configuration
A recent message header showing the DKIM result

For agencies: When managing infrastructure for a client, confirm the sending platform's signing configuration with the team responsible for that platform before making DNS changes.

The operational path

01Detect
02Trace
03Identify root cause
04Determine fix
05Apply
06Verify

The goal isn't just to find the error. The goal is to move from detection to a verified infrastructure state.

What could have caused this?

Cause

What changed

Possible impact

DNS record missing

Public key record not published

DKIM fails — no key to verify against

Wrong selector

Sending platform uses a different selector

DNS lookup returns no record

Key mismatch

DNS key does not match signing key

Signature verification fails

Record syntax error

Malformed TXT record

Record cannot be parsed

Platform not signing

Sending platform DKIM not enabled

Messages sent without signature

Step by step

01Detect the failure

Check a message header from the affected domain to confirm DKIM is failing and note the selector being used.

What to check

✓Review a recent message header for the DKIM-Signature field
✓Note the selector value (s= field)
✓Check the DKIM authentication result in the header
✓Confirm which domain the signature covers (d= field)

Expected result: You now know the selector, the signing domain, and whether the failure is at lookup or verification.

With Infraova

Infraova monitors DKIM record state continuously and alerts when a public key record changes or becomes unreachable — before a message failure surfaces it.

02Trace the failure

Use the selector from the message header to look up the DNS record and compare it against what the sending platform expects.

What to check

✓Look up the DKIM TXT record at selector._domainkey.domain
✓Confirm the record exists
✓Check the p= value (public key) is present and complete
✓Compare the DNS key against the key the sending platform is using to sign

Expected result: You can now identify whether the failure is in DNS (missing or wrong record) or in the sending platform (not signing or signing with a different key).

03Identify the root cause

Determine which of the common failure patterns applies to this situation before proposing a fix.

What to check

✓Is the DNS record missing entirely?
✓Is the record present but the key is wrong?
✓Is the sending platform using a different selector than what is in DNS?
✓Is the sending platform configured to sign at all?
04Determine and apply the fix

The fix depends on the root cause. In most cases, either the DNS record needs to be updated to match the sending platform, or the sending platform needs to be reconfigured.

What to check

✓If DNS record is wrong: update to match the sending platform's public key
✓If record is missing: publish the correct record at the right selector
✓If sending platform is misconfigured: re-enable DKIM signing in the platform
✓Review the proposed change before applying

With Infraova

Infraova generates the exact DNS record value needed to resolve the DKIM failure. The proposal includes the selector, the record value, and the reason before your team approves it.

05Verify the result

After the change is applied, confirm DKIM is passing for outgoing messages.

What to check

✓Look up the live DKIM record and confirm it matches the expected value
✓Send a test message and check the authentication result in the header
✓Confirm DKIM=pass in the received message
✓Record the verified state

Expected result: DKIM is passing, the record is correct, and the change is documented.

You decide. Infraova executes.

Infraova can propose and execute an approved infrastructure change, but it does not independently decide to modify client infrastructure. Every proposed change requires explicit authorization before execution.

Infraova detects
↓Infraova diagnoses
↓Infraova proposes
↓YOU APPROVE
↓Infraova executes
↓Infraova verifies

Key takeaway

Most DKIM failures trace back to a mismatch between the DNS public key record and the key the sending platform is using to sign. Find the mismatch, determine which side needs to change, and verify the result after applying the fix.

Turn this playbook into a continuous workflow

Without Infraova

Someone discovers the issue
↓Someone investigates manually
↓Someone decides what to do
↓Someone makes the change
↓Someone checks whether it worked

With Infraova

Monitor
↓Detect
↓Prioritize
↓Propose
↓Approve
↓Remediate
↓Verify
↓Record

The guide teaches you how to solve the problem once. Infraova keeps watching for it after you're done.

Want the product-level details?

Guides answer "How do I solve this?" Documentation answers "How does Infraova work?"

Stop discovering infrastructure problems manually.

Infraova continuously monitors your client and business infrastructure, identifies meaningful problems, proposes the next action, executes approved changes, and verifies the result.