Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

"An unknown error occurred while sending the email message" error appears when testing and enabling a mailbox in Dynamics 365


Symptom

When you attempt to test and enable a mailbox in Microsoft Dynamics 365, you encounter the following error:

"An unknown error occurred while sending the email message "Your mailbox is now connected to Dynamics 365". Mailbox <Mailbox Name> didn't synchronize. The owner of the associated email server profile <Profile Name> has been notified."

If you click the Details section, you may also see addition details such as the following text:

"Error : System.Net.Mail.SmtpException: Syntax error, command unrecognized. The server response was: 

   at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.End(IAsyncResult result)
   at System.Net.Mail.SmtpTransport.EndGetConnection(IAsyncResult result)
   at System.Net.Mail.SmtpClient.ConnectCallback(IAsyncResult result)"

↑ Back to the top


Cause

This error can occur if the Outgoing Port value within the Advanced section of the email server profile is not correct.

↑ Back to the top


Resolution

1. Navigate to Settings, Email Configuration, and then click Email Server Profiles.

2. Open the Email Server Profile that is used by the mailbox encountering this error.

 

3. Click Advanced.

4. Correct the Outgoing Port value and then click Save.

 

5. Click Mailboxes and then select the mailbox that encountered the error.

6. Click the Test & Enable Mailboxes button.

7. After the tests complete, open the mailbox record and view the Alerts section if the results do not appear as Success.

↑ Back to the top


Keywords: Gmail, Server-Side Sync, Test & Enable, syntax, unknown

↑ Back to the top

Article Info
Article ID : 4092733
Revision : 3
Created on : 3/2/2018
Published on : 3/2/2018
Exists online : False
Views : 83