Mailfletch

Guide

What is DKIM?

DKIM (DomainKeys Identified Mail) signs every email you send with a private key. Receivers check the signature against a public key in your DNS, proving the message really came from your domain and wasn't altered on the way.

How DKIM works

  1. Your mail system signs each outgoing message with a private key only it holds.
  2. The signature is added to the message headers, naming your domain (d=) and a selector (s=).
  3. The receiving server looks up the public key at selector._domainkey.yourdomain in DNS and checks the signature.

What the DNS record looks like

selector1._domainkey.example.co.uk  TXT  "v=DKIM1; k=rsa; p=MIIBIjANBgkqh..."

Some providers, including Microsoft 365, ask you to publish a CNAME to a key they host instead, so they can rotate keys for you.

Selectors

A selector is just a label that lets a domain have several DKIM keys at once, for example one per sending service. Microsoft 365 uses two, selector1 and selector2, so it can rotate keys without a break.

Why DKIM matters

Common problems

For Microsoft 365, follow how to enable DKIM. The free domain check tests both selectors.

Common questions

Is DKIM the same as DMARC?

No. DKIM signs messages. DMARC is the policy that uses DKIM and SPF results to decide what to do with failing mail, and reports back to you.

Do I need DKIM if I have SPF?

Yes. SPF alone fails on forwarded mail, and DMARC is most reliable when DKIM is in place.

How protected is your domain?

Free. No sign-up. See your grade from A to F in a few seconds.