Skip to content
WebsiteHosting.com

concept Domains & DNS

DKIM email signatures

DKIM (DomainKeys Identified Mail) associates a signing domain with selected canonicalized email headers and message content through a cryptographic signature.

Sources checked · P0037

What it means

DKIM (DomainKeys Identified Mail) associates a signing domain with selected canonicalized email headers and message content through a cryptographic signature. A DKIM-Signature carries a signing domain (d=) and selector (s=); verification retrieves an appropriate public key, normally from s._domainkey.d in DNS. A signature can validate for a domain different from the visible From author. DKIM authenticates signing responsibility and integrity of signed material; it does not encrypt mail.

Try it

Simulation — follow a synthetic DKIM verification. Use d=example.com, selector mail and matching public-key fixture. Modify signed bytes or select an unavailable key to see why verification no longer succeeds. Set visible From to another domain: DKIM can still validate independently, although DMARC alignment is another question. Choose Verify fixture, explore the two steps and Reset. No real private keys or mail are involved.

DKIM signature fixture

Alter a signed message or selector; observe lookup and synthetic verification.

Simulation
DKIM fixture: pass

Fixture signature matches the canonicalized signed bytes and available key.

DKIM signature fixture: evaluated fixture values
ObservationModel value
Key lookupmail._domainkey.example.com
Canonical inputunchanged
Key fixturematching
Visible Fromaligned
Resultpass
DKIM signature fixture: local scenario parameters

Local, bounded educational fixture. No DNS, mail, certificate, network, socket or external request is performed.

About this model

Fixture checks a recorded outcome, not actual RSA/EdDSA signatures, canonicalization implementation or key handling. DKIM d= can authenticate independently of the visible From; DMARC handles alignment separately.

See the article’s protocol sources and model limits. The scene does not alter a real system.

How the mechanism works

The verifier reads algorithm, canonicalization, signed-header list and body hash metadata, obtains a key by selector and signing domain, and checks a signature over canonicalized data. Canonicalization exists because certain harmless transport changes should not automatically invalidate signatures; changes that affect signed canonicalized bytes can invalidate them. Whether a particular edit matters depends on the actual canonicalization and signed components, not a universal rule that any whitespace change always breaks DKIM.

Selectors support key rotation and delegation of signing operations. A sender can publish distinct public keys under multiple selectors while gradually rotating active signatures. Missing or incorrect key material can lead to nonverification. An attacker is not prevented from signing mail with a domain they themselves control; recipients also need alignment/policy context when interpreting the author identity.

Primary protocol documentation provides the underlying rules; the interactive state is only a synthetic illustration.

In practice

For operational review, inspect an actual received message's sanitized Authentication-Results and DKIM-Signature fields without copying private or personal content into support systems. Identify d, s, signed headers and DNS lookup name; compare to the authorized sender's configuration. Verify key lifecycle through official platform documentation, then test planned rotation with old and new selectors before removing a key. Stop if signatures fail unexpectedly or an unapproved platform requests a private key; recover by restoring the verified selector/record configuration.

Limits and common mistakes

The fixture uses predeclared cryptographic outcomes, not a real signature algorithm or canonicalizer. It intentionally omits MIME complexities, key strengths, replay conditions and domain alignment. A pass cannot be used as a production DKIM validator, and DKIM alone is not confidentiality or human identity assurance.

Key takeaways

A DKIM selector identifies a key lookup under the signing domain, while canonicalized signed bytes determine whether the signature still verifies. A passing signature authenticates the DKIM d= claim in its protocol scope; it need not align with the message author. Keep private signing keys out of browser demonstrations and public diagnostics.

Frequently asked questions

Editorial questions, answered from the sources listed for this article.

Can DKIM pass when From belongs to another domain?

Yes. DKIM authenticates its signing d= domain; DMARC evaluates whether a successful signing identity aligns with the author domain.

Sources & model boundaries

Primary references used for this explanation. The interactive example is an educational model, not a live check.

  1. RFC6376 / STD76 — DomainKeys Identified Mail (DKIM) Signatures

    DKIM signature verification, selector and canonicalization rules (RFC 6376). DKIM identity/signing/canonicalization; metadata lists updates8301/8463/8553/8616. HTML endpoint429 in one attempt; official info page including text was retrieved.

    Checked .

  2. Cryptographic Algorithm and Key Usage Update to DKIM

    Updated DKIM cryptographic strength requirements. DKIM algorithm/key constraints; do not recommend stale algorithms or call fake fixtures crypto validation.

    Checked .