When you attempt to test and enable a mailbox in Microsoft Dynamics 365, you encounter the following error:
"Email cannot not be received for the mailbox [mailbox name] because the email server location or the incoming email port specified in the associated email server profile [profile name] is incorrect. The mailbox didn't synchronize. The owner of the email server profile has been notified.
Email Server Error Code: Socket returned exception InvalidIncomingEmailServerProfileConfiguration HostNotFound."
If you click details, you see the following additional details
"ActivityId: <GUID>
>Error : System.Net.Sockets.SocketException (0x80004005): No such host is known
at System.Net.Dns.GetAddrInfo(String name)
at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)
at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)
at System.Net.Sockets.TcpClient.Connect(String hostname, Int32 port)
at Microsoft.Crm.Asynchronous.EmailConnector.Pop3Client.Connect()"