Signing domain and selector
01The signature identifies a signing domain and a selector for its DNS public key.
FOLLOW THE SIGNED DATA · FICTIONAL MESSAGES AND DNS
Who signs this message, and where is the verification key?
The receiver combines s= and d= into the DNS name, then checks with the public key.
Receiving mail server
Verifies using the public keyd=example.org; s=mailDKIM-Signature: d=example.org; s=mail;
h=from:subject; bh=mtWvvw/KmkZ8V67tU75C7b7Z…; b=b4KIjwYPXR91Ds2E53MQnBKs…Receiver builds the DNS question
mail._domainkey.example.orgTXT query → DNSDNS holds the public key
v=DKIM1; k=rsa;
p=MIIBCgKCAQEAy5XL15qo9i3R…Matches the signer’s private keyStatic view: prevalidated RSA/SHA-256 fixture.
Inspect the actual public fixture bytes
Real RSA-2048/SHA-256 test signatures. Names, DNS answers and messages are fictional. Private keys are never included in these public assets. Long values below are shown in full.
DKIM-Signature
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=example.org; s=mail; h=from:subject; bh=mtWvvw/KmkZ8V67tU75C7b7ZB/JLAYAwFzjpOVEOdsU=; b=b4KIjwYPXR91Ds2E53MQnBKsht2g21BdDvcP42Wsg+hHIpx+ikEr/hrDsIL+VBljbwHbF+uP3n/nfZNGZLb4h+JV1tPcvO6pxpXrf+x3w7UiTY4E3gbvzRhXpsTda8AeeXsAJMD/xUrPKRluvwJRmnW7v8tskn6rqADZwdBCHwvfPjBoJQkuh5kdj3/DZtMTnD0AnV5o1dVyyxBKRG/oq+VlIL+7jIZEbQ7gFfVnyOh/86LsLF2M00BqKLhnkQWeyBIjLJXXwdaa6d1YpP+Kg9zmlE0AZMIfwPuxjitZsK3pJB71Qm6TE2MpWx08P4sJadmKBHSUb3xdXKquxDbpKA==DNS public-key value p=
MIIBCgKCAQEAy5XL15qo9i3RKdEPV5B4dPlNClTlWs9D5X1yW9m0Sdz8fhPuZYrC5R7X3D3WxsWY47v3p+mBwan/GSQzDF6y5T1wjygkZXPeposIf72M6kWgmRO4Shaz+Moq1hOEKPU29+CLkD+lznEhQsD8jBiHLM6wMSZQpc0BorecKtwDbdXDAY1WOvwmyq+wdskzZxadr0uLKUrGY/5ePyRhmbVJQdjKstATsJHrMvwXPhvATUpkIAnsYu1KNLkbXIwGjU04+ZXG/X8rREQCvIAIFWY27vLvuixn8rrF/tuTVoYNMy+tVgmBAvTTLi+IZaIfnOgtVUtZnzPQCx3B0LQMb4Be8wIDAQABHeader signing input (b= empty, no terminal CRLF on DKIM-Signature)
from:Offers·<offers@brand.example>↵ subject:Meeting·notes↵ dkim-signature:v=1;·a=rsa-sha256;·c=relaxed/relaxed;·d=example.org;·s=mail;·h=from:subject;·bh=mtWvvw/KmkZ8V67tU75C7b7ZB/JLAYAwFzjpOVEOdsU=;·b=
A verified DKIM signature associates the signed inputs with d=. It does not encrypt the email or prove a person’s identity.
Bounded ASCII/CRLF teaching examples. These are not a complete mail parser, DKIM implementation or DNS lookup service. Shortened hash/key/signature labels expand to actual values in the fixture details.
The corresponding DNS public key enables receivers to check it.
Key idea: d= names the signing domain; s= selects a key below _domainkey.
Rules & examples
d= names the signing domain; s= selects a key below _domainkey.
- d= names the signing domain; s= selects a key below _domainkey.
- DKIM proves a signing-domain responsibility assertion, not the author’s personal identity.
- The signature is visible and does not encrypt the message.
Examples are illustrative. Consult the linked RFC and its errata for implementation details.
Sources
New to this? Start hereA quick picture + helpful background
The envelope and the letter do different jobs.
Mail transport moves a message between servers. The message format describes its contents. Authentication adds checks; it does not make every message safe.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.
The update prohibits rsa-sha1 signing and verification and requires rsa-sha256 support in that RSA design; RFC 8463 separately adds Ed25519.
Read the updated RFC section ↗