Published Date: 26th November 2026
Last Updated: 13th November 2026
Platform: Microsoft 365 / Exchange Online
How to Enable DKIM for a Domain in Microsoft 365
DomainKeys Identified Mail (DKIM) is an email authentication method used to digitally sign outgoing messages. The receiving email system can use the corresponding public key published in DNS to verify the signature and confirm that the signed parts of the message were not modified while the message was in transit.
Microsoft 365 makes the DKIM public keys accessible for custom domains by using CNAME records in DNS. DKIM helps protect against forged sender addresses and improves the authentication of messages sent using your organization’s domain.
This article explains how to configure the required DNS records and enable DKIM signing for a custom domain used with Microsoft 365.
Prerequisites
Before proceeding, ensure that:
- The custom domain has already been added to the Microsoft 365 organization.
- You have the required administrator permissions to manage DKIM.
- You have access to the DNS for the domain.
- Mail for the domain is sent directly through Exchange Online.
- You are able to create or modify CNAME records in the domain’s public DNS.
Microsoft notes that permissions are required to manage DKIM configuration.
Important: If outbound email is routed through a third-party email gateway such as Proofpoint or Mimecast, the DKIM configuration should follow that provider’s requirements rather than automatically using Microsoft 365 DKIM records.
Quick Navigation
DKIM Configuration
- Sign in to the Microsoft Defender portal
- Open the DKIM settings
- Select the custom domain
- Obtain the required CNAME records
- Add the CNAME records to DNS
- Verify DNS propagation
- Enable DKIM
- Verify DKIM signing
Additional Information
- Common Problems
- Frequently Asked Questions
- Related Knowledge Base Articles
- Official Documentation
- Summary
How to Enable DKIM for a Custom Domain
Step 1: Sign In to the Microsoft Defender Portal
Sign in to the Microsoft Defender portal using an administrator account that has the required permissions to manage the organization’s email authentication settings.

Navigate to the DKIM configuration area for email authentication.

Step 2: Select the Custom Domain
From the DKIM configuration page, locate and select the custom domain for which DKIM needs to be enabled.
For example:
example.com
Make sure you select the correct domain before modifying the DKIM configuration.

Step 3: Review the Required DKIM DNS Records
When configuring DKIM for a custom domain, Microsoft 365 requires DKIM information to be published in the domain’s public DNS using CNAME records. How to use your custom domain’s DKIM for email.
Microsoft 365 provides the correct CNAME values for the domain.
Copy the CNAME host names and target values displayed for your domain.
Important: Do not copy DKIM values from another tenant or another domain. Use the values provided for the specific custom domain being configured.


Step 4: Update DNS with the DKIM CNAME Records
Log in to the domain’s DNS management portal.
Utilizing the information supplied by Microsoft 365, create the CNAME entries.
The configuration will generally contain DKIM selectors associated with the custom domain, but the exact record names and destinations shown by Microsoft 365 should be used.
Microsoft 365 uses CNAME records to publish the public-key location used for DKIM verification.
After entering the records:
- Verify the host/name.
- Verify the destination/target.
- Save the DNS records.
Step 5: Allow the DNS Records to Propagate
After adding the CNAME records, allow time for the DNS changes to become publicly available.
Before enabling DKIM, verify that the CNAME records can be correctly resolved.
Incorrectly published CNAME records can prevent the DKIM configuration from being enabled correctly. Microsoft’s DKIM diagnostic specifically checks whether the required CNAME entries have been published correctly.
Step 6: Enable DKIM
Return to the DKIM configuration page in the Microsoft Defender portal.
Select the required custom domain and enable DKIM signing.
Once the required DNS records are detected and the configuration is enabled, Microsoft 365 can use the custom domain for DKIM signing.

Step 7: Verify the DKIM Configuration
After enabling DKIM, confirm that the configuration is working correctly.
Microsoft provides a Validate DKIM Signing Configuration diagnostic that can be used after initial configuration or when troubleshooting DKIM validation problems. The diagnostic can identify situations where DKIM has not been created, DNS records are incorrect, the configuration exists but is not enabled, or the configuration is operating correctly.
You can also send a test message from the configured domain to an external mailbox and examine the message headers for a valid DKIM result.
The DKIM signature is stored in the DKIM-Signature header, and the d= value identifies the signing domain. How to use your custom domain’s DKIM for email.
Expected result: DKIM signing is enabled for the custom domain and outgoing messages can be authenticated using the DKIM information published in DNS.
Common Problems
DKIM Cannot Be Enabled
Possible cause
The required DKIM CNAME records may be missing, incorrect, or not publicly available.
Solution
Check both CNAME records and confirm that:
- The record names are correct.
- The target values exactly match the values supplied by Microsoft 365.
- Both records exist in the correct DNS zone.
- The records resolve publicly.
Microsoft’s DKIM diagnostic identifies incorrectly or incompletely published CNAME records as a configuration problem.
DKIM Is Configured but Not Enabled
The DKIM configuration can exist without DKIM signing actually being enabled.
Open the DKIM configuration for the domain and confirm that DKIM signing is enabled. Microsoft identifies Created but Not Enabled as a distinct DKIM configuration state.
DKIM DNS Records Are Not Resolving
Check that the records were added to the DNS provider that hosts the domain’s authoritative DNS.
Also verify that the records were created as CNAME records and that the Microsoft-provided values were entered correctly.
DNS records for a domain are maintained where your domain’s DNS is hosted.
Email Is Sent Through a Third-Party Gateway
If outbound email does not go directly through Exchange Online, Microsoft 365 might not be the correct system to perform DKIM signing.
For example, if outbound mail passes through Proofpoint or Mimecast, Microsoft recommends configuring the authentication records according to the third-party provider that handles the outbound mail. [About B2B…nvitations]

Frequently Asked Questions (FAQ)
1. What is DKIM?
DKIM stands for DomainKeys Identified Mail. It digitally signs parts of outgoing email so that receiving systems can use a public key published in DNS to verify the message signature.
2. Does Microsoft 365 require DNS records for DKIM?
Yes. For custom domains, Microsoft 365 uses CNAME records in DNS for the DKIM public keys.
3. Can DKIM be enabled before adding the CNAME records?
The required DNS entries need to be published correctly for the custom-domain DKIM configuration to operate correctly. Microsoft’s diagnostic treats an unpublished or incorrectly published CNAME configuration as an issue requiring correction.
4. Is DKIM enabled for the initial Microsoft 365 domain?
Microsoft states that DKIM signing is enabled by default for the organization’s initial *.onmicrosoft.com domain. Custom domains require their own DKIM signing configuration.
5. How can I check the DKIM configuration using PowerShell?
The Exchange Online Get-DkimSigningConfig cmdlet can display the DKIM signing configuration for the organization’s domains. For example:
Get-DkimSigningConfig -Identity example.com | Format-List
Microsoft documents this command for viewing the detailed DKIM signing policy for a specific domain.

Summary
Enabling DKIM for a Microsoft 365 custom domain requires publishing the Microsoft-provided CNAME records in the domain’s DNS and enabling DKIM signing for the domain. DKIM digitally signs outgoing messages so receiving email systems can validate the message using the corresponding public key published in DNS.
After completing the configuration, verify the DKIM status and test outbound email to confirm that DKIM authentication is working correctly.

Official Documentation
How to use DKIM for email in your custom domain – Microsoft Learn
Having trouble enabling DKIM or configuring email authentication for your Microsoft 365 domain?
The ORYON Support Team can assist with checking Microsoft 365 DKIM configuration, DNS records, and email authentication settings.
For further assistance, include a link to the Oryon Microsoft 365 service/support page here.