Pcornel
Security · Email Security

DKIM

Cheat sheet · https://pcornel.dk/topic.php?topic=4781

Back to the Topic

Answer

DKIM signs outgoing email with the sending domain's private key in a header, and receivers check it against a public key published in DNS, proving the message is authorized and unchanged.

Remember

  • DKIM signs with a private key; the public key is in DNS.
  • Every sending service needs its own key/selector.
  • Rotate keys periodically.

First checks

  • dig TXT <selector>._domainkey.<domain> +short — DKIM public key
  • DKIM-Signature header in sent mail — signing
  • Key length 2048 bits — strength

Verify in this order

sender signs → DKIM header → receiver verifies via DNS

Where it usually breaks

First mismatch in asset/subject identity → trust/authentication → authorization/policy → enforcement/control → telemetry/detection → protected outcome/response; preserve identity/policy/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4781

Confirmation

Confirm action

Continue?