[dev] Imap client and TLS
Michael Rubinsky
mrubinsk at horde.org
Wed Feb 23 17:27:21 UTC 2011
I'm using Dovecot 1.2.9. Using Horde with Application/Imp auth and IMP
5, I'm able to successfully authenticate more than *once* to IMP while
logging in to Horde. I see a successful auth attempt in the IMAP log
once, then Horde hangs when attempting the next auth attempt.
Switching to an insecure auth works as expected, as does using SSL on
port 993.
Uing
Log using TLS:
------------------------------
(1298480816.4187) S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR
LOGIN-REFERRALS ID ENABLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
(1298480816.4189) C: 1 STARTTLS
(1298480816.4190) S: 1 OK Begin TLS negotiation now.
(1298480816.4294) C: 2 CAPABILITY
(1298480816.4654) S: * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR
LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES
THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS
LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES
WITHIN CONTEXT=SEARCH AUTH=PLAIN AUTH=LOGIN
(1298480816.4660) S: 2 OK Capability completed.
(1298480816.4679) C: [LOGIN Command - username: foo]
(1298480816.5201) S: 3 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR
LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES
THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS
LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES
WITHIN CONTEXT=SEARCH] Logged in
(1298480816.5929) C: 4 LOGOUT
(1298480816.6254) S: * BYE Logging out
(1298480816.6257) S: 4 OK Logout completed.
------------------------------
(1298480817.3246) S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR
LOGIN-REFERRALS ID ENABLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
..at this point Horde hangs.
Successful log using insecure auth:
------------------------------
(1298481107.6260) S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR
LOGIN-REFERRALS ID ENABLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
(1298481107.6267) C: [SASL-IR AUTHENTICATE Command - username: foo]
(1298481107.6605) S: 1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR
LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES
THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS
LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES
WITHIN CONTEXT=SEARCH] Logged in
(1298481107.7316) C: 2 LOGOUT
(1298481107.7635) S: * BYE Logging out
(1298481107.7637) S: 2 OK Logout completed.
------------------------------
(1298481108.5537) S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR
LOGIN-REFERRALS ID ENABLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
(1298481108.5543) C: [SASL-IR AUTHENTICATE Command - username: foo]
(1298481108.5677) S: 1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR
LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES
THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS
LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES
WITHIN CONTEXT=SEARCH] Logged in
(1298481108.5681) C: 2 NAMESPACE
(1298481108.6028) S: * NAMESPACE (("" "/")) NIL NIL
(1298481108.6029) S: 2 OK Namespace completed.
(1298481108.6046) C: 3 LIST (SUBSCRIBED) "" (*) RETURN (SUBSCRIBED)
(1298481108.6429) S: * LIST (\Subscribed \NoInferiors \UnMarked) "/"
"Code Samples, Personal Web Work"
(1298481108.6431) S: * LIST (\Subscribed \NoInferiors \UnMarked) "/"
"General Archive"
(1298481108.6433) S: * LIST (\Subscribed \NoInferiors \UnMarked) "/"
"Horde Consulting"
(1298481108.6434) S: * LIST (\Subscribed \NoInferiors \UnMarked) "/"
"Horde Lists"
(1298481108.6435) S: * LIST (\Subscribed \NoInferiors \UnMarked) "/"
"horde-cvs"
(1298481108.6437) S: * LIST (\Subscribed \NoInferiors \Marked) "/"
"Horde, LLC"
(1298481108.6438) S: * LIST (\Subscribed \NoInferiors \UnMarked) "/" "Logs"
(1298481108.6439) S: * LIST (\Subscribed \NoInferiors \UnMarked) "/"
"Pharmacy"
(1298481108.6440) S: * LIST (\Subscribed \NoInferiors \UnMarked) "/"
"Verendus"
(1298481108.6442) S: * LIST (\Subscribed \NoInferiors \UnMarked) "/" "Notes"
(1298481108.6443) S: * LIST (\Subscribed \NoInferiors \UnMarked) "/"
"sent-mail"
(1298481108.6444) S: * LIST (\Subscribed \NoInferiors \UnMarked) "/"
"Horde Website"
(1298481108.6446) S: * LIST (\Subscribed \NoInferiors \Marked) "/"
"Horde UI Redesign"
(1298481108.6451) S: * LIST (\Subscribed \NoInferiors \UnMarked) "/"
"Horde 4 Refactor-Release"
(1298481108.6452) S: 3 OK List completed.
(1298481108.6463) C: 4 LIST "" (INBOX)
(1298481108.6829) S: * LIST (\NoInferiors \Marked) "/" "INBOX"
(1298481108.6833) S: 4 OK List completed.
(1298481108.7243) C: 5 STATUS INBOX (MESSAGES RECENT UNSEEN)
(1298481108.7563) S: * STATUS "INBOX" (MESSAGES 120 RECENT 8 UNSEEN 8)
(1298481108.7567) S: 5 OK Status completed.
(1298481108.7653) C: 6 STATUS horde-cvs (MESSAGES RECENT UNSEEN)
(1298481108.8032) S: * STATUS "horde-cvs" (MESSAGES 0 RECENT 0 UNSEEN 0)
(1298481108.8035) S: 6 OK Status completed.
(1298481108.8094) C: 7 STATUS "Horde Lists" (MESSAGES RECENT UNSEEN)
(1298481108.8903) S: * STATUS "Horde Lists" (MESSAGES 0 RECENT 0 UNSEEN 0)
(1298481108.8907) S: 7 OK Status completed.
(1298481109.0756) C: 8 LOGOUT
(1298481109.1129) S: * BYE Logging out
(1298481109.1132) S: 8 OK Logout completed.
Any hints as to what I may be doing wrong?
mike
The Horde Project (www.horde.org)
mrubinsk at horde.org
More information about the dev
mailing list