|
1 | 1 | --- |
2 | | -title: A general mailbox access error occurred |
3 | | -description: Provides a solution to the 0x80004005 error that occurs when you attempt to test and enable a mailbox in Microsoft Dynamics 365. |
| 2 | +title: A general mailbox access error occurred while receiving email |
| 3 | +description: Resolves the Socket returned exception TimedOut (0x80004005) error that occurs when you test and enable a mailbox in Microsoft Dynamics 365. |
4 | 4 | ms.reviewer: |
5 | | -ms.topic: troubleshooting |
6 | | -ms.date: 11/19/2024 |
| 5 | +ms.date: 12/30/2024 |
7 | 6 | ms.custom: sap:Email and Exchange Synchronization |
8 | 7 | --- |
9 | | -# A general mailbox access error occurred while receiving email error appears when testing and enabling a mailbox in Microsoft Dynamics 365 |
| 8 | +# "A general mailbox access error occurred while receiving email" error when testing and enabling a mailbox |
10 | 9 |
|
11 | | -This article provides a solution to an error that occurs when you attempt to test and enable a mailbox in Microsoft Dynamics 365. |
| 10 | +This article provides a solution to an error that occurs when you test and enable a mailbox in Microsoft Dynamics 365. |
12 | 11 |
|
13 | 12 | _Applies to:_ Microsoft Dynamics 365 |
14 | 13 | _Original KB number:_ 4092736 |
15 | 14 |
|
16 | 15 | ## Symptoms |
17 | 16 |
|
18 | | -When you attempt to test and enable a mailbox in Microsoft Dynamics 365, you receive the following error: |
| 17 | +When you try to [test and enable a mailbox](/power-platform/admin/connect-exchange-online#test-the-configuration-of-mailboxes) in Dynamics 365, you receive the following error message: |
19 | 18 |
|
20 | | -> "A general mailbox access error occurred while receiving email. Mailbox \<Mailbox Name> didn't synchronize. The owner of the associated email server profile \<Profile Name> has been notified. |
21 | | -**Email Server Error Code:** Socket returned exception TimedOut." |
| 19 | +> A general mailbox access error occurred while receiving email. Mailbox \<Mailbox Name> didn't synchronize. The owner of the associated email server profile \<Profile Name> has been notified. |
| 20 | +> **Email Server Error Code:** Socket returned exception TimedOut. |
22 | 21 |
|
23 | | -If you select the **Details** section, you may also see more details such as the following text: |
| 22 | +If you select the **Details** section, you might also see more details that resemble the following text: |
24 | 23 |
|
25 | | -> "Error : System.Net.Sockets.SocketException (0x80004005): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond \<IP Address>\<Port> |
| 24 | +> Error: System.Net.Sockets.SocketException (0x80004005): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond \<IP Address>\<Port> |
26 | 25 | at System.Net.Sockets.TcpClient.Connect(String hostname, Int32 port) |
27 | | - at Microsoft.Crm.Asynchronous.EmailConnector.Pop3Client.Connect()" |
| 26 | + at Microsoft.Crm.Asynchronous.EmailConnector.Pop3Client.Connect() |
28 | 27 |
|
29 | 28 | ## Cause |
30 | 29 |
|
31 | | -This error can occur if the port values within the Advanced section of the email server profile aren't correct. |
| 30 | +This error can occur if the port values within the **Advanced** section of the email server profile aren't correct. |
32 | 31 |
|
33 | 32 | ## Resolution |
34 | 33 |
|
35 | | -1. Navigate to **Settings**, **Email Configuration**, and then select **Email Server Profiles**. |
36 | | -2. Open the Email Server Profile that is used by the mailbox meeting this error. |
| 34 | +1. Sign in to the Dynamics 365 web application as a user with the "System Administrator" role. |
| 35 | +1. Navigate to **Settings** > **Email Configuration**, and then select **Email Server Profiles**. |
| 36 | +1. Open the email server profile used by the mailbox that received the error. |
37 | 37 |
|
38 | 38 | > [!NOTE] |
39 | | - > You can also select the name of the Email Server Profile within the error message. It appears as a hyperlink which will open the correct Email Server Profile record. |
| 39 | + > You can also select the name of the email server profile within the error message. It appears as a hyperlink that will open the correct email server profile record. |
40 | 40 |
|
41 | | -3. Select **Advanced**. |
42 | | -4. Verify the **Incoming Port** and **Outgoing Port** values and then select **Save**. |
| 41 | +1. Select **Advanced**. |
| 42 | +1. Verify that both the **Incoming Port** and **Outgoing Port** values are correct according to your email provider's documentation, and then select **Save**. |
43 | 43 |
|
44 | 44 | > [!NOTE] |
45 | | - > Refer to the documentation from your email provider for the correct ports to use when connecting to the SMTP service. For [Gmail](https://support.google.com/mail/answer/7104828), the incoming POP3 port is 995 and outgoing SMTP port is 587. |
| 45 | + > For example, for [Gmail](https://support.google.com/mail/answer/7104828), the incoming POP3 port is 995, and the outgoing SMTP port is 587. |
46 | 46 |
|
47 | | -5. Select **Mailboxes** and then select the mailbox that received the error. |
48 | | -6. Select the **Test & Enable Mailboxes** button. |
49 | | -7. After the tests complete, open the mailbox record and view the **Alerts** section if the results don't appear as Success. |
| 47 | +1. Select **Mailboxes**, and then select the mailbox that received the error. |
| 48 | +1. Select the **Test & Enable Mailboxes** button. |
| 49 | +1. After the test is complete, verify that the results appear as **Success**. Otherwise, [review the Alerts section](/power-platform/admin/monitor-email-processing-errors#view-alerts) of your mailbox record for any alerts. |
50 | 50 |
|
51 | 51 | [!INCLUDE [Third-party disclaimer](../../../includes/third-party-disclaimer.md)] |
0 commit comments