Support Article

javax.mail.AuthenticationFailed error for shared mailbox, IMAPS

SA-38437

Summary



Developers are getting an authentication error when trying to connect to a shared mailbox using IMAPS.

The connection works fine when connected through Outlook.


Error Messages



2017-05-18 16:06:14,533 [fault (self-tuning)'] [TABTHREAD1] [ ] [ Test3:01.01.01] (ivity.Data_EmailAccount.Action) ERROR your_host.com your_user - Data-EmailAccount.your_email_account: The server indicated that the authentication credentials for this Email Account are incorrect.
javax.mail.AuthenticationFailedException: AUTHENTICATE failed.
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:717)


Steps to Reproduce



Configure an email listener to access a shared mailbox and use IMAPS as the protocol.


Root Cause



When accessing a shared mailbox, the system sometimes requires that plain authentication be disabled, depending on the email server in use.

Resolution



Perform the following local-change:

On the Email Account rule form, under the Receiver section, add the following advanced property and set its value to true:

mail.imap.auth.plain.disable

Published May 24, 2017 - Updated February 8, 2018


50% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.