Email security
Email security is becoming more and more important, because email is still one of the main ways attackers try to get access to organizations.
Attackers know that email can be a very direct route to sensitive data, systems, and sometimes even privileged access. This often happens through users who are not aware of the risks, or who accidentally click something, share information, or approve access they should not.
To reduce the most basic risks, I’ve created a dedicated category with essential email security settings that should be applied to every domain we own. This also includes domains that are not actively used for sending or receiving email, because attackers can still abuse those domains for spoofing or impersonation.
In the pages in this category, I dive into how to configure different security mechanisms to enhance your email security, get the lowest amount of possible messages marked as spam and minimize the risk of your domain(s) being spoofed in various attacks happening every minute of the day.
Check you domains’ email security posture
To check your domains’ email security posture based on configurations, I have made the DNS MEGAtool where you get an overview of the configuration within seconds.
Configure on any domain
The underlying security mechanisms must be configured on any domain you own in my opinion. Most companies have various stale/stand-by domains. Even there you should configure at least the basics. This will help you prevent spoofing and similar attacks.
1. SPF record
On all your domains, make sure you use an SPF record with a Hardfail policy active. If having stale/stand-by domains, configure the following:
v=spf1 -allThis says that no entity is trusted to send through your domain. Without this record, every entity on the internet is possibly trusted as you did not release any list of trusted senders. This depends on the configuration of recipients.
To configure SPF records for active domains, refer to my SPF guide:
SPF record configuration guide
2. DMARC record
On all your domains, make sure you use an DMARC record with a reject policy active. If having stale/stand-by domains, configure the following:
v=DMARC1; p=reject;This will ensure that your domain is not available for spoofing anymore, as you released a policy that says: “If this domain is being used outside of my SPF and DKIM mechanisms, reject the email messages”.
To configure DMARC records for active domains, refer to my DMARC guide:
DMARC record configuration guide
Configure on sending/receiving domains
These records only have to be configured on domains where you send and receive email messages. They are all related to sending and receiving email messages.
3. DKIM record
Configure DKIM records for every service that sends email on your domain. Refer to my setup guide on to how to configure this and how DKIM helps you preventing man in the middle attacks by email.
DKIM record configuration guide
4. TLS-RPT record
Configure a TLS-RPT record to receive TLS deliverability reports by senders to your domain to detect possible email deliverability problems before they cost you customers and possible projects.
TLS-RPT record configuration guide
5. MTA-STS record
Configure a MTA-STS record including policy to
MTA-STS record configuration guide
6. SMTP DANE (supported services only)
If using Microsoft 365, configure SMTP DANE to further increase email security by leveraging the DNSSEC protocol.
SMTP DANE record configuration guide
What is TLS-RPT and how to configure
Monday, June 01, 2026 in Email security
Categories:
6 minute read
What is TLS-RPT TLS-RPT stands for SMTP TLS Reporting. It is an email security reporting mechanism that gives you reports about TLS encryption problems for incoming email to your domain. The main goal is simple: it helps you see if other mail servers …
What is MTA-STS and how to use it to protect your email flow
Thursday, January 08, 2026 in Email security
Categories:
12 minute read
Requirements Around 30 minutes of your time Access to your domains’ DNS hosting to create DNS records An Azure Subscription if you want to publish your policy with a Static Web App A Github account if you use this option An Azure Subscription …
Enhance email security with SPF/DKIM/DMARC
Monday, June 16, 2025 in Email security
Categories:
12 minute read
Microsoft announced that starting from May 5, 2025: SPF, DKIM and DMARC will become mandatory for inbound email delivery. Not configuring all three can result in your emails not being delivered correctly. These 3 techniques are: SPF: Sender Policy …
Configure DNSSEC and SMTP DANE Microsoft 365
Thursday, October 31, 2024 in Email security
Categories:
6 minute read
Domain Name System Security Extensions (DNSSEC) DNSSEC is a feature where a client can validate the DNS records received by a DNS server to ensure a record is originated from the DNS server and not manipulated by a Man in the Middle attack. DNSSEC is …
