Xpoudy

How to Rotate Microsoft 365 DKIM Keys

Short answer

Verify both tenant-specific DKIM CNAME records, then use Microsoft Defender’s key rotation action for the custom domain. Keep both selector aliases published. Check a new message after Microsoft reports the rotation complete to confirm the active selector and signing domain.

By Xpoudy ·

Verify the starting signing state

Choose the exact domain in Microsoft Defender’s DKIM area. Compare both published CNAMEs to the values it displays. Test a message before the change and save its selector and DKIM result. This establishes which selector previously signed real mail.

Rotate using Microsoft’s control

Use the documented key rotation action for that domain. Keep both CNAMEs in place while Microsoft switches selectors and manages its public keys. If the status is pending, follow the provider’s expected process before making any DNS changes or retrying rotation.

Verify both DNS and fresh mail

Use Xpoudy DNS Lookup for the CNAME targets and inspect a message sent after rotation. Confirm that a custom-domain signature passes. A different selector is normal after a switch. If the new signature fails, compare the recorded targets with Defender and investigate before changing the remaining alias.