https://scottlinux.com/2014/06/05/check-for-smtp-tls-from-command-line-with-openssl/
ype the following against a mail server to test:
$ openssl s_client -connect mail.example.com:25 -starttls smtp
Then you can type the regular SMTP commands (ex, ehlo example.com)