tech:test_connexion_imap

Test connexion IMAP

Vérification qu'aucun mot de passe de sera échangé en clair

$ telnet imap.acme.fr 143
1 CAPABILITY
2 LOGIN "user" "pass"
* BAD [ALERT] Plaintext authentication not allowed without SSL/TLS, but your client did it anyway. If anyone was listening, the password was exposed.
2 NO [PRIVACYREQUIRED] Plaintext authentication disallowed on non-secure (SSL/TLS) connections.

Connexion IMAP (starttls)

$ openssl s_client -starttls imap -connect imap.acme.fr:143 -crlf
1 LOGIN "user" "pass"
2 LIST "INBOX" "*"
3 LIST "*" "*"
4 SELECT inbox
5 LIST "INBOX" "*Archive*"
6 FETCH 1243:* FLAGS
7 LIST "" "INBOX.%"
34 SEARCH DELETED
* SEARCH
* 1162 FETCH (FLAGS (\Seen NonJunk))
34 OK Search completed (0.000 secs).
35 FETCH 1162 FULL
* 1162 FETCH (FLAGS (\Seen NonJunk) INTERNALDATE "21-May-2015 18:10:03 +0200" RFC822.SIZE 986 ENVELOPE ("Thu, 21 May 2015 18:10:03 +0200 (CEST)" "Postfix SMTP server: errors from unknown[142.54.162.199]" (("Mail Delivery System" NIL "MAILER-DAEMON" "smtp.acme.fr")) (("Mail Delivery System" NIL "MAILER-DAEMON" "smtp.acme.fr")) (("Mail Delivery System" NIL "MAILER-DAEMON" "smtp.acme.fr")) (("Postmaster" NIL "postmaster" "acme.fr")) NIL NIL NIL "<20150521161003.489C72AB1D@smtp.acme.fr>") BODY ("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 508 20))
35 OK Fetch completed.
37 SEARCH DELETED SINCE 22-may-2015
38 LOGOUT
tag login user@gmail.com password

tag LIST "" "*"
TAG DELETE Trash
tag create Trash
tag create Trash.T

SEARCH FROM "info@commerbank.com" BEFORE 1-Nov-2009 
tech/test_connexion_imap.txt · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki