OAuth Mail fetching Error

OAuth Mail fetching Error

While trying to configure the mails during OAuth Configuration if you get the following error in the logs

-> microsoft.exchange.webservices.data.core.exception.service.remote.ServiceRequestException: The request failed. The request failed. The remote server returned an error: (401) 

Please follow the below steps : 

You need to perform test connectivity by following the below steps : 

 2. Select Office 365 or Exchange Server as per your setup.

 3. Select Service Account Access and perform Test. Use the credentials you have used in your mail server settings.

 When all the above mentioned are passed try the below solutions. 

 Some Solutions:

 -> In some cases issue was fixed by changing the proper details as below,

 Make sure the Scope is properly entered in the Mail server settings (Admin-Mail Server Settings). You need to provide the below mentioned URL. 

 Make sure all the other URL's provided are also correct. 


                New to ADManager Plus?

                  New to ADSelfService Plus?

                    • Related Articles

                    • EWS Mail fetching issue - Proxy not enabled for ews. isIncoming: true

                      Issue: EWS Mail fetching issue using different tenants Error trace 1: [23:30:20:701]|[01-23-2023]|[com.adventnet.servicedesk.common.MailUtilities]|[INFO]|[73]: Proxy not enabled for ews. isIncoming: true| ...
                    • Mail fetching - deleted flag issue

                      This message will be thrown, when you have provided a shared mailbox. The concept here is, SDP MSP reads the mail from the configured mailbox and adds it as a request. During the time, if some other application fetches the mail from the same mailbox ...
                    • EWS OAuth configuration with screenshots from Azure

                      In order to configure EWS OAuth configuration successfully, please follow the exact steps in the below link, https://help.servicedeskplus.com/configure-azure-as-authentication-server Note: For client secret, there would be a field called 'Value' as ...
                    • Mails are not getting fetched > Gsuite

                      Issue: Mail fetching stopped. Reason for mail fetching to stop: As you are aware Google has announced that it will start disabling basic authentication for EWS, POP, IMAP, IMAPS, and EAS. Error ...
                    • EWS OAuth: Misconfigured client secret field (error?code=7000215)

                      Getting the below alert after entering the mailbox credentials in the popup. {"error":"invalid_client","error_uri":"https:\/\/login.microsoftonline.com\/error?code=7000215"} Reason: The configured client secret in the application is incorrect. Either ...