Menu
Modern Workplace Blog
  • Home
  • About: Kenneth van Surksum
  • Cookie Policy
Modern Workplace Blog
January 23, 2025January 24, 2025

From SPF to DANE: Securing Microsoft 365 Email Communications

Enhancing the security of your organization’s communication channels is more critical than ever. Building on foundational protocols like SPF, DKIM, and DMARC, you can implement advanced technologies such as IPv6, DNSSEC, STARTTLS, DANE, and RPKI to secure Microsoft 365 email environments, specifically focusing on Exchange Online functionality. These protocols work in tandem to mitigate risks, protect against spoofing and phishing, and ensure the integrity and confidentiality of your email communications. Moreover, implementing these measures increases the chances of email delivery as many receiving email systems evaluate these security configurations to determine the authenticity and trustworthiness of messages.

Why Use SPF, DKIM, and DMARC Together?

SPF (Sender Policy Framework), DKIM (DomainKeys Identified Mail), and DMARC (Domain-based Message Authentication, Reporting, and Conformance) form the foundation of email authentication. SPF ensures only authorized servers can send emails on behalf of your domain, DKIM verifies the integrity of emails in transit using cryptographic signatures, and DMARC provides policies to handle unauthenticated messages while offering reporting capabilities. Together, these protocols prevent email spoofing and phishing attempts, ensuring only legitimate messages reach their destination. For detailed steps on setting up these protocols, see the article below

Did you already enable DKIM and DMARC for your Office 365 domains?

This article contains the following sections:

  • Overview of Advanced Security Protocols
  • Test results before configuration
  • Step-by-Step Instructions for Inbound SMTP DANE
  • Test results after configuration
  • Summary
  • References and Further Reading

Overview of Advanced Security Protocols

IPv6

IPv6 replaces IPv4 with a vastly larger address space, improved routing, and mandatory support for IPsec. These enhancements reduce the risk of IP spoofing and improve packet processing, ensuring robust security for email transmissions.

IPv6 availability within the mx record using mxtoolbox

DNSSEC

DNSSEC adds cryptographic signatures to DNS responses, validating their authenticity and protecting against DNS spoofing. It ensures the integrity of DNS records critical for SPF, DKIM, and DMARC authentication. DNSSEC enhances trust in email authentication protocols by safeguarding the DNS infrastructure from tampering. Importantly, this ensures that receiving systems have confidence in the validity of DNS records, improving email deliverability.

STARTTLS

STARTTLS upgrades plain text email transmissions to encrypted connections using SSL or TLS, protecting sensitive data from interception. While SPF, DKIM, and DMARC handle sender authenticity and message integrity, STARTTLS ensures the confidentiality of email content during transport. Secure email transmissions can help avoid deliverability issues with systems that require encryption for communication.

DANE

DANE binds SSL/TLS certificates to DNSSEC, providing an additional layer of trust. For inbound email, DANE validates the encryption certificates used during email delivery, preventing attacks on the certificate chain. For outbound email, it ensures secure communication with external recipients by validating encryption through TLSA records. DANE complements SPF, DKIM, and DMARC by guaranteeing secure encryption is in place for every email transaction. This additional security reassures receiving systems and can positively impact deliverability.

RPKI

RPKI secures internet routing by authenticating IP prefixes, preventing route hijacking. This ensures that email traffic is sent over authenticated routes, reducing the risk of email delivery disruptions and man-in-the-middle attacks.

Test results before configuration

Before starting the configuration I tested my current configuration at internet.nl, as you can see my configuration is failing IPv6, DNSSEC and STARTTLS and DANE configuration.

email test: itgration.eu before
Email test before enabling advanced security

Step-by-Step Instructions for Inbound SMTP DANE

  1. Verify Prerequisites: Ensure that your domain’s DNS hosting provider supports DNSSEC. Additionally, verify that mail flow is configured correctly for Exchange Online.
  2. Enable DNSSEC: Enable DNSSEC with your domain’s DNS hosting provider to sign DNS records cryptographically. This step is critical to ensure DNS responses are authenticated and protected from spoofing.

Note: If your nameservers are hosted by Microsoft, DNSSEC is not natively supported in most cases. To enable DNSSEC, you may need to transfer DNS hosting back to your domain registrar or a provider that supports DNSSEC configurations.

  1. Update MX Records: Update the MX records of your domain to point to Microsoft’s mx.microsoft subdomains. This change ensures that emails are routed through Microsoft’s secure email infrastructure and will make the mx record available via IPv6,

Use the following PowerShell command in Exchange Online to enable DNSSEC for your domain:

Enable-DnssecForVerifiedDomain -DomainName <DomainName>

Replace <DomainName> with your domain name.
  1. Make sure to update your MX record to the new value in your DNS settings.
  2. Verify that the TLSA record has been created, using the Microsoft Remote Connectivity Analyzer
  3. Enable SMTP DANE using the following command
Enable-SmtpDaneInbound -DomainName <DomainName>
Replace <DomainName> with your domain name.
  1. Test Configurations: Use online validators such as internet.nl or the Microsoft Remote Connectivity Analyzer to confirm that DNSSEC and TLSA records are correctly configured and functional.
  1. Monitor Mail Flow: Continuously monitor the flow of inbound emails to ensure proper delivery and identify any configuration issues.

As an Exchange Online customer, Outbound SMTP DANE with DNSSEC is something that is built for and it’s ON by default for all Exchange Online customers and is used when the destination domain advertises support for DANE. 
 

Test results after Configuration

After implementation we now have a 100% score

Email test after migration

Summary

Enhance your Microsoft 365 email security by integrating IPv6, DNSSEC, STARTTLS, DANE (inbound and outbound), and RPKI with existing SPF, DKIM, and DMARC configurations. These advanced protocols provide robust protection against spoofing, phishing, and data interception. By ensuring the integrity, authenticity, and confidentiality of your email communications, you create a secure environment for your organization. Additionally, these measures increase email deliverability by building trust with receiving email systems.

References and Further Reading

  • Microsoft 365 Documentation on Email Security
  • How SMTP DANE Works
  • DNSSEC Overview and Implementation
  • RPKI Best Practices
  • IPv6 in Email Security
  • Did You Already Enable DKIM and DMARC for Your Office 365 Domains?
  • Microsoft Remote Connectivity Analyzer: Test Input
Tweet
Follow me
Tweet #WPNinjasNL

Continue Reading

← Office 365 Advanced Threat Protection (ATP) deep dive

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Founding member of:

Recent Posts

  • MAM vs. MDM: Choosing the Right Mobile Management Approach
  • Comparing Web Filtering and Security: Microsoft Entra Internet Access (Global Secure Access) vs. Microsoft Defender for Endpoint (MDE)
  • Navigating New Authentication Methods: SMS for Password Reset, Not for MFA
  • From SPF to DANE: Securing Microsoft 365 Email Communications
  • Protecting your Break Glass accounts in Entra now that MFA gets enforced on more and more Admin portals

Books

System Center 2012 Service Manager Unleashed
Amazon
System Center 2012 R2 Configuration Manager Unleashed: Supplement to System Center 2012 Configuration Manager
Amazon
System Center Configuration Manager Current Branch Unleashed
Amazon
Mastering Windows 7 Deployment
Amazon
System Center 2012 Configuration Manager (SCCM) Unleashed
Amazon

Archives

  • February 2025
  • January 2025
  • September 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • September 2023
  • August 2023
  • February 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • May 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • August 2019
  • July 2019
  • November 2016
  • November 2015
  • June 2015
  • May 2015
  • November 2014
  • July 2014
  • April 2014
  • March 2014
  • February 2014
  • January 2014
  • November 2013
  • August 2013
  • April 2013
  • March 2013
  • January 2013
  • December 2012
  • November 2012
  • August 2012
  • July 2012
  • June 2012

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Categories

  • ABM (4)
  • Advanced Threat Protection (4)
  • Announcement (44)
  • Azure (3)
  • AzureAD (73)
  • Certification (2)
  • Cloud App Security (5)
  • Conditional Access (58)
  • Configuration Manager (24)
  • Entra (2)
  • Entra Id (8)
  • Events (14)
  • Exchange Online (9)
  • Identity Protection (5)
  • Intune (27)
  • Licensing (2)
  • Microsoft Defender (1)
  • Microsoft Defender for Endpoint (1)
  • Microsoft Endpoint Manager (35)
  • Mobile Application Management (4)
  • Modern Workplace (74)
  • Office 365 (10)
  • Overview (11)
  • Power Platform (1)
  • PowerShell (2)
  • Presentations (9)
  • Privileged Identity Management (5)
  • Role Based Access Control (2)
  • Security (63)
  • Service Manager (4)
  • Speaking (30)
  • Troubleshooting (4)
  • Uncategorized (11)
  • Windows 10 (15)
  • Windows 11 (5)
  • Windows Update for Business (4)
  • WMUG.nl (16)
  • WPNinjasNL (32)

Tags

#ABM #AzureAD #community #conditionalaccess #ConfigMgr #IAM #Intune #m365 #MEM #MEMCM #microsoft365 #modernworkplace #office365 #security #webinar #wmug_nl ATP authentication strength AzureAD Branding Community Conditional Access ConfigMgr ConfigMgr 2012 Email EXO Identity Intune Licensing M365 MCAS MFA Modern Workplace Office 365 OSD PIM Policy Sets Presentation RBAC roles Security System Center Task Sequence troubleshooting webinar

Recent Comments

  • brc on Protecting your Break Glass accounts in Entra now that MFA gets enforced on more and more Admin portals
  • [m365weekly] #186 – M365 Weekly Newsletter on MAM vs. MDM: Choosing the Right Mobile Management Approach
  • Dean Gross on Comparing Web Filtering and Security: Microsoft Entra Internet Access (Global Secure Access) vs. Microsoft Defender for Endpoint (MDE)
  • nikhil tech on Protecting your Break Glass accounts in Entra now that MFA gets enforced on more and more Admin portals
  • Kenneth on Comparing Web Filtering and Security: Microsoft Entra Internet Access (Global Secure Access) vs. Microsoft Defender for Endpoint (MDE)

This information is provided “AS IS” with no warranties, confers no rights and is not supported by the author.

Copyright © 2021 by Kenneth van Surksum. All rights reserved. No part of the information on this web site may be reproduced or posted in any form or by any means without the prior written permission of the publisher.

Shorthand: Don’t pass off my work as yours, it’s not nice.

©2025 Modern Workplace Blog | Powered by WordPress and Superb Themes!
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT