STARTTLS
Cheat sheet · https://pcornel.dk/topic.php?topic=4783
Answer
STARTTLS upgrades a plain SMTP, IMAP or POP3 connection to TLS. Between mail servers it is opportunistic and can be stripped, so MTA-STS or DANE are used to require it.
Remember
- Opportunistic between servers.
- Can be stripped by attackers.
- Enforce with MTA-STS or DANE.
First checks
openssl s_client -starttls smtp -connect <mx>:25 -servername <mx>— STARTTLS and certificatedig TXT _mta-sts.<domain> +short; curl https://mta-sts.<domain>/.well-known/mta-sts.txt— MTA-STSdig TXT _smtp._tls.<domain> +short— TLS-RPT
Commands
openssl s_client -starttls smtp -connect mx.example.com:25
Verify in this order
SMTP → STARTTLS → TLS session (enforced by MTA-STS)
Where it usually breaks
First mismatch in asset/subject identity → trust/authentication → authorization/policy → enforcement/control → telemetry/detection → protected outcome/response; preserve identity/policy/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4783