testing starttls on mail servers from shell

This is a simple way to test if your server is able to do STARTTLS or not

openssl s_client -starttls smtp -crlf -connect your.mail.server:25

it should printout a bunch of TLS stuff and then you have the same smtp shell you get normally with telnet