Open a linux shell execute the respective command; replace the hostname with the server IP/Hostname for which you want to check the avialability of secured mail ports.
POPS – port number 995
# openssl s_client -connect hostname:995
SMTPS – port number 465
# openssl s_client -connect hostname:465
IMAPS – port number 993
# openssl s_client -connect hostname:993