Office 365 DKIM checker

Check your Microsoft 365 DKIM records. Rigcheck looks up selector1 and selector2, confirms they point to Microsoft and have a key behind them, and tells you exactly what to change if they don't.

Free, no sign-up. Enter the custom domain you send mail from, not the onmicrosoft.com one.

What correct records look like

Microsoft 365 uses two CNAME records with fixed names. The values depend on when the domain was added to your tenant. Here contoso stands in for your tenant’s onmicrosoft.com name:

NamePoints to
selector1._domainkeyselector1-yourdomain-com._domainkey.contoso.n-v1.dkim.mail.microsoft
selector2._domainkeyselector2-yourdomain-com._domainkey.contoso.n-v1.dkim.mail.microsoft

That’s the format for domains added since May 2025. The letter before -v1 is assigned by Microsoft and varies. Domains set up earlier point to selector1-yourdomain-com._domainkey.contoso.onmicrosoft.com instead. Both formats work, but each selector has to use one or the other, not a mix.

Mistakes this checker catches

A TXT record instead of a CNAME
Microsoft 365 hosts the keys, so the selectors must be CNAMEs pointing to them.
A doubled name
Typing selector1._domainkey.yourdomain.com into a host that adds the domain itself creates selector1._domainkey.yourdomain.com.yourdomain.com. Rigcheck looks for that name too.
A proxied record on Cloudflare
With the orange cloud on, the selector returns Cloudflare’s IP addresses instead of the CNAME. DKIM records must be set to DNS only.
A value that’s slightly off
Dots left in the domain part, your domain appended to the end, the two selectors swapped, or a value copied from a different domain. Where the right value can be worked out, Rigcheck shows it ready to copy.
A missing selector2
Signing can work without it, but Microsoft can’t rotate your keys. If selector1 is correct, Rigcheck derives the selector2 value for you.
Records with no key behind them
The CNAMEs are right, but Microsoft hasn’t published a key at that address. That usually means DKIM keys haven’t been created for the domain in the Defender portal yet.

What DNS can’t show

The records can be perfect while Microsoft still signs your mail with its own onmicrosoft.com domain. That happens when signing was never switched on for your custom domain. The setting lives in the Defender portal, not in DNS, so no outside tool can see it. Checking the d= value in a sent message is the reliable test. The Microsoft 365 setup guide walks through it, along with SPF and DMARC.

Questions

Is Office 365 DKIM the same as Microsoft 365 DKIM?

Yes. Microsoft renamed Office 365 to Microsoft 365, but the DKIM setup, the selector names and the records are the same.

Why does Microsoft 365 need two records?

Microsoft signs with one selector at a time and keeps the other ready for key rotation. Signing can work with only selector1, but rotation fails later if selector2 is missing.

Can I use a TXT record instead?

No. Microsoft 365 hosts the keys itself and rotates them, so your DNS has to point to them with CNAME records. A TXT record at selector1 or selector2 is ignored.

The records pass here. Why does DKIM still fail?

Publishing the records doesn’t turn signing on. In the Defender portal, switch on signing for your domain. Then send yourself a message and check that the d= value in its DKIM-Signature is your domain, not onmicrosoft.com.

How long until a fix shows up?

Usually a few minutes, sometimes a few hours. Results here are cached for five minutes, so wait at least that long before checking again.

DKIM is one of three records. Check SPF, DMARC and MX for the same domain in one go.

Check my setup