Glossary

What is DKIM?

DKIM (DomainKeys Identified Mail) adds a cryptographic signature to each outgoing email, which receivers verify with a public key published in the sender's DNS.

The sending server signs selected headers and the body with a private key and adds a DKIM-Signature header naming the domain (d=) and a selector (s=). The receiver fetches the public key from a TXT record at <selector>._domainkey.<domain> and checks the signature. If the message was changed in transit, or signed by someone without the key, verification fails.

Selectors let a domain run several keys at once, for example one per mail provider, and rotate them without downtime. DKIM proves the message was signed by a key the domain published, but on its own it does not say what a receiver should do with a failure: that is DMARC’s job, together with SPF.

Example

s1._domainkey.example.com.  3600  IN  TXT  "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA..."