Intermittent AuthenticationFailedException in IMAP protocol in SDP

Intermittent AuthenticationFailedException in IMAP protocol in SDP

Reason :

In IMAP protocol enabled Mail fetching environments, we may face AuthenticationFailedException.

But after few minutes, mails will be fetched normally ( without any changes by the user ).

This is because, the opened IMAP connections from Application server to Exchange Server are not closed properly. Due to this, the maximum concurrent IMAP connections ( by default it is 16 connections per mailbox ) got exhausted and the above exception throws.

Workaround :

      1. Try decreasing the Authenticated time-out and Unauthenticated time-out in the Exchange Admin Centre.

            If your Exchange version is 2010 or below, you can change the values using Shell Command as in the article https://docs.microsoft.com/en-us/exchange/set-connection-time-out-limits-for-imap4-exchange-2013-help. Else, follow the below steps.

                  Go to Exchange Admin Centre ( /ecp ) >> Servers >> Select your server and double click >> Click IMAP4 >> Click More options >> Reduce the Authenticated and Unauthenticated time-out to 60s.

                  After this changed, restart your application server and monitor mail fetching. If this workaround doesn't help, please try option 2.

            


      2. Try using EWS protocol in SDP for mail fetching.

          • Related Articles

          • AWS Cloudwatch Metric Alarm -> SDP Integration

            Requirement  :  AWS Cloudwatch Metric Alarm Integration Steps :  --> Download the attached file AwsCWAFiles.zip and extract it --> Copy file AppIntegrations_Handler_Custom.xml to sdp_home\integration\conf  folder ( If the file is already available ...
          • Step-by-step: E-Mail configuration for Outlook using POP/IMAP

            The reason for configuring the mailbox in Outlook using POP/IMAP configuration is to validate connectivity and authentication settings. ServiceDesk Plus Application fetches emails from the inbox exactly as how an Email Client (Outlook) would fetch ...
          • How to Configure SAML for Hybrid Azure AD in SDP

            This article provides a workaround for older SDP builds (below 11200) alone that did not support EmailAddress as the NameID format. Moreover, this workaround is applicable only for environments that sync their On-Premise AD users to their Azure using ...
          • Apply certificate for EWS mail configuration in SDP.

                  EWS protocol support is introduced in 10006 version of SDP ( Limited to windows servers ). User can configure EWS for both incoming and outgoing settings in SDP.   To apply the certificate for EWS protocol in SDP, please follow the below steps ...
          • SDP --> Delhivery Integration (Plug-in model)

            Requirement:  Delhivery Integration 1. Create an order 2. Track order 3. Cancel order 4. Print packing slip Steps to be followed 1. Download the attached zip and exact it 2. Move order_resource.py, track_order.py, cancel_order.py, packingslip.py ...