Enabling DKIM in Microsoft 365

Spammers love sending emails that look like they come from your domain. With DKIM (DomainKeys Identified Mail), every outgoing email gets a digital signature. The receiving server checks that signature via DNS and knows the email really comes from your organisation and wasn't altered on the way. This article shows how to enable DKIM for your own domain in Microsoft 365.

Why DKIM?

Enable DKIM

  1. Go to security.microsoft.com > Email & collaboration > Policies & rules > Threat policies > Email authentication settings > DKIM tab.
  2. Select your own domain. Choose Create DKIM keys if that hasn't happened yet.
  3. You get two CNAME records: selector1._domainkey and selector2._domainkey. Copy the target values exactly from the portal.
  4. Add both records at your DNS provider.
  5. Wait until the DNS change is visible (usually under an hour) and turn on Sign messages for this domain with DKIM signatures.
DKIM settings in Microsoft 365
The CNAME records for DKIM

With PowerShell

Connect to Exchange Online and use New-DkimSigningConfig -DomainName contoso.com -Enabled $false to create keys, Get-DkimSigningConfig -Identity contoso.com | Format-List Selector1CNAME, Selector2CNAME to get the records and Set-DkimSigningConfig -Identity contoso.com -Enabled $true to enable signing.

Verify

Send an email to an external address and look at the message headers. Under Authentication-Results you should see dkim=pass with header.d= your own domain.

DKIM enabled for a domain

Together with SPF and DMARC

Related: block automatic email forwarding and encrypt email in Outlook.

Read also

Block automatic forwarding and outgoing email in Microsoft 365
How to encrypt or protect an e-mail in Outlook and Microsoft 365
Set up Data Loss Prevention (DLP) in Microsoft Teams with Purview

Nederlandstalige versie: Zo activeer je DKIM in Microsoft 365 voor je eigen domein


More in English