Protocol Example - IMAP
Using the reference above we should be able to test an IMAP command against a GMAIL server.
Let's establish connectivity once again by running
openssl s_client -connect imap.gmail.com:993
A1 LOGIN changeme@gmail.com changeme
A1 CAPABILITY
If you refer to the references for IMAP above these commands will be explained to you there.