What is MTA-STS and why does it matter

AnubisNetworks By AnubisNetworks • August 13, 2025

The email security landscape is increasingly shaped by robust protocols for authentication, data protection, and secure communication. Among these, MTA-STS is emerging as a critical standard, strengthening the enforcement of encrypted channels for email delivery. 

MTA-STS (Mail Transfer Agent Strict Transport Security) is a security protocol for email that ensures emails sent to your domain are transmitted over encrypted connections.

While related to web security settings like HSTS, MTA-STS is specifically designed for email servers, helping to protect against attackers who might try to intercept or tamper with email in transit..

 

Why does it matter?

  • It requires sending email servers to use secure (TLS) connections when delivering messages to your domain.
  • If a secure connection cannot be established, the message delivery is halted—helping to prevent downgrade and man-in-the-middle attacks.
  • It adds an extra layer of assurance on top of traditional email authentication protocols, making it harder for attackers to exploit email delivery weaknesses.

How to configure it?

Configuring MTA-STS (Mail Transfer Agent Strict Transport Security) enhances your domain’s email security by enforcing encrypted connections for incoming emails. H

 
1. Create an MTA-STS Policy File:

Draft a text file named mta-sts.txt with the following content:

  • version: STSv1
  • mode: enforce
  • mx: mail.yourdomain.com
  • max_age: 86400
  • version: Specifies the MTA-STS version.
  • mode: Set to enforce to require strict compliance.
  • mx: Lists your mail servers (MX records).

max_age: Defines the policy’s validity period in seconds (e.g., 86400 seconds equals one day).

 

2. Host the Policy File

Place the mta-sts.txt file on a web server accessible via HTTPS at:
https://mta-sts.yourdomain.com/.well-known/mta-sts.txt
Ensure the subdomain mta-sts.yourdomain.com is set up with an SSL/TLS certificate to serve the policy securely.

 


3. Publish a DNS TXT Record:

Add a DNS TXT record to signal the presence of your MTA-STS policy:

  • Name: _mta-sts.yourdomain.com
  • Type: TXT
  • Value: v=STSv1; id=20250813;
  • v: Indicates the MTA-STS version.
  • id: A unique identifier for the policy; update this value whenever you change the policy to prompt mail servers to fetch the latest version.

4. Verify Your Configuration:


Use online tools or command-line utilities to check: The accessibility of your policy file at the specified URL, The correctness of your DNS TXT record, and The validity of your SSL/TLS certificate for the mta-sts subdomain.

 


By implementing MTA-STS, you significantly reduce the risk of email interception and ensure that messages sent to your domain are transmitted securely.

 

Recent Posts

Subscribe to Email Updates
Get instant notifications of new posts