TLSA Record Explained: How SPF, DNSSEC & DANE Strengthen Email Security
Quick Answer
A TLSA record is a DNS record used with DANE and DNSSEC to verify an email server's TLS certificate during SMTP. Combined with SPF, DKIM, and DMARC, it strengthens email authentication, prevents spoofing, and protects encrypted email delivery.
What TLSA Records Are and How They Fit Into Email Security
Email security relies on multiple technologies that protect different stages of mail delivery. Most administrators are familiar with Sender Policy Framework (SPF) for preventing sender spoofing, but secure email transport requires additional protections. DNSSEC ensures DNS records cannot be tampered with, while DANE uses TLSA records to verify mail server certificates during encrypted SMTP connections.
Together, SPF, DNSSEC, and DANE create a layered security model that protects email from spoofing, DNS manipulation, and man-in-the-middle attacks. This guide explains how these technologies work together, when you need them, and why SPF remains the foundation of email authentication.
Teams building a broader Email Security program should understand that TLSA records do not replace SPF, DKIM, or DMARC. Instead, they strengthen the transport layer of email authentication and protect the mail flow between sending and receiving systems.
How a TLSA record is structured
A TLSA record is published in public DNS using a specific owner name format:
_<port>._<protocol>.<hostname>
For SMTP over port 25, a TLSA record for a host might look like:
25.tcp.mail.example.com
That hostname is usually derived from the domain’s MX record. A sending server performs DNS lookups for the recipient domain’s MX record, then queries the TLSA record associated with the selected mail exchanger.

The four core TLSA fields
A TLSA record contains four key parts:
- Certificate usage field
- Selector field
- Matching type field
- Certificate association data
Together, these fields tell the sending Mail Transfer Agent what certificate material to expect during Transport Layer Security negotiation.
Usage values: PKIX and DANE modes
The certificate usage field defines how certificate validation should work. Common values include:
- PKIX-TA: Uses a Public CA trust anchor with the normal X.509 trust chain
- PKIX-EE: Matches the end-entity certificate while still relying on PKIX validation
- DANE-TA: Uses a DNSSEC-protected certificate trust anchor
- DANE-EE: Matches the end-entity certificate directly through DANE
For SMTP, DANE-EE is widely used because it can reduce dependence on a traditional Public CA while still providing strong protection through DNSSEC.
Selector and matching type
The selector field specifies whether the TLSA record applies to the full X.509 certificate or only the Subject Public Key Info. The matching type field defines whether the certificate association data is stored in full or as a digest, such as a SHA-256 hash or SHA-512 hash.
The resulting Certificate Association Data is what the sending server compares against the certificate presented during the TLS handshake.
SPF Records Explained: Verifying Authorized Sending Servers
SPF, or Sender Policy Framework, is an email authentication mechanism that allows a domain owner to publish which servers are authorized to send mail for that domain. While a TLSA record protects the encrypted SMTP connection, SPF focuses on email spoofing prevention by checking whether the sending IP address is allowed.
A typical SPF record is a TXT record in DNS. For example:
v=spf1 include:spf.protection.outlook.com -all
For Microsoft 365 or Office 365, organizations often include Microsoft’s SPF mechanism to authorize Exchange Online to send on their behalf.
How SPF works during SMTP protocol checks
During the SMTP protocol transaction, the receiving server evaluates the envelope sender domain. It performs a DNS query to retrieve the SPF policy and checks whether the connecting IP address is authorized.
If the connecting server is not listed, the message may fail SPF. Depending on the receiving system’s policies and the sender’s DMARC configuration, this may contribute to quarantine, rejection, or an NDR (Non-Delivery Report).
SPF supports email authentication, but it has limits. It does not validate the visible From header by itself, and forwarding can break SPF alignment unless carefully handled.
SPF alongside DKIM and DMARC
SPF is strongest when combined with DomainKeys Identified Mail, commonly known as DKIM, and Domain-based Message Authentication Reporting and Conformance, or DMARC. SPF verifies authorized infrastructure, DKIM uses public key cryptography to sign messages, and DMARC tells receivers how to handle alignment failures.
In this layered model, SPF helps stop email spoofing, DKIM protects message integrity, and DMARC provides a reporting and enforcement framework. DANE and a TLSA record then add protection for the transport path itself.
Managing SPF Records Efficiently
As organizations adopt Microsoft 365, Google Workspace, Amazon SES, SendGrid, HubSpot, Mailchimp, and other email platforms, SPF records become increasingly difficult to manage. Multiple include mechanisms, DNS lookup limits, and changing sender infrastructure can lead to authentication failures if records are not maintained.
AutoSPF helps simplify SPF management by identifying unnecessary includes, keeping records within DNS lookup limits, and making it easier to maintain accurate SPF policies as email infrastructure evolves. While TLSA, DNSSEC, and DANE enhance transport security, maintaining a healthy SPF record remains a foundational step in protecting email authentication.
DNSSEC as the Trust Layer: Protecting DNS Records From Tampering
DNSSEC is the foundation that makes DANE trustworthy. Without DNSSEC, an attacker could tamper with the DNS response for an MX record or TLSA record and redirect email to a hostile server. With DNSSEC, DNS data is cryptographically signed so a validating resolver can detect modification.
This is critical because DANE relies on DNS as a source of certificate truth. If the underlying DNS infrastructure is not protected, the TLSA record cannot provide reliable certificate validation.
Why DNSSEC matters for email authentication
Email depends heavily on DNS. A receiving system’s MX record tells other domains where to send messages. SPF, DKIM, DMARC, MTA-STS, and DANE all rely on DNS-based policies or keys. That makes the integrity of DNS infrastructure central to modern email authentication.
DNSSEC protects these resource records through digital signatures. When a domain uses zone signing, each signed record can be validated back through a chain of trust to the DNS root.
Recursive resolver validation
A validating recursive DNS resolver checks DNSSEC signatures before returning answers to the sending system. If validation fails, the resolver treats the data as bogus rather than trustworthy.
This protects against forged DNS responses, poisoned caches, and other attacks on public DNS. In the context of man-in-the-middle attacks, DNSSEC helps prevent attackers from substituting a fake MX record, malicious TLSA record, or downgraded DNS response.
DANE and TLSA in Practice: Binding Certificates to Domains
DANE is defined for SMTP in RFC 7672, published by the Internet Engineering Task Force (IETF). It extends Transport Layer Security by using DNSSEC-protected TLSA records to authenticate the receiving mail server’s certificate.
With DANE, a sending server first looks up the recipient domain’s MX record. It then checks whether the MX host has a valid TLSA record. If the TLSA record exists and is DNSSEC validated, the sender uses it during the TLS handshake to confirm that the certificate presented by the remote server is the expected one.
How DANE changes SMTP protocol behavior
Traditional SMTP with opportunistic TLS encrypts when possible but may continue without strong identity verification if certificate validation fails. DANE changes that behavior. If DANE is present and valid, the sending server must enforce the TLSA record. If the certificate does not match, the sender should treat it as an SMTP DANE failure and defer or fail delivery rather than risk interception.
That is how DANE helps prevent man-in-the-middle attacks against the SMTP protocol. The attacker cannot simply present another certificate unless it matches the DNSSEC-protected TLSA record.
DANE, MTA-STS, and Microsoft environments
MTA-STS, defined in RFC 8461, is another transport security standard. It lets a domain publish a domain policy requiring TLS for inbound mail. Unlike DANE, MTA-STS does not require DNSSEC; it relies on HTTPS policy hosting and Web PKI certificate validation.
Microsoft supports transport security improvements across Exchange Online, and administrators may encounter DANE, MTA-STS, and TLS reporting guidance in the Microsoft Tech Community or product documentation. In a Microsoft 365 tenant, an IT Pro may manage an Accepted Domain in the Microsoft 365 Admin Center, verify domain status, and use Exchange Online PowerShell or PowerShell to inspect mail settings.
Administrators may also test connectivity with tools such as Microsoft Remote Connectivity Analyzer. Example lab domains such as Contosotest.com, routing names such as Mx.microsoft, and older infrastructure like Windows Server 2012 R2 may appear in documentation or migration scenarios, but production DANE depends on correct DNSSEC, MX, TLS, and certificate configuration at the authoritative DNS provider or DNS registrar.
How SPF, DNSSEC, and DANE Work Together to Strengthen Email Authentication
SPF, DNSSEC, and DANE solve different problems, but together they create a stronger email authentication and transport security model.
- SPF answers the question: “Is this sending server authorized to send for this domain?”
- DNSSEC answers the question: “Can I trust the DNS records I received?”
- DANE answers the question: “Does this receiving mail server’s TLS certificate match the DNSSEC-protected TLSA record?”
When combined, these controls improve both sender validation and transport protection. SPF helps with email spoofing prevention, DNSSEC secures the DNS infrastructure, and DANE uses the TLSA record to strengthen Transport Layer Security for SMTP delivery.

Layered protection across mail flow
A typical secure mail flow might look like this:
- The sending server queries DNS for the recipient domain’s MX record.
- The DNSSEC-validating resolver confirms that the MX record is authentic.
- The sender looks up the TLSA record for the MX host.
- DNSSEC validates the TLSA record.
- The sender opens an SMTP connection and negotiates Transport Layer Security.
- The remote server presents an X.509 certificate.
- The sender compares the certificate or Subject Public Key Info against the TLSA record.
- Separately, the receiver checks SPF, DKIM, and DMARC for sender identity and policy alignment.
This layered approach reduces the risk of man-in-the-middle attacks, unauthorized sending, certificate substitution, and DNS tampering.
Operational considerations for administrators
Administrators should avoid publishing a TLSA record until DNSSEC is correctly deployed and monitored. Broken DNSSEC can cause delivery failures, and an incorrect TLSA record can trigger an SMTP DANE failure. Likewise, if an organization changes certificates but forgets to update the TLSA record, legitimate email delivery may be interrupted.
For resilient routing, some domains use more than one MX record, including a fallback MX record. Each MX host that supports DANE needs its own accurate TLSA record. If one MX record is DANE-enabled and another is not, the organization should understand how sending systems will evaluate policy and routing.
SPF also requires ongoing maintenance. Cloud senders, marketing platforms, helpdesk systems, and Microsoft Exchange Online services must be included properly. Overly broad SPF policies weaken protection, while missing senders can cause authentication failures.

Practical implementation checklist
A practical deployment plan should include:
- Confirm the domain’s authoritative DNS provider supports DNSSEC and TLSA resource records.
- Enable DNSSEC with proper zone signing and validate the chain of trust.
- Publish accurate MX record values before adding DANE.
- Generate the TLSA record from the active X.509 certificate or Subject Public Key Info.
- Use a SHA-256 hash for common TLSA deployments unless a specific standard requires otherwise.
- Maintain SPF for all authorized sending platforms, including Exchange Online where applicable.
- Align SPF with DKIM and DMARC to strengthen email authentication.
- Monitor for delivery issues, certificate rotations, domain status changes, and NDR events.
- Compare DANE with MTA-STS requirements where both email security standards apply.
SPF, DNSSEC, TLSA, and DANE each protect different parts of email communication. SPF authorizes sending servers, DNSSEC protects DNS records from tampering, and DANE uses TLSA records to verify mail server certificates during encrypted SMTP delivery. Together with DKIM and DMARC, they create a layered defense that improves email authentication, transport security, and protection against spoofing and interception.
General Manager
Founder and General Manager of DuoCircle. Product strategy and commercial lead for AutoSPF's 2,000+ customer base.
LinkedIn Profile →