Support Article

javax.mail.AuthenticationFailed error for shared mailbox, IMAPS



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_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(

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.


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:


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.