-2


I have been trying to connect to IMAP on my Ubuntu Server on Amazon EC2, however, I fail to find the reason why it won't be able to connect. I use the following command to test:

telnet imap.gmail.com imap

closed as unclear what you're asking by GAD3R, Jeff Schaller, sam, techraf, slm Dec 9 '16 at 1:01

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • What happens? What doesn't happen (that would you expect to happen)? What error messages do you get? (If none, say so.) What does the documentation for Google's IMAP implementation say about connecting? – roaima Dec 8 '16 at 21:23
1

The documentation for Google's IMAP implementation is explicit on this matter:

  • Incoming Mail (IMAP) Server: imap.gmail.com
  • Requires SSL: Yes
  • Port: 993

You cannot use telnet to talk to an SSL-enabled port. (At least, not usefully; telnet imap.gmail.com imaps won't get you very far.) You could use the OpenSSL toolkit though

openssl s_client -connect imap.gmail.com:imaps

Not the answer you're looking for? Browse other questions tagged or ask your own question.