I need to connect to a Microsoft Exchange Server through IMAPS JavaMail. First, I got the:
A1 NO AUTHENTICATE failed. javax.mail.AuthenticationFailedExcepti
You need to use a newer version of JavaMail that supports NTLM authentication. The latest version is 1.5.1.
Also, see this list of common mistakes.