DKIM: verify signatures on real outgoing messages

DomainKeys Identified Mail (DKIM) adds a cryptographic signature to email. A recipient retrieves the signing domain's public key from DNS to verify the signed content. The useful operational evidence comes from real messages and their authentication results, alongside the published key.

A verifiable company seal

A company applies a seal to selected parts of a document. The recipient checks it using the company's published verification information. DKIM uses a digital signature in a similar way. Finding the verification information on a noticeboard does not prove that documents leaving the office carry valid seals.

Sender signs message
Recipient gets selector's DNS key
Recipient verifies actual signature
The scanner samples public key locations only. It does not perform the message signature verification shown here.

How it works

A sending system signs selected message headers and a representation of the body using a private key. Its DKIM-Signature header identifies the signing domain with d= and the selector with s=.

The recipient looks up <selector>._domainkey.<signing-domain> to obtain public key information and verify the signature. Selectors are chosen by the domain owner or provider and can change during rotation.

A valid signature associates the signed message with the signing domain. For DMARC, that domain must also align with the visible From domain. Message modification in transit can affect verification.

What our check observes

The five-point check samples default, selector1, selector2 and google at the submitted domain. It looks for usable public keys, malformed or duplicate key records, and published aliases with no DKIM key at the target.

A usable key with a broken record earns half credit. A confirmed broken record without a usable key in the sample earns zero. Missing guesses or explicitly revoked keys alone leave the check unresolved.

Where the observation stops

Selectors cannot be exhaustively discovered through this sample. A provider may use a completely different selector or a different signing domain. Four misses do not establish that DKIM is absent or disabled.

A usable public key can be inactive or belong to a different sending service. Actual signing, rotation and DMARC alignment require message or provider evidence.

How to read your result

pass

The sample contains a usable public key and no confirmed or unresolved selector issue.

warning

A usable key and a broken publication were both observed in the sample.

fail

A broken publication was observed without a usable public key in the sample.

Not determined

The sample could not establish selector health. Unobserved selectors may still work, and a lookup failure needs independent confirmation.

A safe next step

1

Email service owner

Send a representative message from each business sending service. Inspect the DKIM-Signature d= and s= values and the receiving system's Authentication-Results.

Verify: Confirm a successful signature for each required flow and check alignment where DMARC depends on it. Use trusted recipient results.

2

Mail provider with DNS administrator

Verify the documented selector records and signing settings. Plan key rotation using the provider's procedure while accounting for messages in transit.

Verify: Test new messages after changes and confirm both provider state and receiver verification. Keep active selectors and ownership in the service inventory.

Go to the source

These primary references explain the standards and behavior behind this guide. Product observations remain limited to the scope above.

  1. RFC 6376: DKIM selectors and signature verification
  2. Microsoft: DKIM selectors, message checks and rotation

Understand what applies to your domain.

Start with the public assessment or discuss a configuration change with the Logic V team.

Check a domainTalk through a finding