How Can I test the connectivity of my EWS configuration? |
When checking the Mailbox Configuration and its connectivity please ensure first to read ARSystem Email Engine - How can I check my Email Engine Mailbox connection information and collect diagnostics on my Email Engine? - INCLUDES VIDEO See also: BEST FAQ on AR System Email Engine Issues In some situations when using the TestEmail utility, it does not show a clear message of the possible cause we need something additional in case it is required to engage the Exchange/Network/etc… For these scenarios we can use a tool called EwsEditor. Note, this is not a tool owned by BMC Software and it is not supported by BMC Software Support team. Customers can agree or disagree to use it and BMC Software Support team will not address any queries about its functionality. The purpose of using this tool is to check the connection to the Exchange server using the EWS configuration but also it is an Editor so if connected DO NOT CHANGE ANYTHING. BMC Software will not be held responsible if customers perform any changes using this tool. Customers should only use it to verify the connection to the Exchange server. The tool can be obtained here: https://github.com/dseph/EwsEditor/releases it comes on a ZIP file and we need only to unzip it and does not need to run an installer. It will require at least .NET Framework 4.7.2 It is recommended to run it the Remedy Server where the E-mail engine runs. Steps 1- When launching the application the following will show:
2- Then do the following:
3- In the following screen: Service URL: it will come the default 365 url. If you were given a different one use that one. EWS Schema Version: If you know the version of the Exchange select it however I found it is not making any impact. Use oAuth 2.0 (MSAL):
Check the box – Set X-AnchorMailox header and nothing else. 4- Press OK to test the connection. 5- If the connection and authentication is successful it will show something like this: You can press Yes if you want to but the connection and authentication is done already and you can close the tool. Possible errors that can appear If the Service URL is not correct or not reachable: If Client ID is not correct: If Tenant ID is not correct: If Client Secret is not correct: >> Along with above steps, please make sure below 4 curl commands should get executed from Email Engine Server. curl -ivs https://outlook.office365.com curl -ivs https://outlook.office365.com/.default curl -ivs https://outlook.office365.com/EWS/Exchange.asmx curl -ivs https://login.microsoftonline.com/ |