Evaluating MTA Strict Transport Security
Should your organisation adopt MTA-STS? This detailed evaluation explains how SMTP Strict Transport Security works, what it protects, where it falls short, how it compares with DANE, and how to roll it out safely.

Email is one of the oldest services on the internet, and in many ways it still behaves like one. When your company sends a message to a customer, the message usually passes through several mail servers, and each handoff happens over a protocol called SMTP, short for Simple Mail Transfer Protocol. SMTP was designed in an era when the network was small and trusted, and as Microsoft’s own engineers put it, the protocol is not secure and was not designed to be. Encryption was added later, yet it was added in a way that leaves an important gap. MTA Strict Transport Security, known as MTA-STS, was created to close that gap. This article evaluates it in practical terms. It explains the problem, shows how the mechanism works, weighs its strengths against its limits, compares it with its main alternative, DANE, and offers a careful rollout plan. It is written for IT managers, system administrators, small business owners and decision makers who want to understand the trade offs, and no deep security background is needed.
The problem MTA-STS is trying to solve
To see why MTA-STS exists, you need to understand how email servers normally secure their conversations. When one mail server connects to another, it can ask to upgrade the connection to an encrypted one using a command called STARTTLS. The upgrade is optional and is usually described as opportunistic encryption. If both servers support it, they encrypt the session. If not, they carry on in plain text. This arrangement exists partly because the standard behind it, RFC 3207, accepts that publicly reachable email servers must remain reachable even without TLS encryption, otherwise older or poorly configured servers would be cut off.
The weakness is easy to picture. An attacker who sits between two mail servers, for example on a compromised network path, can interfere with the conversation. By stripping the STARTTLS offer from the server’s reply, the attacker can make the sender believe that encryption is unavailable, so the sender falls back to plain text and the attacker can read or alter the mail. This is called a downgrade attack. A second attack targets DNS. Mail is routed according to MX records, which name the servers that accept mail for a domain. If an attacker can forge or poison those records, the sender may deliver mail to a server the attacker controls. A third weakness is that, in many opportunistic setups, the sending server does not properly check the certificate presented by the receiving server, so even an encrypted session may be with the wrong party. In short, standard SMTP encryption protects against casual eavesdropping but not against an active attacker, and the sender has no way to know that the receiving domain wants encryption to be mandatory.
What MTA-STS is
MTA-STS is a standard published as RFC 8461. Its idea is simple: let the receiving domain announce a policy that says, in effect, “mail for us must be delivered over validated TLS to these specific servers, and if that cannot be done, do not deliver it in plain text”. Sending servers that support the standard read this policy, remember it, and enforce it. The policy is published through the web, using HTTPS, and a small DNS record signals that a policy exists. Because the policy travels over HTTPS and is protected by an ordinary web certificate, an attacker who is tampering with email traffic or SMTP connections cannot easily forge it.
A useful analogy is a shop that puts up a notice saying “deliveries accepted only at the main gate, only with a signed delivery note”. A driver who has read the notice will refuse to hand over goods at any other door, even if someone nearby offers to take them. The notice itself is displayed in a place that is hard to fake, and the driver remembers it for a while, so a later attempt to remove it does not fool them.
How the mechanism works
There are three moving parts. The first is a DNS TXT record published at a name starting with _mta-sts under your domain. Microsoft’s documentation shows an example record of the form v=STSv1; id=20220101080000Z, where the identifier is simply a string that changes whenever the policy changes. When a sender sees the record, it knows the domain has a policy. The identifier tells it whether the cached copy is still current.
The second part is the policy file itself. The sender fetches it over HTTPS from a special host name, mta-sts followed by your domain, at the path /.well-known/mta-sts.txt. The file is plain text and contains four main fields. The version field is STSv1. The mode field is one of three values: none, testing or enforce. The mx field lists the permitted mail server names, and it can appear several times. The max_age field says how many seconds the sender may cache the policy. As an illustration, Microsoft publishes its own policy with the mode set to enforce, a permitted server pattern covering its Exchange Online mail protection hosts, and a cache period of 604,800 seconds, which is one week.
The third part is the sender’s behaviour. In enforce mode, the sending server connects to the receiving server, requires STARTTLS, requires TLS version 1.2 or higher, and validates the certificate. Under RFC 8461, validation means the certificate chains to a trusted root authority, has not expired, and carries a name that matches the server’s host name. The server must also be one of the hosts listed in the policy. If any check fails, the sender does not deliver the message, and instead queues it and retries. In testing mode, the policy is treated as inactive for delivery, but senders can still report failures, which is why testing mode only makes sense when reporting has been set up. In none mode, the policy is effectively switched off.
Microsoft’s description of how Exchange Online behaves shows what failure looks like to a sender. Messages can be rejected with errors such as one saying that STARTTLS is required by the recipient domain’s policy, one saying that TLS 1.2 or higher is required, one saying the MX hosts failed validation, and one saying the remote certificate failed validation. Understanding these messages helps administrators diagnose delivery problems after enforcement begins.
The companion tool: TLS-RPT
MTA-STS has a blind spot, and a second standard fills it. When enforcement blocks a sender from delivering to you, you may never hear about it, because the failure happens on the sender’s side. Mail that quietly does not arrive is the worst kind of failure. TLS-RPT, defined in RFC 8460, solves this. You publish a DNS TXT record at the name _smtp._tls under your domain, with a value such as v=TLSRPTv1; rua=mailto:address. Sending servers that support the standard then send you daily reports in JSON format, usually compressed, listing which policy they evaluated and what failed and why. These reports are meant to be parsed by software, so pointing them at a person’s ordinary inbox is a poor idea. TLS-RPT is not tied to MTA-STS alone, since it also covers DANE and sessions where no policy was found. Any serious evaluation of MTA-STS should treat TLS-RPT as a required companion and not an optional extra, because it is the main way to see whether the policy helps or harms you.

What MTA-STS does well
The first strength is that it gives receiving domains a way to demand encryption and validated destinations. That directly counters the downgrade and MX redirection attacks described earlier. A sender that honours your policy will not fall back to plain text just because an attacker interfered.
The second strength is that it does not need DNSSEC. DNSSEC is a set of extensions that digitally sign DNS records, and it is valuable, yet it is still unevenly deployed and can be difficult to operate. MTA-STS relies instead on the existing web certificate system, which most organisations already understand. For many small and medium organisations, this makes adoption realistic.
The third strength is that it has a safe on ramp. The testing mode lets you publish a policy and collect reports without risking mail delivery, so you can find problems before you enforce anything. DANE, its main alternative, has no equivalent built in testing mode.
The fourth strength is ecosystem support, and this is where MTA-STS has an advantage. Google’s mail service relies on MTA-STS and does not use DANE, according to community documentation, and a comparison from a DNS service provider notes that sending services such as Gmail and Yahoo use MTA-STS and not DANE. Microsoft announced in February 2022 that all outgoing messages from Exchange Online are covered by MTA-STS validation, that the feature is always on, and that administrators need not do anything for it to work on outbound mail. In March 2026, Microsoft also added connector modes that give administrators explicit control: an opportunistic default that attempts DANE and MTA-STS validation but still delivers if the destination does not support them, a mandatory mode that applies to DANE only, and a none mode that disables validation for particular partner scenarios. In other words, if your domain publishes an MTA-STS policy, a very large share of the world’s business and personal email is sent by systems that will respect it.
Where MTA-STS falls short
A fair evaluation must give the limitations equal weight. The best known is trust on first use, often shortened to TOFU. The first time a sender contacts your domain, it has no cached policy. If an attacker blocks or interferes with that first HTTPS request, the sender will not learn that a policy exists and may deliver the message without protection. Once a sender has fetched and cached your policy, the protection holds for the cache period, and this is why a longer max_age is valuable once you are confident in enforce mode. Still, the first contact and any contact after the cache expires remain exposed to a determined attacker. DANE, which anchors trust in signed DNS, avoids this weakness.
The second limitation is dependence on the public web certificate system. A sender validating your mail servers must trust the full set of public certificate authorities, and critics point out that this includes authorities that some organisations might prefer not to trust. A forged or mistakenly issued certificate from any trusted authority could, in theory, satisfy the check. A discussion of the standard from researchers promoting DANE notes that the RFC itself acknowledges MTA-STS is less secure than DANE for this reason. That argument is made by advocates of a rival standard, so it should be weighed as one side of a technical debate, yet the underlying facts about TOFU and the certificate authority trust model are widely accepted.
The third limitation is that MTA-STS protects only the hop between mail servers, and only for mail sent to your domain. It does not encrypt messages end to end. Once a message arrives, it sits on your server in readable form, and any later hop to another provider is a separate matter. It also does not protect mail that you send to others, since that depends on whether the recipient’s domain publishes a policy and whether your own sending server validates policies. Many organisations forget this distinction. Publishing a policy protects inbound mail. Protecting outbound mail requires a sending system that checks other domains’ policies.
The fourth limitation is that it does not replace other email defences. It does nothing about phishing, spoofed senders or compromised accounts. SPF, DKIM and DMARC address sender authenticity, while MTA-STS addresses the security of the delivery path. Treat them as complementary layers.
The fifth limitation is operational risk. Because enforce mode blocks delivery when checks fail, a mistake can cause genuine mail to bounce or be delayed. The most common causes are an expired certificate on a mail server, a new mail server that was never added to the policy, a policy web server that becomes unreachable, or a mismatch between the policy’s host list and the certificate names. Microsoft’s own guidance cautions that wildcard patterns shown in its Exchange Online examples are specific to that service and should not be copied as general guidance, which is a reminder that copying someone else’s policy without understanding it is risky. Microsoft also notes that Exchange Online cannot host customers’ policies, so a customer using that service must publish its own policy using hosting of its choice.
MTA-STS compared with DANE
DANE, specified for SMTP in RFC 7672, takes a different approach. Instead of publishing a policy on a web server, the domain publishes TLSA records in DNS, signed with DNSSEC, that identify the exact certificate or key each mail server should present. Because the records are signed, a sender can verify them from the very first connection, which removes the TOFU weakness, and the trust does not depend on public certificate authorities. The price is that DNSSEC must be enabled across the relevant domains, and DNSSEC errors can themselves cause delivery failures if poorly managed.
In practice, the two standards serve different parts of the market. DANE offers stronger security on paper, and a response from DANE advocates in 2021 claimed that DANE was deployed for over 2.8 million domains, roughly a thousand times more than MTA-STS at the time. That figure is old and comes from a partisan source, so treat it as indicative of history, not today’s numbers. MTA-STS, however, is the mechanism that the largest consumer mail provider relies on, and it is simpler for organisations that have not deployed DNSSEC. Microsoft has been supporting both, and said in April 2026 that it would release a DNSSEC enablement wizard in Exchange Admin Center in the third quarter of 2026 to ease adoption of SMTP DANE. A comparison published in 2026 recommends running both when your infrastructure allows, because MTA-STS covers senders that do not support DANE, while DANE covers the first contact weakness. A mailing list commentator makes a related point from the small site perspective, saying small domains are often treated with suspicion unless they implement every available protection and so may have to do both. That view is opinion, though it reflects a practical truth: the safest posture is layered.
A framework for evaluating whether to adopt it
Rather than asking whether MTA-STS is good or bad, it is more useful to ask whether it fits your situation. Consider five questions.
First, how sensitive is your mail? A school, a law firm, a clinic, a bank, an NGO handling donor records or a business exchanging contracts and invoices has more to lose from interception and tampering than a hobby site. Organisations in Ghana that handle personal data also have obligations under laws such as the Data Protection Act, and protecting data in transit is part of showing reasonable care.
Second, where is your mail hosted? If you use a large hosted service with standard mail server names and certificates, MTA-STS is relatively easy, because the provider maintains the certificates and you mainly maintain the policy and DNS records. If you run your own mail servers, you take on more responsibility, particularly for certificate renewal and for keeping the policy aligned with your MX records.
Third, who sends you mail? If much of your inbound mail comes from large providers that support MTA-STS, the protection is real. If it comes mostly from small servers that do not validate policies, the benefit is smaller, though not zero.
Fourth, what is your capacity to operate it? MTA-STS needs a small web server or hosting arrangement with a valid certificate for the mta-sts host name, DNS changes, monitoring, and someone who reads TLS-RPT reports. Some DNS and email service providers offer to host the policy for you, which lowers the burden, but you should still understand what is being published in your name.
Fifth, can you tolerate delayed mail during a mistake? Enforce mode is meant to refuse insecure delivery, so you must be comfortable with the possibility that a misconfiguration briefly delays mail, and you must have monitoring and a rollback plan.
For most organisations that handle confidential or regulated information and use mainstream mail providers, the evaluation will favour adoption, provided it is done in stages. For very small organisations with no technical support and low sensitivity, the effort may be better spent first on basics such as strong passwords, multi factor authentication, SPF, DKIM and DMARC, and then returning to MTA-STS.
A safe rollout plan
Start by taking stock. List every mail server that receives mail for your domain, including backup servers and any third party filtering service, and confirm that each presents a valid, unexpired certificate whose name matches its host name and supports TLS 1.2 or higher. Many failures come from forgotten secondary servers.
Next, publish TLS-RPT first, so that reporting is in place before any policy exists. Set up a mailbox or, better, a service that can parse the compressed JSON reports.
Then set up hosting for the policy. This means a host name beginning with mta-sts under your domain, a valid HTTPS certificate for it, and a plain text file at the well known path. Write the policy with mode testing, list your permitted mail servers carefully, and choose a modest cache period at first, such as one day, which is 86,400 seconds. Publish the DNS TXT record with an identifier, and remember to change the identifier every time you change the policy, because senders use it to detect updates.
Run in testing mode for several weeks and read the reports. Look for failures from legitimate senders, certificate name mismatches, servers missing from the policy and any sender that cannot negotiate TLS 1.2. Fix each cause. Only when reports are clean should you change the mode to enforce, and update the identifier when you do. After a period of stable enforcement, lengthen the cache period gradually, to a week, then a month and eventually longer, since longer caching reduces the exposure caused by trust on first use. The standard allows caching for up to about a year, and many organisations settle on a few weeks to a few months.
Plan for change management. Before adding or replacing a mail server, update the policy first and wait for the old cached policy to age out, or keep the change within the permitted patterns. Before renewing certificates, confirm that names still match. Add certificate expiry alerts for both your mail servers and your policy host. If you must roll back, set the mode to none, update the identifier and wait for the previous cache period to pass, since senders may continue to enforce the old policy until it expires. That delay is another reason to begin with short cache periods.
Measuring whether it is working
An evaluation does not end at deployment. Watch three things. First, delivery health: track bounce messages, delays and any complaints from partners. Second, the TLS-RPT data: what share of inbound sessions use validated TLS, which senders fail and why, and whether failures rise after a change. Third, coverage: check periodically with an online MTA-STS and DANE testing tool that your records and policy are visible and correct from outside your network. A policy that exists but is malformed gives a false sense of safety. Reviewing these indicators monthly is a sensible habit for a small team, and quarterly is the minimum.
Final thoughts
MTA-STS is not a complete answer to email security, and it was never meant to be. It is a focused, practical fix for one specific weakness: the fact that standard SMTP encryption can be quietly stripped away or redirected by an attacker in the middle. It gives your domain a way to say that encryption and validated destinations are required, it works without DNSSEC, it has a testing mode, and it is honoured by major providers including Google and Microsoft’s Exchange Online. Its limits are real. It is trust on first use, it relies on public certificate authorities, it protects only server to server delivery of inbound mail, and mistakes in enforce mode can delay legitimate messages.
For most organisations that care about the confidentiality and integrity of their email, the sensible conclusion is to adopt it carefully: set up TLS-RPT first, begin in testing mode, fix what the reports reveal, move to enforce, lengthen the cache period over time, and consider adding DANE where DNSSEC is available. Like every security control, it works best as one layer among several, supported by monitoring and by people who understand what it does. Standards and provider features are changing, so confirm current details in the official specifications and your provider’s documentation before you act.












