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.

      New to ADSelfService Plus?

        Resources

            • Related Articles

            • 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 ...
            • SDP MSP Integration

              Requirement: Move Requests from SDP OP to SDP MSP. Create Tasks from SDP OP to SDP MSP, for Request module. Update SDP Request when MSP request is updated. Steps to configure - Duplicate SDP Ticket in MSP: Update configuration informations in SDP ...
            • 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. Note: If the mail server is O365 , then you need not perform these steps as the ...
            • SDP OnDemand Integration - Duplicate Request in multiple OnDemand instances

              Requirement: Move Requests from SDP OP to SDP OD. Steps to configure: Download and move the attachment content to <SDP_Home>\integration\custom_scripts In Configuration.json: Update the URL and integration key in the script. You can get the ...