Platform

Platform overview How it works Authorization testing Evidence & reports Private scanning Integrations

Solutions

Security agencies Product teams Regulated industries Partner programme

Learn

Blog Knowledge hub Compare

Resources

Pricing Documentation Help centre FAQ Security & data What we haven’t proved

Company

About Contact Careers Sign in to the platform Start a $199 pilot →

Home / Knowledge hub / DKIM

Knowledge hub

DKIM

A signature on outgoing email that proves it came from your domain and is unaltered.

Illustration explaining DKIM

What it means

DKIM, short for DomainKeys Identified Mail, adds a digital signature to each outgoing email. Your mail server signs selected headers and the body with a private key. The matching public key is published in your DNS, so any receiver can verify the signature and confirm the message was not altered.

The signature sits in a DKIM-Signature header. It names the signing domain and a selector, which tells the receiver where to find the key at selector._domainkey.yourdomain. Using selectors means you can run several keys at once and swap them without a gap.

Why it matters

DKIM gives receivers a reliable sign that a message passed through a system your domain controls, and that nobody edited it on the way. That supports reputation: mail that verifies is easier to deliver, and forged mail is easier to spot. It also feeds DMARC, which needs a passing SPF or DKIM result.

It can fail without anyone noticing. A message changed in transit, such as a mailing list adding a footer, can break the signature. A key left in place for years, or a weak one, raises the risk that someone could forge signatures if the private key leaks.

How it shows up

You set it up in your email provider’s settings, which gives you a record to publish in DNS. Every service that sends mail for you, such as marketing tools and your product’s notification system, needs its own DKIM setup for your domain. Test by sending a message and reading the authentication results in the headers.

The mistakes: signing only some senders, using a very short key, never rotating keys, and publishing the record on the wrong name. Use at least 2048-bit keys where supported, rotate with a new selector, and remove selectors for services you stopped using. Treat the private key as a secret under your secrets management.

Questions people ask

DKIM, answered

Does DKIM encrypt email?

No. It signs the message, so tampering can be detected, but the content is not hidden. Encryption in transit is a separate matter handled by TLS between mail servers.

Signing proves origin and integrity only.

What is a DKIM selector?

A label that points to a specific public key in DNS, for example mail1._domainkey.example.com. It lets you publish several keys and rotate them without downtime.

Each sending service often has its own.

What key size should DKIM use?

RFC 8301 requires at least 1024-bit RSA for signing, and 2048-bit is the common recommendation today. Check your DNS provider handles long TXT records.

Avoid the old SHA-1 signing algorithm.

Why does DKIM sometimes fail on forwarded email?

Forwarding alone usually keeps the signature valid, since the content is unchanged. Failures happen when an intermediary alters the body or signed headers, such as a list adding a footer.

SPF often fails on forwarding instead.

Is DKIM enough without DMARC?

DKIM proves who signed a message, but it does not tell receivers what to do when checks fail or require the signing domain to match the From address. DMARC adds both.

Use them together.

Cyberlop mark

Is your private key kept safe?

DKIM is an email and DNS setup, so it sits outside what we test. Where your application sends mail, we check the web app and API, including cross-account access. Ask us to run it on one of your applications.

Or start with a $199 pilot on one application: thirty days, success criteria agreed before day one, credited against the annual if you convert.