Difference between revisions of "Check IMAP and POP with OpenSSL"
Jump to navigation
Jump to search
Michael.mast (talk | contribs) |
Michael.mast (talk | contribs) |
||
Line 1: | Line 1: | ||
+ | ==IMAP== | ||
<ref>https://donsutherland.org/crib/imap</ref><ref>http://stackoverflow.com/questions/14959461/how-to-talk-to-imap-server-in-shell-via-openssl</ref><ref>http://busylog.net/telnet-imap-commands-note/</ref><ref>https://social.msdn.microsoft.com/Forums/en-US/9ac90ca5-e527-4372-98da-d7056818ebe2/imap-command-for-delete-the-mail-from-gmail-using-uid?forum=csharpgeneral</ref>Currently I have little understanding as to what I am looking at. More specifically I do not know what the "-crlf" in openssl does or how to find the rest of the flags fields for fetching messages. | <ref>https://donsutherland.org/crib/imap</ref><ref>http://stackoverflow.com/questions/14959461/how-to-talk-to-imap-server-in-shell-via-openssl</ref><ref>http://busylog.net/telnet-imap-commands-note/</ref><ref>https://social.msdn.microsoft.com/Forums/en-US/9ac90ca5-e527-4372-98da-d7056818ebe2/imap-command-for-delete-the-mail-from-gmail-using-uid?forum=csharpgeneral</ref>Currently I have little understanding as to what I am looking at. More specifically I do not know what the "-crlf" in openssl does or how to find the rest of the flags fields for fetching messages. | ||
<pre> | <pre> | ||
Line 9: | Line 10: | ||
a close | a close | ||
a logout | a logout | ||
+ | </pre> | ||
+ | ==POP3== | ||
+ | <pre> | ||
+ | openssl s_client -connect outlook.office365.com:995 -crlf | ||
+ | USER user@yourdamin.com | ||
+ | PASS yourpassword | ||
+ | |||
+ | |||
</pre> | </pre> | ||
==SMTP== | ==SMTP== |
Revision as of 12:04, 18 September 2017
IMAP
[1][2][3][4]Currently I have little understanding as to what I am looking at. More specifically I do not know what the "-crlf" in openssl does or how to find the rest of the flags fields for fetching messages.
openssl s_client -connect imap.gmail.com:993 -crlf a login <username> <password> a select inbox a FETCH 1 (FLAGS BODY[HEADER.FIELDS (subject)]) a store 1 +flags /deleted a expunge a close a logout
POP3
openssl s_client -connect outlook.office365.com:995 -crlf USER user@yourdamin.com PASS yourpassword
SMTP
openssl s_client -starttls smtp -connect smtp.office365.com:587 -crlf 250 CHUNKING ehlo 250-DM5PR04CA0045.outlook.office365.com Hello [64.191.109.50] 250-SIZE 157286400 250-PIPELINING 250-DSN 250-ENHANCEDSTATUSCODES 250-AUTH LOGIN 250-8BITMIME 250-BINARYMIME 250 CHUNKING auth login 334 VXNlcm5hbWU6
- ↑ https://donsutherland.org/crib/imap
- ↑ http://stackoverflow.com/questions/14959461/how-to-talk-to-imap-server-in-shell-via-openssl
- ↑ http://busylog.net/telnet-imap-commands-note/
- ↑ https://social.msdn.microsoft.com/Forums/en-US/9ac90ca5-e527-4372-98da-d7056818ebe2/imap-command-for-delete-the-mail-from-gmail-using-uid?forum=csharpgeneral
- ↑ http://www.samlogic.net/articles/smtp-commands-reference-auth.htm