I need to connect to a Microsoft Exchange Server through IMAPS JavaMail. First, I got the:
A1 NO AUTHENTICATE failed. javax.mail.AuthenticationFailedExcepti
It will workout if the username and the mail id both are same.
For example: system username is john and mail id john@test.com
IMAP is try to login the mail id using the username "john" from john@test.com, if the user id is differ it will not login.