ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Failed to send email due to an error related to the EWS

book

Article ID: 172878

calendar_today

Updated On:

Products

Information Centric Security

Issue/Introduction

When the user tries to send an email, search the GAL or retrieving the headers of an email, the ICT webservice will contact the Exchange server in order to complete this processes.

If you look at the debugView information, when performing the previous operations, you will see errors connecting to the Exchange in order to establish a connection to the Autodiscover / EWS:

The comunication to the Exchange will be done by the service account, running the application pool, to the Autodiscover and EWS:

If you are having this problems, you can try to reach the previous addresses using an Internet Explorer window opened as the service account and validate if you are able to reach the pages directly

Error

[5616] [BBWS] GetExchangeServiceConnection : Going to fetch RWS connection. 
[5616] [BBWS] GetExchangeServiceConnection : Fetching EWS connection point. 
[5616] [BBWS] GetExchangeServiceConnection : Initializing EWS on Exchange 2007 mode. 
[5616] [BBWS] GetExchangeServiceConnection : Will try to get the EWS connection point using autodiscover.
[5616] [BBWS] GetExchangeServiceConnection : Error found in EWS connection (GetExchangeServiceConnection): Microsoft.Exchange.WebServices.Data.AutodiscoverLocalException: The Autodiscover service couldn't be located. 
[5616] at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.InternalGetLegacyUserSettings[TSettings](String emailAddress, List`1 redirectionEmailAddresses, Int32& currentHop) 
[5616] at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.GetLegacyUserSettings[TSettings](String emailAddress) 
[5616] at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.InternalGetLegacyUserSettings(String emailAddress, List`1 requestedSettings) 
[5616] at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.GetUserSettings(String userSmtpAddress, UserSettingName[] userSettingNames) 
[5616] at Microsoft.Exchange.WebServices.Data.ExchangeService.GetAutodiscoverUrl(String emailAddress, ExchangeVersion requestedServerVersion, AutodiscoverRedirectionUrlValidationCallback validateRedirectionUrlCallback)

Environment

ICT Mobile

Resolution

There are no pre-defined solutions for this problem since this can be different from client to client. Bellow you have 2 approaches:

1 - verify proxy configuration
  1. Open the internet options as the service account
  2. Go to the connection tab and click the Lan settings
  3. validate that the proxy settings are set to accept the connections to the Exchange environment
2 - Firewall configuration
  1. Access the firewall configuration and verify if the connectivity to the Exchange cluster from the RightsWATCH cluster is opened on port 443 (the default EWS port)