# EWS - Troubleshooting

Use the connectivity test tool to validate the configuration of your mail service.&#x20;

{% embed url="<https://testconnectivity.microsoft.com/tests/O365EwsAccess/input>" %}

## Error: Mailbox does not exist&#x20;

This might happen if the authorizing user does not have a mail licence or if their mail functionality has been disabled.&#x20;

Please **ensure that the authorizing user is able to send and receive emails from their own email account** and try again.&#x20;

## Error: Validation of the callback origin has failed

This error can occur if the response Callback URL in Azure does not match the Callback URL in the OAuth Token Details page.&#x20;

This error can also be displayed when there is nothing wrong. If the OAuth Token Details dialog closes automatically after you have completed authorization, then the authorization has worked and the error can be ignored.&#x20;

If this error is displayed and the OAuth Token Details dialog does not close automatically after completing authorization, a configuration problem may exist. The following steps can be taken to correct the problem.&#x20;

1. Reload ASM and try again&#x20;
2. Reload ASM, open the Email Server Details page, click Manage Token and click Delete
3. Reload ASM again, confirm that the OAuth Token ID on the Email Server Details page is blank and try again&#x20;
4. Delete the Email Server and try again <br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.alemba.com/asm-hermes/setup-and-configure-asm/setting-up-your-system/setup-email/setting-up-incoming-and-outgoing-email/configuring-exchange-web-services-ews/ews-troubleshooting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
