# DomainKeys Identified Mail (DKIM)

> A hidden mark on each email. It proves who sent it and that nobody changed it.

**Field:** Infrastructure  
**Category:** Security  
**Also known as:** DKIM, DKIM Signature, DKIM Record, DomainKeys Identified Mail

## Think of it like

It is like a wax seal on a letter. If the seal is broken, you know someone changed it.

## Definition

DKIM adds a hidden signature to each email a domain sends. The sending server signs the email with a secret key. The matching public key sits in the domain's DNS records. The server that gets the email uses it to check two things. The email really came from that domain, and nobody changed it on the way.

## Example

A bank signs every email with DKIM. A fake email that copies its logo has no real signature. So the server that gets it flags it.

## Why it matters

It proves an email is real even after it has been forwarded. Mail services trust signed mail more.

## Common mistake

Turning it on in one email tool and not the others. Mail from the unsigned tool looks less trustworthy.

## Three principles

- **Signed when sent.** A secret key signs each email.
- **Checked on arrival.** The public key sits in DNS.
- **Shows changes.** An edited email fails the check.

## Related terms

- [Sender Policy Framework (SPF)](https://learn.benibix.com/term/infrastructure/spf)
- [Domain-based Message Authentication, Reporting and Conformance (DMARC)](https://learn.benibix.com/term/infrastructure/dmarc)
- [Domain Name System (DNS)](https://learn.benibix.com/term/infrastructure/dns)
- [Phishing](https://learn.benibix.com/term/infrastructure/phishing)
- [Email Deliverability](https://learn.benibix.com/term/marketing/email-deliverability)

## Told apart from

- [SPF vs DKIM](https://learn.benibix.com/compare/spf-vs-dkim): People think SPF and DKIM do the same check, and they do not. SPF asks if the server that sent the email is on the domain's list of allowed senders. DKIM checks a hidden signature on the email itself. It proves the email came from the domain and was not changed. Forwarding often breaks SPF but leaves DKIM whole.

## Taught in

- [SPF, DKIM and DMARC](https://learn.benibix.com/learn/marketing-email/spf-dkim-and-dmarc): Email Marketing, 10/11

![An email travels from a sender to a receiving mail server, which runs three checks against the sender's DNS records. SPF asks whether this server is on the list. DKIM checks the signature on the email against a public key. DMARC reads both results and the domain's rule, then sends the mail to the inbox, to spam or turns it away.](https://learn.benibix.com/diagrams/mkt-email-spf-dkim-dmarc.svg)

---

Source: https://learn.benibix.com/term/infrastructure/dkim
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
