Enable DKIM in Microsoft 365
Publish both Microsoft DKIM aliases, then enable signing for your custom domain in Defender.
Reviewed by Mira John Updated
Get both aliases
Open Defender DKIM settings and select the domain. Copy the two targets from Publish CNAMEs. If the configuration has not been created, use the signing toggle to generate it, then reopen the domain.
Add both CNAME records
At the DNS host, create selector1._domainkey and selector2._domainkey as CNAMEs using the targets from Defender. Keep both records for key rotation.
Turn on signing
Return to Defender and enable Sign messages for this domain with DKIM signatures. Send a new message and confirm dkim=pass with your custom domain in d=.
Check the published record
Replace example.com with your domain.
nslookup -type=CNAME selector1._domainkey.example.com
Recheck both selectors. One rotation slot can have an alias without an active public key while the other signs mail.
Both DKIM CNAMEs exist, but custom-domain signing is off
One selector is missing
Copy both CNAME names and targets from Defender for the selected domain. Publish the assigned values, including the rotation selector.
Both CNAMEs resolve, status is Disabled
Enable signing for that custom domain in Defender DKIM settings, then send a new message from Exchange Online.
DKIM passes for an onmicrosoft.com domain
Select the custom From domain in Defender and check its signing configuration. Verify the DKIM d= value on the next test message.
Confirm: A new Exchange Online message reports dkim=pass for your custom signing domain.