[Articles](https://mailglo.com/articles/) / [DKIM and DMARC](https://mailglo.com/articles/topic/dkim-and-dmarc/)

For AI agents: [llms.txt, the index of guides and public pages](https://mailglo.com/llms.txt)

# Does Microsoft 365 sign my mail with DKIM for my own domain?

Microsoft 365 doesn't sign mail as your custom domain until you publish two CNAME records and turn on DKIM signing for it. Until then, your mail passes DMARC only through a matching SPF pass, unless another service adds a passing DKIM signature that matches your domain. Forwarding often breaks SPF.

## Check it on a real domain

DNS shows whether a domain has the two CNAME records Microsoft 365 needs. Run the same two lookups on your domain. To see whether signing is on, check the portal, and test it with a delivered message. On 4 December 2026 we looked up `contoso.com`, the example domain in Microsoft's own guides, and `github.com`:

```
$ dig +short CNAME selector1._domainkey.contoso.com
$ dig +short CNAME selector2._domainkey.contoso.com
$ dig +short CNAME selector1._domainkey.github.com
selector1-github-com._domainkey.microsoft.onmicrosoft.com.
$ dig +short CNAME selector2._domainkey.github.com
selector2-github-com._domainkey.microsoft.onmicrosoft.com.
```

`contoso.com` returns no CNAME at either selector: neither Microsoft 365 alias appears. `github.com` has both. Your answers may end differently, for example in `dkim.mail.microsoft`. That's fine as long as they match the values the portal shows.

### Test a message

To test signing, send a message from Microsoft 365 to an outside mailbox, such as your personal Gmail. Open its headers (in Gmail, **More › Show original**). Shortened from Microsoft's example, a signed message shows:

```
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=contoso.com; s=selector1; ...
Authentication-Results: mx.google.com; dkim=pass header.i=@contoso.com header.s=selector1 ...
```

Find a `DKIM-Signature` line whose `d=` is your domain, and note its `s=` selector. Then find the result for that domain and selector in `Authentication-Results`. Receivers word it differently, but it should say `dkim=pass` or `DKIM=OK`. For DMARC, the signing domain must match your From domain. By default the same main domain is enough, so `d=example.com` counts for mail from `news.example.com`. With `adkim=s` in your DMARC record, it must be the exact domain.

- No signature with your domain in `d=`: this copy has no signature for your domain. Check whether signing is on.
- A signature that fails: check the two CNAME records first. If they match the portal, check whether a mail gateway or another service changes the message after Microsoft 365 signs it.

Mail between two domains of your own company isn't signed, so always test with an outside mailbox.

## Turn it on

The domain must already be added to Microsoft 365.

1. In the Defender portal, open **Email & collaboration › Policies & rules › Threat policies › Email authentication settings**. On the **DKIM** tab, find your domain's **Status**. If it says **Valid** and its toggle is **Enabled**, signing is on: test it as above. The details pane then says **Signing DKIM signatures for this domain**. If it says **Valid** but the toggle is **Disabled**, the keys and records exist: skip to step 5, without its wait.
2. If it says **NoDKIMKeys**, slide the domain's toggle to **Enabled**. An error dialog opens. That's expected, and it creates the keys. Select **OK**. The status changes to **CnameMissing**.
3. With **CnameMissing**, select the domain's row to open its details, and copy both values from the **Publish CNAMEs** section. Don't build them from a guide: the values differ between older and newer domains.
4. At your DNS host, publish both CNAME records, even though only one is used at a time. For `example.com`, the full names are `selector1._domainkey.example.com` and `selector2._domainkey.example.com`. For a subdomain such as `mail.example.com`, they are `selector1._domainkey.mail.example.com` and `selector2._domainkey.mail.example.com`. Many DNS hosts add the zone's name for you. If yours does, leave off only that ending. In the `example.com` zone, enter `selector1._domainkey` for `example.com`, and `selector1._domainkey.mail` for `mail.example.com`. Do the same for `selector2`.
5. Wait a few minutes. In the details pane, turn on **Sign messages for this domain with DKIM signatures**, then select **OK**. The status should change to **Signing DKIM signatures for this domain**.
6. Repeat for each domain and subdomain you send from, then test with an outside mailbox as above.

### If the status stays CnameMissing

Run the two lookups above on your domain:

- **No answer, or a different value:** fix the record so it matches the portal. On Cloudflare, set both records to **DNS only**, not proxied. On Amazon Route 53, end the value with a dot, or Route 53 adds your domain to it.
- **Both answers match:** DNS changes can take a while to be seen. Wait, then try the toggle again. Microsoft's guide lists more causes.

## Sources

- Microsoft: [Set up DKIM to sign mail from your cloud domain](https://learn.microsoft.com/en-us/defender-office-365/email-authentication-dkim-configure): no signing for custom domains until set up, the portal steps, the CNAME formats, common DNS mistakes and their fixes, and testing. Updated 3 July 2026, read on 4 December 2026.
- [RFC 9989, section 4.4](https://www.rfc-editor.org/rfc/rfc9989#section-4.4): a DKIM signature counts for DMARC only when it passes and its domain aligns with the From domain. May 2026.

First published 5 Dec 2026.
