Skip to content

DKIM

DKIM is an email authentication standard that adds a cryptographic signature to messages to verify that their content has not been altered in transit.

Definition

What it is

DKIM (DomainKeys Identified Mail) is a standard defined in RFC 6376 that adds a cryptographic signature to email messages [1]. The signature is carried in the DKIM-Signature header and covers the body and selected headers. The domain publishes the public key in a DNS record under a selector, and the receiver uses it to verify the signature.

Why it matters

Unlike SPF, which depends on the originating IP, DKIM travels with the message. If a forwarder modifies the body or adds headers, the signature can break, but under normal conditions it survives [2]. That persistence lets DMARC rely on DKIM to validate messages that have passed through mailing lists.

How it works in practice

The holder generates a key pair and publishes the public key in a TXT record under selector._domainkey.example.com. Each message leaves with a DKIM-Signature header containing the selector, algorithm, and signature [3]. The receiver retrieves the public key, recomputes the hash, and compares. If they match, the message is authentic and unaltered.

Connections

  • spf — checks the IP; DKIM checks content integrity
  • dmarc — uses DKIM alignment to enforce policy
  • txt-record — the record where the public key is published
  • email-spoofing — the attack DKIM helps detect
  • selector — the prefix that allows key rotation without breaking verification

Common mistakes

  • Rotating without updating DNS. If the private key changes and the public key does not, every signature fails.
  • Signing too few headers. An attacker could alter unsigned headers.
  • Not anticipating in-transit modifications. A footer added by a mailing list breaks the body signature.
  • Using too-short keys. 1024-bit keys are considered weak; 2048 bits or more are recommended.

Evidence

Etymology

Origin: acronym

DomainKeys Identified Mail — mail identified by domain keys

  • Domain (root): domain
  • Keys (root): keys
  • Identified (root): identified
  • Mail (root): mail
Cognates

Morphology

Variants

Typographical errors

  • DKM
  • dkim

Semantic network

DKIMemail-authdkim-signaSPFDMARCTXT RecordEmail spooselector

● broader ● narrower ● related

Broader

  • email-authentication

Narrower

  • dkim-signature

Related

Antonyms

  • unsigned-email

Used in the garden

Sources