The last post dealt with connecting to a server using telnet on a non telnet port. This is handy for touble shooting mail issues or just checking mail without using a “proper” mail client. In this post I’ll show you how to connect to a standard pop3 server over an ssl port.
> openssl s_client -connect mail.domain-you-want-to-connect-to.com:995
+OK Dovecot ready.
> user [email protected]
> pass password123
+OK Logged in.
+OK 4 messages:
> top 1 20
This shows you the first 20 lines of the first message. This is also useful when troubleshooting mail connection failure issues.