EWS - Mail Fetching or Sending Issues

EWS - Mail Fetching or Sending Issues

Upon Configuring the EWS and if you get the below error:

E-mail settings saved successfully. But error occurred while trying to check connection with mail server - Problem connecting to mailbox

or else, if you are unable to send any replies from MSP UI. Please check the Serverout0.txt (available under <Drive>:\ManageEngine\ServiceDeskPlus-MSP\logs) and verify if you see the below error trace:

|[SYSERR]|[INFO]|[108]: microsoft.exchange.webservices.data.core.exception.service.remote.ServiceRequestException: The request failed. The response received from the service didn't contain valid XML.|

As per the error, the issue seems to be in the XML response received from the Exchange service. Also, the URL syntax is wrong.

Login to the application and go to  Admin > Mail server settings, check the URL format you have given for the mail server. The URL should be in the format shown below. Post the changes, restart the MSP service once and check if the same helps:


If the above doesn't work, you can also try replacing the IP Address in the URL, which might help in resolving the issue. 

If the issue still persists, please contact the EWS Team with the error traces shared above. If those traces are not enough for them, then go to Admin > Mail server settings > Enable Email debugging option in that page, and save. Recreate the reported issue share the logs folder with them.


                  New to ADSelfService Plus?

                    • Related Articles

                    • Fix: Error while sending mail using EWS

                      Issue trace: [11:58:49:091]|[11-29-2022]|[SYSERR]|[INFO]|[122]: microsoft.exchange.webservices.data.core.exception.service.remote.ServiceResponseException: The operation can't be performed because the item is out of date. Reload the item and try ...
                    • 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 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| ...
                    • Problem while fetching a mail since the mail's boundary value is not enclosed with the double quotes.

                      Issue: The mail will not be fetched/processed since the boundary value of the email is not enclosed within double quotes. javax.mail.internet.ParseException will be thrown. Emails causing this type of error will not be moved to error folder. This ...
                    • List of mail fetching issues and solutions

                      Scenario 1 : Mail fetching issue due to Invalid or No PKIX certificate .   Log traces for Mail Fetching  issues Exception when connecting to store.|javax.mail.MessagingException: sun.security.validator.ValidatorException: PKIX path building failed: ...