All terms
Glossary · DKIM details
DKIM‑Signature header
DKIM-Signature is the header the signing server adds to a message, carrying in tags the signature itself, the signing domain, the selector and what was signed (RFC 6376 §3.5).
By: Kemal Özleyen, Cybersecurity Engineer · Check Point Workspace Security Expert · Kinetik Bilişim
How it works
The main tags: d= signing domain, s= selector, a= algorithm (such as rsa-sha256), h= signed headers, bh= hash of the body, b= the signature itself, t= signing time, x= expiry. The From header must be in the h= list of every signature (RFC 6376 §5.4).
If bh= does not match, the body was changed in transit; if b= does not verify, one of the signed headers was changed. If i= is given, its domain part must equal d= or be a subdomain of it. If x= is given, it must be greater than t=, and once that time has passed the signature may be treated as invalid. Writing the same tag twice makes the whole tag list invalid (RFC 6376 §3.2, §3.5).
This header lives in the message, not in DNS, so a check run against a domain sees only the key, not the signature. To see the signature, the headers of a received message are examined.
Example record
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ornek.com.tr; s=s1;
t=1791100000; x=1791704800; h=from:to:subject:date:message-id;
bh=…; b=…
Related DKIM · DKIM selector · Alignment
Source RFC 6376 §3.5 · RFC 6376 §3.2 · RFC 6376 §5.4
Last updated: