openssl s_client -starttls smtp -connect smtp.example.com:587 -crlf

Category: Mail Servers & Postfix

openssl s_client -starttls smtp -connect smtp.example.com:587 -crlf

Check TLS on the submission port

Tests STARTTLS on the 587 submission port, where authenticated clients send mail; -crlf makes the session usable for typing SMTP commands. Look for the certificate and a Verify return code of 0. Port 465 skips STARTTLS entirely.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.