openssl s_client -starttls smtp speaks enough SMTP to reach the STARTTLS command and then upgrades the connection. The capture shows the cleartext greeting and EHLO reply listing STARTTLS, the command, the 220 Ready to start TLS answer and the ClientHello that follows on the same connection. It is a clean example of opportunistic encryption in a plaintext protocol.
SMTP STARTTLS session driven with openssl s_client: the EHLO, STARTTLS and 220 Ready exchange followed by a TLS handshake on port 25.
SMTP STARTTLS via openssl s_client
SMTP session initiated with openssl s_client -starttls smtp. The plaintext banner and EHLO exchange transition to TLS after the STARTTLS command. Shows the plaintext-to-encrypted transition point clearly, with certificate details and cipher negotiation visible in the TLS handshake.