Ensuring the security and authenticity of your emails is crucial for protecting your organization from phishing and spoofing attacks. DKIM (DomainKeys Identified Mail) and DMARC (Domain-based Message Authentication, Reporting & Conformance) are two essential protocols for email security. This guide will walk you through the steps to add DKIM and DMARC for your onmicrosoft.com domain in Microsoft 365.
Step-by-Step Guide to Add DKIM and DMARC for onmicrosoft.com Domain in Microsoft 365
Prerequisites
Before you start, ensure you have the following:
- Admin access to your Microsoft 365 account.
- Access to your DNS hosting provider to update DNS records.
Step 1: Enable DKIM in Microsoft 365
1.1 Access the Microsoft 365 Admin Center
- Open your web browser and go to the Microsoft 365 Admin Center.
- Sign in with your admin credentials.
1.2 Navigate to DKIM Settings
- In the left-hand navigation pane, select Show all to expand the menu.
- Go to Security and then select Threat management.
- Click on Policy and choose DKIM under the Email authentication section.
1.3 Configure DKIM for your Domain
- Select your onmicrosoft.com domain from the list.
- Click Enable to start the DKIM configuration process.
- Microsoft 365 will prompt you to add CNAME records to your DNS provider. Note down the provided CNAME values.
Step 2: Add DKIM CNAME Records to Your DNS Provider
- Log in to your DNS hosting provider’s portal.
- Navigate to the DNS management section for your onmicrosoft.com domain.
- Add two CNAME records using the values provided by Microsoft 365:
- Record 1:
- Name:
selector1._domainkey
- Type:
CNAME
- Value:
selector1-yourdomain-com._domainkey.yourdomain.onmicrosoft.com
- Name:
- Record 2:
- Name:
selector2._domainkey
- Type:
CNAME
- Value:
selector2-yourdomain-com._domainkey.yourdomain.onmicrosoft.com
- Name:
- Record 1:
- Save the changes to your DNS records.
Step 3: Verify and Enable DKIM in Microsoft 365
- Return to the DKIM settings in the Microsoft 365 Admin Center.
- Click Refresh to check the status of the CNAME records.
- Once the records are verified, click Enable to activate DKIM for your onmicrosoft.com domain.
Step 4: Configure DMARC for Your Domain
4.1 Create a DMARC Record
- In the DNS management section of your DNS hosting provider, create a new TXT record with the following details:
- Name:
_dmarc
- Type:
TXT
- Value:
v=DMARC1; p=none; rua=mailto:[email protected]; ruf=mailto:[email protected]; pct=100; sp=none; aspf=r;
yourdomain.com
with your actual domain and modify the email addresses as needed for your reporting preferences. - Name:
- Save the changes to your DNS records.
Step 5: Monitor and Adjust DMARC Policy
- Allow some time for the DNS changes to propagate.
- Monitor the reports sent to the email addresses specified in the DMARC record.
- Based on the reports, adjust your DMARC policy from
p=none
top=quarantine
orp=reject
to enforce stricter handling of unauthenticated emails.
Additional Tips
- Testing: Start with a
p=none
policy to monitor email flow without impacting delivery. - Incremental Enforcement: Gradually move to stricter policies (
quarantine
andreject
) as you gain confidence in your email authentication setup. - Regular Monitoring: Regularly review DKIM and DMARC reports to ensure ongoing email security.
Conclusion
By following these steps, you can enable DKIM and DMARC for your onmicrosoft.com domain in Microsoft 365, enhancing the security and integrity of your organization’s email communications. If you have any questions or need further assistance, feel free to leave a comment below.