DKIM checker

Short answer

How do I check DKIM?

You check DKIM by looking up the TXT or CNAME record on selector._domainkey.company.com and seeing that it contains a valid public key. Microsoft 365 uses selector1 and selector2, Google Workspace uses google. Enter the domain above and we try the most common selectors and show the key length. If you know the selector, enter it too.

Find the DKIM keys for the domain, which service they belong to and how strong they are.

What DKIM does

DKIM is a digital signature that the service adds to every email. The receiver fetches the public key from DNS and sees that the email has not been changed on the way.

DKIM also holds when the email is forwarded, where SPF often fails. That is why DKIM matters most for passing DMARC.

The selector

Every key sits under a name called a selector, in front of ._domainkey and the domain. We check more than 50 of the most common ones. If we do not find yours, the selector is in the email header under DKIM-Signature, after s=.

How long should the key be?

2048 bit is recommended. 1024 bit is weak and should be replaced when the service allows it. Shorter keys should be replaced right away.

Questions and answers

Why is one Microsoft 365 key shown as a spare?

Microsoft 365 uses two selectors and only publishes the key for the one in use. The other is used at the next key rotation. This is completely normal.

How do I turn on DKIM?

At the service that sends the email. It gives you one or more records to add to DNS. Then you turn on signing in the service.

Do I need DKIM when I have SPF?

Yes. SPF often fails when email is forwarded, while the DKIM signature travels with the message. With both, email passes DMARC in more cases.

What does it mean that DKIM is aligned?

That the domain in d= in the DKIM signature is the same as, or a subdomain of, the domain in the From field. Only an aligned signature counts for DMARC. If the service signs with its own domain, you must set up DKIM for your domain at the service.