Skip to content

Commit 178ca37

Browse files
authored
some changes
1 parent 409b15d commit 178ca37

1 file changed

Lines changed: 21 additions & 22 deletions

File tree

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,43 @@
11
---
2-
title: Test Connection fails from Email Server
3-
description: Provides a solution to an issue where Test Connection fails from Email Server Profile in Microsoft Dynamics 365.
2+
title: Test Connection fails in email server profile
3+
description: Provides a solution to an issue where test connection fails from an email server profile in Microsoft Dynamics 365.
44
ms.reviewer:
55
ms.date: 12/05/2024
66
ms.custom: sap:Email and Exchange Synchronization
77
---
8-
# Test Connection fails from Email Server Profile in Microsoft Dynamics 365
8+
# Test Connection fails with 401 or timeout error in email server profile in Microsoft Dynamics 365
99

10-
This article provides a solution to an issue where Test Connection fails from Email Server Profile in Microsoft Dynamics 365.
10+
This article provides a solution to an issue where **Test Connection** fails from an email server profile in Microsoft Dynamics 365.
1111

1212
_Applies to:_   Microsoft Dynamics 365
1313
_Original KB number:_   4493267
1414

1515
## Symptoms
1616

17-
When using the Test Connection option from an Email Server Profile in Dynamics 365, the test fails and you may see an error like the following example:
17+
When you select **Test Connection** on an email server profile record in Dynamics 365, the test fails and you might see one of the following errors:
1818

19-
> "Remote server error: (401) Unauthorized. Make sure the user name and password you entered are correct and try again."
20-
or
19+
> Remote server error: (401) Unauthorized. Make sure the user name and password you entered are correct and try again.
2120
22-
> "System.Net.WebException: The operation has timed out
23-
at System.Net.HttpWebRequest.GetResponse()
24-
at Microsoft.Crm.Asynchronous.EmailConnector.ExchangeConnectivityDiscoverer.ValidateServerUrl(EmailDirectionCode emailDirection)"
21+
Or
2522

26-
## Cause
23+
> System.Net.WebException: The operation has timed out
24+
> at System.Net.HttpWebRequest.GetResponse()
25+
> at Microsoft.Crm.Asynchronous.EmailConnector.ExchangeConnectivityDiscoverer.ValidateServerUrl(EmailDirectionCode emailDirection)
2726
28-
- **Cause 1:** The username or password isn't correct.
29-
- **Cause 2:** If you're using Dynamics 365 (online) to connect to Exchange on-premises, this error can occur if your firewall doesn't allow connectivity from Dynamics 365 to your Exchange server.
30-
- **Cause 3:** In some cases, the test connection may fail even though the credentials are correct and connectivity isn't a problem. See Resolution 3 in the Resolution section.
27+
## Cause 1: Incorrect username or password
3128

32-
## Resolution
29+
To solve this issue, verify the username and password are correct.
3330

34-
- **Resolution 1:** Verify the username and password are correct.
31+
> [!NOTE]
32+
> The **User Name** value needs to be in the UPN (User Principal Name) format. For example, use `[email protected]` instead of `contoso\username`.
3533
36-
> [!NOTE]
37-
> The User Name value needs to be in UPN (User Principal Name) format. Ex. `[email protected]` instead of `contoso\username`.
34+
## Cause 2: Firewall blocking connectivity
3835

39-
- **Resolution 2**: If you're using Dynamics 365 (online) with Exchange on-premises, verify your firewall allows connectivity from the list of IP ranges documented in [Microsoft Dynamics CRM Online IP Address Ranges](https://support.microsoft.com/help/2728473) including the referenced [Azure IP ranges](https://support.microsoft.com/help/2728473).
36+
If you're using Dynamics 365 (online) with Exchange on-premises, ensure your firewall allows connectivity from the list of IP ranges documented in [Microsoft Dynamics CRM Online IP Address Ranges](https://support.microsoft.com/help/2728473) including the referenced [Azure IP ranges](https://support.microsoft.com/topic/microsoft-dynamics-crm-online-ip-address-ranges-0b22a844-e61d-443b-482f-945de79f764d).
4037

41-
- **Resolution 3:** The Test Connection results aren't always reliable. If the same username and password works when doing a test connection from [Microsoft Remote Connectivity Analyzer](https://testconnectivity.microsoft.com/tests/o365), use the Test & Enable Mailboxes option in Dynamics 365 instead of the Test Connection option. If the Test & Enable is successful for your mailboxes, you can disregard the results from the **Test Connection** dialog.
38+
## Cause 3: Unreliable test connection results
4239

43-
> [!NOTE]
44-
> If any failures occur using the Test & Enable Mailboxes button, see the **Alerts** tab within the mailbox record and review any help links that are included.
40+
The test connection results aren't always reliable. If the same username and password works when [testing connection with Microsoft Remote Connectivity Analyzer](/power-platform/admin/test-connection-exchange-server-onpremises#test-connection-with-the-microsoft-remote-connectivity-analyzer), use the **Test & Enable Mailboxes** option in Dynamics 365 instead of the **Test Connection** option. If the **Test & Enable Mailboxes** is successful for your mailboxes, you can disregard the results from the **Test Connection** dialog.
41+
42+
> [!NOTE]
43+
> If any failures occur using the **Test & Enable Mailboxes** button, see the **Alerts** tab in the mailbox record and review any help links that are included.

0 commit comments

Comments
 (0)