# DKIM selector for Microsoft 365

> How do you find the DKIM selector for Microsoft 365?

Canonical: https://www.wovu.dev/guides/dkim-selector-for-microsoft-365/ (updated 2026-11-08)

Microsoft 365 uses two DKIM selectors, `selector1` and `selector2`. You do not guess them from a list; you publish two CNAME records that Microsoft generates for your custom domain, and the selectors are the labels on those records. Both are part of the setup because Microsoft rotates between them.

A DKIM selector is the name that tells a receiver where to find the public key. For Microsoft 365 the records look like this.

## The two CNAMEs

For the custom domain `example.com` with the initial tenant domain `example.onmicrosoft.com`:

```txt
selector1._domainkey.example.com.  CNAME  selector1-example-com._domainkey.example.onmicrosoft.com.
selector2._domainkey.example.com.  CNAME  selector2-example-com._domainkey.example.onmicrosoft.com.
```

The middle part is the custom domain with dots replaced by hyphens. Microsoft shows the exact values in the Defender portal when you enable DKIM for the domain. Copy them from there rather than composing them by hand.

## Where to find them

1. Open the Microsoft 365 Defender portal and sign in with an account that can manage email authentication.
2. Go to the email authentication settings for your domain.
3. Select the custom domain and choose to enable DKIM.
4. Microsoft displays the two CNAME records. Copy the host and value exactly.
5. Add both records at your DNS provider.
6. Return to the portal and enable signing after the records resolve.

The records are CNAMEs, not TXT records. A TXT record with a public key is the pattern for some other providers; Microsoft 365 uses CNAMEs so it can rotate keys without asking you to edit DNS.

## Checking the records

From a terminal:

```bash
nslookup -type=CNAME selector1._domainkey.example.com
nslookup -type=CNAME selector2._domainkey.example.com
```

Or with `dig`:

```bash
dig +short CNAME selector1._domainkey.example.com
```

You want each name to resolve to the Microsoft target shown in the portal. Then send a test email to a mailbox you control and inspect the `Authentication-Results` header. A passing result looks like `dkim=pass header.d=example.com` with a selector such as `s=selector1`.

If the header shows `dkim=none`, the domain may not have signing enabled yet. If it shows `dkim=fail`, the key does not match the published record, the message was modified, or you are looking at the wrong selector.

## Which selector is signing?

You do not choose per message. Microsoft decides and rotates. A message may be signed by selector1 or selector2. Both must resolve and both must be valid, because the receiver does not know which one was used until it reads the signature.

That is why setup requires both records even if only one appears in a given message. Removing the unused selector breaks rotation.

## A worked example

A company enables DKIM for `example.com`. It publishes selector1 and selector2, waits an hour, and sends a test to a Gmail account.

The header shows `dkim=pass header.d=example.com header.s=selector1`. Two weeks later, a different test shows `header.s=selector2`. Nothing is wrong. Microsoft rotated.

Now suppose the team had published only selector1. The first test passes. Weeks later, mail starts failing DKIM after a rotation, and the team cannot see why because the visible From and SPF are unchanged. The missing selector2 is the cause.

## Common mistakes

**Publishing TXT records instead of CNAMEs.** Microsoft 365 expects the exact CNAME targets it shows. A hand-built TXT key will not match Microsoft's rotation.

**Using the root domain in the target.** The initial `onmicrosoft.com` domain is part of the target. Copy it; do not substitute your custom domain.

**Forgetting the trailing dot in some DNS interfaces.** Most providers add it automatically, but a missing dot can create a relative name.

**Enabling signing before the records resolve.** The portal may let you enable, but mail will fail until DNS propagates.

**Deleting a selector after a rotation.** Keep both. The unused one is not unused forever.

**Assuming DKIM fixes DMARC alignment automatically.** DKIM must sign with a domain aligned to the From domain. If Microsoft signs with `example.onmicrosoft.com` while the From is `example.com`, DMARC alignment fails unless you configure the custom domain correctly.

## DKIM and DMARC together

DKIM gives DMARC a second authentication path, and it survives forwarding better than SPF. That makes aligned DKIM valuable at the quarantine and reject stages.

Publish DMARC at `p=none` while you confirm the DKIM results in reports, then move to [quarantine](/guides/dmarc-p-quarantine/) and eventually [reject](/guides/dmarc-p-reject/). The [SPF, DKIM and DMARC checker](/tools/spf-dkim-dmarc-checker/) shows the public records, but only a live message header proves which selector signed.

## Where Wovu fits

Wovu does not configure Microsoft 365 or DNS. It finds a warm lead from a public signal, keeps the source, drafts the message, and sends an approved campaign on LinkedIn and email. Wovu never tracks email opens, so the first email carries no tracking pixel. DKIM and DMARC remain your responsibility, and a clean authentication setup is one of the preconditions for any outbound that expects to reach an inbox.

## FAQ

### What is the DKIM selector for Microsoft 365?

Microsoft 365 uses `selector1` and `selector2`. The full record names are `selector1._domainkey.yourdomain.com` and `selector2._domainkey.yourdomain.com`, published as CNAMEs to the targets Microsoft shows.

### Do I need both selectors?

Yes. Microsoft rotates between them, and mail can be signed by either. Publishing only one leaves you exposed at the next rotation.

### Are the records TXT or CNAME?

For Microsoft 365 they are CNAMEs. The portal shows the exact host and target.

### How long does DKIM take to work?

DNS propagation is usually minutes but can take longer depending on TTL. Enable signing after the records resolve, then test with a real message and read the authentication header.

## Sources checked 2026-11-08

- [Microsoft 365, set up DKIM](https://learn.microsoft.com/en-us/microsoft-365/security/office-365-security/email-authentication-dkim-configure)
- [RFC 6376, DKIM](https://www.rfc-editor.org/rfc/rfc6376)
- [Microsoft 365, DKIM signing](https://learn.microsoft.com/en-us/defender-office-365/email-authentication-dkim-configure)
- [Google Workspace, DKIM](https://support.google.com/a/answer/174124)
