In association with heise online

Logging in to IMAPS

Logging into an IMAPS server is only a little more complicated:

$ openssl s_client -host -port 993
* OK IMAP4 Ready 0001f994
1 Login user-ju secret
1 OK You are so in
2 LIST "" "*"
* LIST (\HasChildren) "." "INBOX"
* LIST (\HasNoChildren) "." "INBOX.AV"
2 OK Completed (0.130 secs 5171 calls)
3 logout
* BYE LOGOUT received
3 OK Completed

Don't forget the freely-selectable sequence number which must precede the actual IMAP command. A POP3 login works in a similar way, if we identify ourselves within the SSL tunnel using the USER and PASS POP3 commands:

$ openssl s_client -host -port 995
+OK POP server ready H mimap3
USER user-ju
+OK password required for user "user-ju"
PASS secret
+OK mailbox "user-ju" has 0 messages (0 octets) H mimap3
+OK POP server signing off

An alternative option is the telnet-ssl tool which offers similar functionality.

Next: StartTLS

Print Version | Permalink:
  • Twitter
  • Facebook
  • submit to slashdot
  • StumbleUpon
  • submit to reddit

  • July's Community Calendar

The H Open

The H Security

The H Developer

The H Internet Toolkit