email-security
DKIM in Microsoft 365: Why the Default Domain Is Not Enough
Learn why Microsoft 365 signs its initial domain by default, what custom-domain DKIM needs, and how to check selectors without guessing DNS values.
·DKIM in Microsoft 365: why the default domain is not enough
Short answer: Microsoft 365 automatically DKIM-signs mail sent from your initial onmicrosoft.com domain; this is the default onmicrosoft.com DKIM behavior. If your organization sends from a custom domain, Microsoft says DKIM signing for that custom domain is not configured by default; configure and verify custom-domain DKIM per domain and sending subdomain. A signature from the service domain may not align with the custom domain people see in the From address. This guide explains what to check without guessing DNS records.
Start with the domain in the From address
DKIM adds a cryptographic signature to parts of an email and publishes the public key in DNS so a receiving system can verify that signature. In Microsoft 365, custom-domain DKIM uses CNAME records that point to Microsoft-managed public keys. Microsoft explains that the domain used to sign a message does not have to match the From domain, but DMARC's DKIM alignment check depends on the signing domain aligning with the From address domain.
That difference matters when mail is sent from company.example but only bears a signature for tenant.onmicrosoft.com. A message can have more than one DKIM signature, and a custom-domain signature is what lets the receiver evaluate alignment against that visible From domain. Do not interpret a DKIM pass from any domain as proof that the message is aligned for DMARC.
Microsoft Learn says the initial onmicrosoft.com domain is automatically DKIM-signed. It also says that, currently, outbound mail from custom domains is not DKIM-signed until you configure it. The page states that each custom domain or sending subdomain needs its own configuration. If the organization sends from a marketing or application subdomain, include it in the inventory rather than assuming the parent-domain setup covers it.
Inventory every sending domain first
Make a short list of domains and subdomains used in the visible From address for real outbound mail. Include people, applications, bulk mail services and third-party senders. Separate domains that actually send from parked or unused domains. Microsoft advises against publishing DKIM records for unused registered domains.
For each sender, record the From domain, sending system, owner, whether the domain is an initial onmicrosoft.com or custom domain, the DKIM status, and the date checked. Then confirm who controls its DNS and who can access the Microsoft 365 Defender portal or Exchange Online PowerShell. This inventory is a review aid, not a tenant scan.
Where a service sends on behalf of the organization, confirm the service's own configuration and the exact From domain it uses. Do not assume that a vendor's signature or a Microsoft 365 signature will automatically align with every domain. If the sender cannot use the intended domain, agree on a domain and authentication design with its owner before changing records.
Retrieve the exact selector targets
Microsoft 365 uses two DKIM selectors for a custom domain. Microsoft says one selector is active; the other can support a later key rotation. For each domain, the DKIM selector CNAME record hostnames use selector1._domainkey and selector2._domainkey, but the target values vary by tenant and domain. Microsoft specifically says to retrieve the required values in the Defender portal or with Exchange Online PowerShell; values shown in documentation are examples.
That means a generic online example is not safe to paste into DNS. Microsoft documents that newer custom domains can use a dynamic partition character in the target, and that older and newer formats cannot be mixed for the same selector. Copy the exact values presented for the domain you are configuring. If the target is missing or a DNS provider changes the host format, stop and compare it with Microsoft's current instructions rather than inventing a value.
After publishing both CNAME records, allow Microsoft 365 to detect them. The configuration guidance describes checking the domain status and then enabling signing after the records are found. A DNS lookup alone does not prove that Microsoft is signing outbound messages. Check the signing status in the portal or configuration output, then inspect a real message header using an approved test process. Avoid including full customer messages or private headers in public support requests.
Check DKIM alongside SPF and DMARC
DKIM is one part of email authentication. Microsoft's overview describes SPF, DKIM and DMARC as interdependent building blocks. SPF identifies authorized sending sources; DKIM signs message content and selected headers; DMARC specifies how receivers should handle failures and where reports are sent. The controls complement one another, but none guarantees delivery or prevents every spoofing attempt.
Review the domain alignment expected by the DMARC policy, the actual From address, the SPF record's authorized senders and the DKIM signing domain. Also inspect whether forwarding services, mailing platforms or message gateways alter content or headers. If a message is changed after signing, the signature may fail verification. If multiple services send mail, document each one rather than adding broad DNS entries to make a test pass.
Use the Email Health Check for a local review of public DNS records, then compare the result with Microsoft's tenant-side DKIM status. It cannot see private tenant settings or confirm that a specific message was signed. The MX, SPF, DKIM and DMARC lookup guide explains the public DNS checks, and the DMARC rollout plan covers a staged policy review. These resources do not change DNS or Microsoft 365 settings.
A cautious verification checklist
- [ ] List every custom domain and subdomain that sends mail.
- [ ] Confirm which domain appears in each message's From address.
- [ ] Retrieve both selector targets from the Defender portal or Exchange Online PowerShell for that exact domain.
- [ ] Publish only those exact CNAME values through the authorized DNS process.
- [ ] Wait for Microsoft 365 to detect the CNAME records, then confirm the domain status and signing toggle.
- [ ] Send an approved test message and inspect its authentication results and signing domain.
- [ ] Review SPF authorization and DMARC alignment for the same From domain.
- [ ] Repeat for each sending subdomain and service; record owner and verification date.
If a record does not match Microsoft's displayed values, or if the tenant status remains unclear, do not guess. Ask the DNS or messaging owner to verify the record and status. Preserve the current working configuration while investigating, and plan any correction with a rollback path.
How it works
The review compares the visible From domain with the DKIM signing domain, checks that the right selector records are published, and confirms that Microsoft 365 reports signing as enabled. Then it considers SPF and DMARC for the same mail flow. It is a checklist, not a live tenant inspection or a guarantee that messages will be delivered.
Microsoft sources checked 4 December 2026: Set up DKIM to sign mail from your cloud domain (Microsoft Learn; custom-domain defaults, selector values and configuration steps) · How email authentication works in Microsoft 365 (Microsoft Learn; SPF, DKIM and DMARC overview).
Frequently asked questions
Does Microsoft 365 sign mail from a custom domain with DKIM by default?
Microsoft Learn says mail from the initial onmicrosoft.com domain is automatically signed. Custom domains need their own DKIM configuration, and each sending subdomain must be checked separately. Verify the exact setup in your tenant.
Can I reuse DKIM selector values from another Microsoft 365 tenant?
No. The selector CNAME targets depend on the domain and tenant. Retrieve both exact values from the Defender portal or Exchange Online PowerShell; documentation examples are not values to copy into your DNS.
Does a DKIM pass mean that DMARC passes?
Not by itself. DMARC also checks whether the DKIM signing domain aligns with the visible From domain. Review SPF alignment and the DMARC policy for the same mail flow as well.
Does this guide check or change my Microsoft 365 tenant?
No. It is a manual review checklist. It does not connect to a tenant, publish DNS records, enable DKIM or verify a message header. Use your approved administrator process for tenant-side checks.