Skip to content

What is DKIM?

DKIM stands for DomainKeys Identified Mail. It's a method of cryptographically signing outgoing email so that receiving servers can verify the message genuinely came from your domain and wasn't modified in transit.

Think of it as a digital signature on every email your domain sends.

How DKIM works

When you configure DKIM for a service:

  1. The sending service generates a public/private key pair
  2. You publish the public key as a DNS record on your domain
  3. The sending service signs every outgoing message with the private key
  4. Receiving servers look up your public key and verify the signature

If the signature is valid, DKIM passes. If the message was tampered with, or the signature doesn't match, DKIM fails.

What a DKIM DNS record looks like

DKIM records are published at a specific subdomain in the format selector._domainkey.yourdomain.com. For example:

selector1._domainkey.catsnackjack.com

The selector identifies which key pair was used. Microsoft 365 uses selector1 and selector2. Google uses google. Mailchimp uses k1.

The record content looks something like this:

v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC...

You don't need to understand the key content — you just need to publish the record your email service provides.

Setting up DKIM by service

Most services have a setup wizard that generates the DNS records for you:

ServiceWhere to set up DKIM
Microsoft 365Microsoft 365 Defender → Email authentication settings
Google WorkspaceAdmin Console → Apps → Gmail → Authenticate email
MailchimpAccount → Domains → Authenticate
SendGridSettings → Sender Authentication → Domain Authentication
HubSpotSettings → Marketing → Email → Authentication

Sentura's action items will tell you exactly which services need DKIM configured and link you to the right setup page.

DKIM vs SPF

SPFDKIM
What it checksSending server IP addressCryptographic signature on message
Where it's configuredSingle TXT record at domain rootTXT records per selector per domain
Survives forwarding?No — forwarded mail often fails SPFYes — the signature travels with the message
Who configures itYou (in your DNS)The sending service generates the keys

DKIM is generally more reliable than SPF because it survives email forwarding — SPF often fails for forwarded messages because the forwarding server's IP isn't in your SPF record.

Why both matter

DMARC requires at least one of SPF or DKIM to pass and align with your From: domain. Having both configured gives you redundancy — if SPF fails for a forwarded message, DKIM can still pass and your DMARC won't fail.

For DMARC enforcement, you want every legitimate sending service to be passing both SPF and DKIM.

Further reading

Sentura — Email authentication posture for Microsoft 365