⚠ Email authentication

What is DKIM?

DKIM adds a cryptographic signature to every message you send, so receivers can prove it really came from you and was not altered. Here is how it works and how to turn it on.

Guide · 3 min read · updated 2026-08-01

What DKIM does

DKIM (DomainKeys Identified Mail) attaches a digital signature to the headers and body of every outgoing message. The signature is made with a private key that only your sending system holds, and it can be verified with a matching public key you publish in DNS.

When a receiver gets your mail, it fetches that public key, checks the signature, and confirms two things: the message really was authorised by your domain, and nothing in it was changed in transit.

How the pieces fit together

Two halves make DKIM work. Your mail provider signs each message with a private key and stamps a DKIM-Signature header on it. That header names a selector - a short label that points at the right public key.

You publish the public key as a DNS TXT record at selector._domainkey.yourdomain.com. The receiver reads the selector from the header, looks up that exact record, and uses the key it finds to verify the signature.

selector1._domainkey.yourdomain.com  TXT  "v=DKIM1; k=rsa; p=MIGfMA0GCSq..."

Setting up DKIM

You rarely generate keys by hand - your sending platform does it. The flow is almost always:

  1. In your mail or marketing provider, turn on DKIM (sometimes called email authentication or a signing key) for your domain.
  2. The provider shows one or more DNS records - usually a CNAME or TXT at a selector name like s1._domainkey.
  3. Add those exact records at your DNS host, copied character for character.
  4. Back in the provider, click verify. Once DNS propagates it confirms signing is live.
  5. Send yourself a test message and check that DKIM shows a pass in the headers or in a scan.

Why a pass matters beyond signing

DKIM survives forwarding, which SPF does not - so a solid DKIM signature is often what keeps forwarded mail authenticated. It is also one of the two ways a message can satisfy DMARC.

That makes DKIM the backbone of deliverability: without it, DMARC has only SPF to lean on, and any forwarded or relayed mail is far more likely to fail and land in spam.

Check your own domain

Run a free live scan and see exactly where DKIM? stands for your domain.

DKIM Checker ▸

Frequently asked questions

What is a DKIM selector?

A short label in the DKIM-Signature header that tells receivers which public key to fetch. It lets one domain rotate keys or run several senders, each with its own selector._domainkey record.

Can a domain have more than one DKIM key?

Yes. Each sending service can publish its own selector, so a domain often has several DKIM records - one per provider - all valid at once.

Does DKIM encrypt my email?

No. DKIM signs the message so tampering and forgery can be detected; it does not hide the contents. Encryption in transit is handled separately by TLS.

Is DKIM enough on its own?

It authenticates your mail but does not tell receivers what to do with forgeries. Pair DKIM with SPF and a DMARC policy to actually stop spoofing of your domain.

// More guides
What is DMARC?
Email authentication
How to fix DMARC p=none
DMARC enforcement
How to set up an SPF record
SPF / sender authorization
How to enable DNSSEC
DNSSEC
HTTP security headers explained
Web security headers
How to fix an expired SSL certificate
TLS / certificates
Why your email goes to spam
Deliverability