I'm trying to telnet to imap-mail.outlook.com on port 993. When I connect to it, I get Trying 157.56.195.250...  Connected to imap-mail.outlook.com.  Escape character is '^]'.And I can enter a command. Whenever I enter seemingly anything, it disconnects me saying:Connection closed by foreign host.I'm trying to determine (or even venture a guess as to) the reason and I don't know enough about telnet to even make an educated guess. Can anyone point me in the right direction?For the record, I'm able to connect a desktop mail client to this address and it works fine. The machine I'm trying from is on the same network running CentOS 6 with no firewall rules whatsoever, which clearly isn't the problem anyway.
Telnet session closed by foreign host
centos;telnet
The host probably expects SSL. You must use openssl instead of telnet:openssl s_client -connect imap-mail.outlook.com:993 -crlf