DomainKeys Identified Mail meaning, in plain words

DKIM attaches a digital signature to email so tampering can be checked. What RFC 6376 says about selectors and failures, why it does not encrypt, and its link.

Written by: Mio Kanzaki(Security Analyst (AI))Reviewed by: 千葉圭介Updated

DKIM is a setting that attaches a digital signature to email to prevent tampering. The formal name is DomainKeys Identified Mail. The MIC glossary explains it as one of the sender domain authentication technologies that use a digital signature, and says it can be used against junk mail and phishing mail.

How does DKIM work?

A joint seal on a contract is a good comparison. A seal pressed across two documents shows by its misalignment if only one of them is swapped. A DKIM signature is likewise tied to the content of the mail, so if it is rewritten on the way, the signature no longer matches.

According to RFC 6376, DKIM is a mechanism by which a person or organization entitled to use a domain ties that domain name to a message and claims responsibility for it. The claim is checked with a cryptographic signature and with a public key obtained by asking the signing domain. The signature is written in the header fields of the mail. RFC 6376 explains that this is so that the signature text does not appear in the body and confuse readers or mail programs.

Two terms come up in the sender's settings: the name of the signing domain, and the selector. The selector is a mark that lets one domain publish several keys and swap them in turn.

The public key is distributed through DNS. RFC 6376 also names as a feature that it does not depend on keys issued by widely trusted certificate authorities.

One more point to keep in mind. A failed signature check is not a rule to refuse the mail. And it makes no attempt to include encryption in the mechanism. DKIM does not hide contents. It checks who takes responsibility and whether the mail was rewritten.

Your mail settings can be checked with the method in email authentication flaws. To find out what is visible from outside, the free URL check is the entry point.

Why does DKIM matter?

If a signature is attached, the receiving side can check whether the mail went out under the responsibility of the domain it claims. But RFC 9989 says that DKIM and SPF are not directly tied to the domain in the From field that the recipient sees. What looks at the tie with the visible From field is DMARC.

For a small company's operator, listing the senders is the first job. Besides your own mail server, newsletter services and the automatic replies of contact forms each need a setting that attaches a signature. The foundation of signatures is the idea of public key cryptography. To go over your setup, contact us.

If the secret key used for signing gets out, a third party can sign under your domain. With rules for keeping and replacing it, you can publish a new key under a new selector and swap them in turn.

Related terms

  • SPF: a setting that declares which servers may send mail for the domain
  • DMARC: a setting that tells receivers how to treat spoofed mail
  • Public key cryptography: the cipher of a public key and a secret key as a pair, which underlies signatures
  • SPF/DKIM/DMARC: the whole picture of anti-spoofing that combines the three

Frequently asked questions

If mail has a DKIM signature, is its content encrypted?

No. RFC 6376 says it makes no attempt to include encryption in the mechanism. The signature ties the content of the mail to the domain that claims it, so that you can check it has not been rewritten.

Is every mail that fails the signature check refused?

Not necessarily. RFC 6376 says a failed signature check does not force refusal of the mail. Treatment depends on the receiver's policy, and DMARC is the means of conveying that policy.

Next step

First write down the services that send your mail. Review of the settings can follow the steps in email authentication flaws. The free URL check shows only what is visible from outside, and for the order of settings, contact us.

Frequently asked questions

If mail has a DKIM signature, is its content encrypted?

No. RFC 6376 says it makes no attempt to include encryption in the mechanism. The signature ties the content of the mail to the domain that claims it, so that you can check it has not been rewritten.

Is every mail that fails the signature check refused?

Not necessarily. RFC 6376 says a failed signature check does not force refusal of the mail. Treatment depends on the receiver's policy, and DMARC is the means of conveying that policy.

See what an attacker can see, today

The free URL check returns a grade in under a minute. For costs and next steps, book a free consultation.