Fix Microsoft 365 DKIM When CNAME Records Exist
Question details
Enable DKIM for a Microsoft 365 domain when the service reports missing CNAME records despite external DNS checks showing them.

- Product
- Microsoft 365 and Exchange Online
- Device & OS
- not provided
- Scenario
- An administrator has published DKIM CNAME records and wants to enable DKIM signing for a custom domain.
- Observed behavior
- Microsoft 365 reports that the DKIM CNAME records are missing even though external DNS tools can find them.
Identify the custom domain and have access to its authoritative DNS provider and a Microsoft 365 account with Exchange Online administrative permissions. If the DNS records were recently changed, allow time for propagation before retrying.
Verify DKIM CNAME targets and enable signing with PowerShell
Use Exchange Online PowerShell to inspect the domain configuration, confirm both DNS targets, and retry DKIM activation.
Open PowerShell, install the ExchangeOnlineManagement module if needed with Install-Module ExchangeOnlineManagement, and run Connect-ExchangeOnline. Sign in with an account that can manage DKIM.
Run Get-DkimSigningConfig -Identity contoso.com | Format-List, replacing contoso.com with your domain. Review the configuration, including the selector CNAME values and enabled status.
In your DNS provider's management console, compare the selector1 and selector2 CNAME hostnames and targets with the values shown in the DKIM configuration or Microsoft Defender portal. Correct any mismatches and check that the records are published in the authoritative DNS zone.
After DNS changes have propagated, run Set-DkimSigningConfig -Identity contoso.com -Enabled $true in the connected PowerShell session. Then rerun Get-DkimSigningConfig -Identity contoso.com | Format-List and check that Enabled is True.

Check Microsoft 365 service health for DKIM incidents
Use this check if the CNAME records are correct but Microsoft 365 still cannot enable DKIM.
Use WPS Office for compatible documents while managing Microsoft 365
WPS Office is a free, lightweight, easy-to-use alternative for working with Office documents. Its familiar interface and format support make it easy to move between applications, although it does not fix Microsoft 365 DKIM or DNS settings.

Frequently Asked Questions
Why does Microsoft 365 say my DKIM CNAME records are missing?
DNS changes may still be propagating, or one of the two CNAME hostnames or targets may not match the domain's Microsoft 365 configuration. Compare both records in your DNS provider's console with the values shown by Get-DkimSigningConfig.
How can I check whether DKIM is enabled?
Connect to Exchange Online PowerShell and run Get-DkimSigningConfig -Identity contoso.com | Format-List, replacing contoso.com with your domain. Check the Enabled value in the output.
Can I enable DKIM from PowerShell?
Yes. After connecting with Connect-ExchangeOnline and verifying both CNAME records, run Set-DkimSigningConfig -Identity contoso.com -Enabled $true with your domain name.
Where can I check for a Microsoft 365 service incident?
In the Microsoft 365 admin center, go to Health > Service health and review active Exchange Online incidents and advisories.




