"A general mailbox access error occurred while receiving email" error when testing and enabling a mailbox
This article provides a solution to an error that occurs when you test and enable a mailbox in Microsoft Dynamics 365.
Applies to: Microsoft Dynamics 365
Original KB number: 4092736
Symptoms
When you try to test and enable a mailbox in Dynamics 365, you receive the following error message:
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.
Email Server Error Code: Socket returned exception TimedOut.
If you select the Details section, you might also see more details that resemble the following text:
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>
at System.Net.Sockets.TcpClient.Connect(String hostname, Int32 port)
at Microsoft.Crm.Asynchronous.EmailConnector.Pop3Client.Connect()
Cause
This error can occur if the port values within the Advanced section of the email server profile aren't correct.
Resolution
Sign in to the Dynamics 365 web application as a user with the "System Administrator" role.
Navigate to Settings > Email Configuration, and then select Email Server Profiles.
Open the email server profile used by the mailbox that received the error.
Note
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.
Select Advanced.
Verify that both the Incoming Port and Outgoing Port values are correct according to your email provider's documentation, and then select Save.
Note
For example, for Gmail, the incoming POP3 port is 995, and the outgoing SMTP port is 587.
Select Mailboxes, and then select the mailbox that received the error.
Select the Test & Enable Mailboxes button.
After the test is complete, verify that the results appear as Success. Otherwise, review the Alerts section of your mailbox record for any alerts.
Third-party information disclaimer
The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these products.