Visual RFC.
ALL RFCs / RFC 6376
Read the RFC ↗
RFC 6376 / MECHANISM GUIDE

Signing domain and selector

01

The signature identifies a signing domain and a selector for its DNS public key.

RFC 6376 · § 3.5EXAMPLE

FOLLOW THE SIGNED DATA · FICTIONAL MESSAGES AND DNS

Who signs this message, and where is the verification key?

DKIM LAB04 / 04
Step 4 of 4 — Find the signer’s public key

The receiver combines s= and d= into the DNS name, then checks with the public key.

Signing mail server

d=example.org
Private key stays hereCreates b= over the signing input
Readable email + DKIM-Signature

Receiving mail server

Verifies using the public keyd=example.org; s=mail

Message seen in the inbox

From: Offers <offers@brand.example>The From header’s bytes are signed; its domain can differ from d=.Subject: Meeting notes

Hello, team.
Meet at 10.

Signer → attach signature to this messageDKIM-Signature: d=example.org; s=mail;
h=from:subject; bh=mtWvvw/KmkZ8V67tU75C7b7Z…; b=b4KIjwYPXR91Ds2E53MQnBKs…

Receiver builds the DNS question

mail._domainkey.example.orgTXT query → DNS
TXT query Public key

DNS holds the public key

v=DKIM1; k=rsa;
p=MIIBCgKCAQEAy5XL15qo9i3R…
Matches the signer’s private key
PASSThe body hash and signature both verify for the signing domain.
Try an alternative outcome

Changing an input shows the completed outcome. Restart restores this chapter’s original example.

Static 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+IZaIfnOgtVUtZnzPQCx3B0LQMb4Be8wIDAQAB

Header 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.

3 / 3
03
Publish verification data

The corresponding DNS public key enables receivers to check it.

Signing domain and selectorThe signature identifies a signing domain and a selector for its DNS public key.Signing domain and selectorDKIM-Signature: d=example.orgs=mail; a=rsa-sha256; b=…mail._domainkey.example.org

Key idea: d= names the signing domain; s= selects a key below _domainkey.

Terms

Look up a term in the glossary ↗

Rules & examples
  • 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
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
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.

What changed
RFC 6376 original algorithm choicesRFC 8301 §3.1

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 ↗

All chapters in RFC 6376

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗