I have deployed Exchange Server 2016. I am able to send email over 587 while I face Login failure over IMAP 993 and POP3 995.
Over Microsoft Tool https://testconnectivity.microsoft.com/ IMAP Test passes but using any other means (Java Mail or Scripts), I encounter Authentication failure over 993.
I am able to send mails with same script or Java Mail.
I have tried setting LoginType
to all different modes.
DEBUG IMAPS: trying to connect to host "mail.xxx.com", port 993, isSSL true
* OK The Microsoft Exchange IMAP4 service is ready.
A0 CAPABILITY
* CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN SASL-IR UIDPLUS MOVE ID UNSELECT CHILDREN IDLE NAMESPACE LITERAL+
A0 OK CAPABILITY completed.
DEBUG IMAPS: AUTH: PLAIN
DEBUG IMAPS: protocolConnect login, host=mail.xxx.com, user=user1@xxx.com, password=<non-null>
DEBUG IMAPS: AUTHENTICATE PLAIN command trace suppressed
DEBUG IMAPS: AUTHENTICATE PLAIN command result: A1 NO AUTHENTICATE failed.
DEBUG IMAPS: trying to connect to host "mail.xxx.com", port 993, isSSL true
* OK The Microsoft Exchange IMAP4 service is ready.
A0 CAPABILITY
* CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN SASL-IR UIDPLUS MOVE ID UNSELECT CHILDREN IDLE NAMESPACE LITERAL+
A0 OK CAPABILITY completed.
DEBUG IMAPS: AUTH: PLAIN
DEBUG IMAPS: protocolConnect login, host=mail.xxx.com, user=user1@xxx.com, password=<non-null>
DEBUG IMAPS: AUTHENTICATE PLAIN command trace suppressed
DEBUG IMAPS: AUTHENTICATE PLAIN command result: A1 NO AUTHENTICATE failed.
SEVERE: Exception: AUTHENTICATE failed.