A Chilkat customer experienced the following behavior with Exchange Server in response to an IMAP login. This is the (edited) contents of the IMAP object’s SessionLog property:
----INFO---- Connecting to IMAP server at ***:143 ----IMAP RESPONSE---- * OK The Microsoft Exchange IMAP4 service is ready. ----IMAP REQUEST---- aaab LOGIN "***" ----IMAP RESPONSE---- aaab BAD Command received in Invalid state.
The IMAP server’s response is misleading.
In this case, the Exchange Server only allows SSL by default, so it was necessary to connect to port 993 with SSL on. Also, the login name needed to be domain\username.
Here is more information: IMAP Exchange Server Login.