For SMTP between your bank and three partner domains that must never travel in cleartext, how do you choose between bilateral mandatory TLS, MTA-STS enforce and DANE in each direction?
answer
- outbound you control, inbound you publish
- a public MX may not insist
- Web PKI against DNSSEC trust
- first contact and downgrade resistance
- mandatory means mail waits when TLS breaks
basics
~20 sOutbound, set a mandatory, authenticated TLS policy per partner in your own MTA. Inbound, publish MTA-STS enforce, DANE if you can run DNSSEC, and TLS reporting, and have each partner pin mandatory TLS toward you.
solid answer
~50 sSplit the problem by direction. **Outbound** you control the sender, so for three known partners the dependable floor is a per-destination policy in your MTA: in Postfix, `smtp_tls_policy_maps` entries at `secure` with an explicit `match`, at `dane-only` where the partner signs its zone and publishes TLSA records, or at `encrypt` at the very least, so mail waits rather than going out in cleartext. **Inbound** you cannot force anyone: RFC 3207 forbids a public MX from requiring STARTTLS, so you publish policies senders honour, MTA-STS in `enforce`, DANE if your zones can be DNSSEC-signed reliably, and `_smtp._tls` reporting, and you agree with each partner that they pin mandatory TLS toward you. MTA-STS rides on public CAs and an HTTPS host and leaves first contact exposed; DANE resists downgrade from the first message but makes DNSSEC part of mail delivery. Every mandatory setting turns a partner's certificate mistake into delayed mail, so the decision includes who watches queues and reports.
go deeper
Know that the sender decides whether a hop is encrypted, so outbound and inbound need different controls.
Describe what a per-destination mandatory policy, MTA-STS enforce and DANE each require from the bank and from a partner.
Configure the outbound policies, sequence MTA-STS from testing to enforce, and set the monitoring that catches deferred mail before it becomes an incident.
Own the tradeoff: trust in public CAs against DNSSEC operations, confidentiality against delayed mail, and how the bank proves the never-cleartext claim to an auditor.
## Frame the decision by direction "Never in cleartext" means different things for the two directions, because the party that decides whether to encrypt is always the **sender**: - **Outbound** (bank to partner): the bank's own MTA decides. The bank can make TLS mandatory and authenticated for those three domains whatever they publish. - **Inbound** (partner to bank): the partners' MTAs decide. The bank can publish policies that well-behaved senders honour and can agree terms with each partner, but its public MX cannot simply refuse cleartext: RFC 3207 says a publicly referenced server MUST NOT require STARTTLS before accepting mail for local delivery. Each control also differs in **what it trusts**, which is what a lead must weigh. ## The three controls compared | | Bilateral mandatory TLS | MTA-STS `enforce` (RFC 8461) | DANE (RFC 7672) | |---|---|---|---| | Configured by | Each sender, per destination | The receiving domain publishes | The receiving domain publishes | | Trust root | Whatever the two sides agree (names, fingerprints) | Public CAs (Web PKI) | DNSSEC | | First message to a domain | Protected once configured | Exposed until the policy is cached | Protected; DNSSEC can prove absence | | Soft rollout | Agreed out of band | `testing` mode with TLS reports | Per-MX deployment, TLS reports | | Main cost | Coordinating every certificate or host change | HTTPS host, CA certificates naming each MX | Signed zones, key rollovers, validating resolvers at senders | | Failure mode | Mail deferred at that sender | Mail deferred at honouring senders | Mail deferred at validating senders | RFC 7672 notes that statically configured sender policy "does not scale", which is true for the Internet and irrelevant for three named partners: there, bilateral settings are the most predictable control. RFC 8461 adds that a sender implementing both MUST NOT let MTA-STS success override a failing DANE validation, so publishing both is coherent. ## Outbound: what the bank configures 1. Give each partner a policy entry in the bank's MTA. In Postfix that is `smtp_tls_policy_maps`, with `dane-only` for a partner whose zones are signed and carry TLSA records, `secure` with a `match=` naming the partner's agreed host names otherwise, and `encrypt` only as a stopgap, since it encrypts without authenticating. 2. Turn on DNSSEC lookups (`smtp_dns_support_level = dnssec`) behind a validating resolver, so partners' DANE records can be used, and honour partners' MTA-STS through a policy plugin. 3. Agree a change process: a partner rotating a certificate or moving an MX must tell the bank first, or the bank's mail to them will wait in the queue. 4. Alert on deferred mail to those destinations; under mandatory TLS, a growing queue **is** the security control working. ## Inbound: what the bank publishes and asks for - **MTA-STS in `enforce`**, after a period in `testing` with clean TLS reports, with certificates on every MX naming that MX and a long `max_age`. - **DANE**, if the bank can sign its domain and MX zones and run key rollovers dependably: `3 1 1` records on each MX host, published before every key change. If DNSSEC is not something the bank's DNS operations can sustain, a broken signature would stop inbound mail from validating senders, and MTA-STS alone is the safer commitment. - **TLS reporting** at `_smtp._tls` with `v=TLSRPTv1`, so failures from honouring senders become visible. - **A written requirement** that each partner pins mandatory, authenticated TLS toward the bank in its own MTA. Where that is not enough, RFC 3207 lets a server that is **not** publicly referenced insist on TLS, so a dedicated host that partners route to by private arrangement can refuse cleartext outright. ## What the decision costs - **Availability against confidentiality**: every mandatory setting converts a partner's expired certificate, wrong host name or broken signature into delayed mail, and delayed payment or settlement messages carry their own risk. Decide in advance who is paged and how long a deferral may run before someone intervenes. - **Trust model**: MTA-STS inherits every public CA's ability to mis-issue a certificate; DANE inherits the security of the DNSSEC chain above the zone and of its signing keys. - **Evidence for auditors**: Received fields showing the ESMTPS transmission type, sender logs of verified sessions, and daily TLS reports make the claim "never in cleartext" checkable. - **Scope**: TLS protects each hop only. If a partner relays through an outside gateway, that hop is the gateway's, and protecting message content end to end is message-level encryption, a separate decision. A defensible outcome is bilateral authenticated TLS for the three partners in both directions, MTA-STS `enforce` with reporting for everyone else, and DANE added where DNS operations are already mature. The point is to choose it deliberately, per direction, with its failure mode owned.
- A partner refuses to configure mandatory TLS toward the bank. What can the bank still do for inbound mail?Publish MTA-STS in enforce and, if feasible, DANE, so that the partner's MTA protects the hop if it honours either, and publish TLS reporting to see whether it does. Beyond that, the bank can offer a dedicated, not publicly referenced host that requires TLS, which RFC 3207 permits, and route the partner's mail there by agreement. If none is accepted, record the residual risk formally.
- Why might a lead decline DANE even though it resists downgrade better than MTA-STS?Because DANE makes DNSSEC part of mail delivery. A missed re-signing, a botched key rollover or a TLSA record left behind after a certificate change makes validating senders defer all mail to the bank. If the DNS team cannot run signing and rollovers reliably, MTA-STS with its testing mode and public CAs is the lower-risk commitment, and DANE can follow later.
- Requiring STARTTLS on the bank's public MX solves inbound cleartext
- Publishing MTA-STS forces partners' servers to use TLS
- Mandatory encryption alone proves the mail reached the partner's real server
- DANE and MTA-STS conflict, so a domain must pick one
- Once TLS is mandatory, failures will surface as bounces immediately