Skip to content
Frosty Cyber Sec

Coming soon. Our products are not open to the public yet and nothing is on sale. Tell me when it opens

← Frosty Labs

Practical guide · 6 min read

What is DKIM, and how to set it up

Signing, selectors, key length and rotation, in plain English.

What DKIM proves

DKIM adds a digital signature to each message you send. Your mail server signs part of the message with a private key, and receivers check that signature against a public key you publish in DNS. If it matches, two things are proven: the message came from a sender holding your key, and the signed parts were not altered in transit.

Selectors, and why there is more than one

The public key lives in a DNS TXT record at a name like selector._domainkey.yourdomain. The selector is simply a label, which lets you publish several keys at once: one per sending service, or an old and a new key side by side. That is what makes key rotation possible without a gap in signing.

Key length: 1024 vs 2048

A 2048-bit key is the modern recommendation and worth choosing from the start. 1024-bit keys still verify but are weaker, and some providers are retiring them. One practical note: certain DNS hosts need a 2048-bit key split across the TXT record, which your mail provider usually handles for you.

Rotate keys now and then

A signing key that never changes is a key that leaks eventually. Rotate periodically, and always when a key may have been exposed. Selectors make this safe.

  • Publish the new key under a fresh selector.
  • Switch your mail service to sign with the new selector.
  • Confirm that new mail verifies correctly.
  • Remove the old selector record only after a short overlap.

Alignment is why DKIM matters for DMARC

DMARC does not just want DKIM to pass; it wants the domain in the DKIM signature (the d= value) to match the domain in your From address. When your own domain signs the mail, DKIM stays aligned even through forwarding, which is exactly where SPF tends to break. That makes an aligned DKIM signature the most dependable way to pass DMARC.

Check that every service signs

Mail from your main provider is only part of the picture. Invoicing, CRM, support and marketing tools each need DKIM set up with your domain, or their mail will fail DMARC once you enforce it. Treat the same sender inventory you built for SPF and DMARC as your DKIM checklist too.

General guidance, not legal or professional advice for your specific situation. Only test systems you own or are authorized to assess.

Frosty Shield is coming soon

It is built and is being checked before release. Leave your email address and we will tell you once, when it opens.