Transport security
The servers that send mail to your domain deliver it over an encrypted connection to your real mail server, and tell you when they can't. The panel sets this up for every mail domain; you don't need to do anything.
Without it, encryption between mail servers is optional. A sending server that can't set up an encrypted connection, or that an attacker in the middle tells your server doesn't offer one, delivers in plain text, and it doesn't check that the server it talks to is really yours. Two standards close that gap:
| What it does | Default | |
|---|---|---|
| MTA-STS | Your domain publishes a policy: deliver to me only over an encrypted connection, to the mail server I name, with a valid certificate for that name. Sending servers that support it, e.g. Gmail and Microsoft, follow it. | Enforce |
| TLS reporting (TLS-RPT) | Your domain asks sending servers for a daily report of their encrypted connections to it, and of the ones that failed. The reports are on the TLS Reports tab. | On |
Sender verification (SPF, DKIM, DMARC) proves that mail from your domain is genuine. Transport security protects mail to your domain on its way to your mail server.
What the panel publishes, and when
A policy promises that your mail server has a valid certificate, so the
panel publishes it only once the certificates for mail.example.com and
mta-sts.example.com are issued. For a new domain that is usually a few
minutes. Until then, nothing is published, and a note under
MTA-STS Mode says what it waits for, e.g. "Not published yet. Starts
once the certificate for mail.example.com, mta-sts.example.com is
issued."
For example.com, once published:
| Record | Value |
|---|---|
_mta-sts.example.com TXT | v=STSv1; id=20261114120000. The id changes whenever the policy does. |
mta-sts.example.com A and AAAA | This server's addresses, which serve the policy. |
_smtp._tls.example.com TXT | v=TLSRPTv1; rua=mailto:tlsrpt@bounces.<server>, while TLS reporting is on. |
The policy itself is at https://mta-sts.example.com/.well-known/mta-sts.txt:
version: STSv1
mode: enforce
mx: mail.example.com
max_age: 604800
These are generated records: to change one, change the setting.
The panel publishes neither MTA-STS nor TLS reporting for a domain that receives its mail through an incoming mail gateway, whose servers it doesn't run, or whose DNS it doesn't write, since it couldn't keep the records up to date. The note under MTA-STS Mode says which.
What you can change
The Transport Security pane of the mail service's Sender Verification tab shows your choices as MTA-STS Mode and TLS Reporting. A note under MTA-STS Mode appears only while what the domain serves differs from your choice: not published yet, turning off, or not published at all. Edit opens Edit Transport Security, where you choose:
| Setting | Choices |
|---|---|
| MTA-STS | Enforce (recommended): senders that support MTA-STS deliver only over a verified encrypted connection. Testing: they report what fails and deliver anyway. Off: no policy. |
| TLS Reporting | Reports requested or Not published. |
Your choice is never refused, and a change between Enforce and Testing takes effect at once. The panel never changes your choice, and no report does either.
When to choose Testing
MTA-STS requires a sending server to name the server it wants when it
connects (SNI), and your mail server then presents the certificate of
mail.example.com. A sender that enforces MTA-STS without naming it is
shown the hosting server's certificate instead, which doesn't carry your
domain, and under Enforce it may refuse to deliver. The
TLS Reports tab
names such senders.
If a correspondent says their mail to you bounces, and the reports name their server, choose Testing: that sender delivers again. A sender that looks your DNS record up again sees the change soon after; one that waits for its copy of the policy to expire sees it within a week.
Why turning off takes a week
A sending server keeps a copy of your policy for up to a week (its
max_age) and fetches a new one when the DNS record announces a change. If
the panel withdrew the policy at once, a sender holding an enforced copy
would go on enforcing it with nothing to replace it.
So after you choose Off, the note under MTA-STS Mode reads
"Turning off until" a date a week ahead: the policy says at once that there is no policy any more (mode: none), and
stays published until every sender's copy has expired. Then the panel
removes it, its records and the mta-sts name. Choosing Testing or Enforce
during that week takes the turning-off back.
mta-sts.example.com is the name the policy is served from. If you create
a service there yourself, e.g. a website, the panel can't serve the policy
on it: a policy not yet published waits until you remove that service.
From the API and MCP
The mail service carries the same settings
(PATCH /api/v1/mail-services/{id}, the MCP tool mail-service_edit):
| Field | Values |
|---|---|
mtaStsMode | The mode you want: off, testing or enforce. Never refused. |
tlsRptPolicy | on or off. |
Reading the service also gives, read-only, mtaStsServedMode (what is
served now: off, pending, testing, enforce or retiring),
mtaStsStatus (what is served, in one line, e.g. "Enforced."), mtaStsPolicyId and mtaStsOffAfter
(when turning off ends).