cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Eliz
New Member

Failed test mailbox in Model driven

Hi all.

I am trying to Test & Enable Mailbox, that was previously approved.

In alerts, there are errors for incoming, outgoing email


>Exception : Validation Failed for Mailbox **************. Unexpected error occured Unhandled exception:
Exception type: Microsoft.Crm.Asynchronous.EmailConnector.MSGraphUserConfigurationValidationException
Message: NoGraphEnabledExchangeMailboxeFound
at Microsoft.Crm.Asynchronous.EmailConnector.GraphUserConfigurationValidator.Validate(IList`1 credentialInfoList, Guid organizationId, Guid mailboxId) at Microsoft.Crm.Asynchronous.EmailConnector.CredentialInfoFactory.EvoStsCredentialInfoProvider.RetrieveAzureActiveDirectoryObjectIdUsingEmailAddress(String emailAddress, ClientServicePrincipal clientServicePrincipal, ServerServicePrincipal serverPrincipal, AuthorizationServerServicePrincipalCollection authorizationServerPrincipals, ITraceListener traceListener, Guid organizationId, IMailboxData mailbox) at Microsoft.Crm.Asynchronous.EmailConnector.CredentialInfoFactory.EvoStsCredentialInfoProvider.GetCredentialInfo(IMail...

0.png0.png

How can I fix it?

5 REPLIES 5
FCGALLEG
Microsoft
Microsoft

Hi Eliz,

 

Please, check his solution:

 

"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)"

Cause


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

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.

 

URL:

https://support.microsoft.com/en-za/help/4092733/an-unknown-error-occurred-while-sending-the-email-m...

 

Regards,

JAvier

Hi,

I do not have option Outgoing Port in this setup

Screenshot_7.png

Hi Eliz,

 

I am having the same issue with a client of mine and was wondering if you ever came up with a resolution to the problem?

 

Best regards

 

David


>Exception : Validation Failed for Mailbox *****************************. Unexpected error occured Unhandled exception:
Exception type: Microsoft.Crm.Asynchronous.EmailConnector.MSGraphUserConfigurationValidationException
Message: NoGraphEnabledExchangeMailboxeFound
at Microsoft.Crm.Asynchronous.EmailConnector.GraphUserConfigurationValidator.Validate(IList`1 credentialInfoList, Guid organizationId, Guid mailboxId) at Microsoft.Crm.Asynchronous.EmailConnector.CredentialInfoFactory.EvoStsCredentialInfoProvider.RetrieveAzureActiveDirectoryObjectIdUsingEmailAddress(String emailAddress, ClientServicePrincipal clientServicePrincipal, ServerServicePrincipal serverPrincipal, AuthorizationServerServicePrincipalCollection authorizationServerPrincipals, ITraceListener traceListener, Guid organizationId, IMailboxData mailbox) at Microsoft.Crm.Asynchronous.EmailConnector.CredentialInfoFactory.EvoStsCredentialInfoProvider.GetCredentialInfo(IMail...

Hi David,

the problem was in the old version of Outlook when it was updated to Office 365 Outlook - that fixed all.

So the reason is that old Outlook does not support exchange for mailboxes.

Hi Eliz,

Thanks for the quick response. That is very useful as the client has a mix of 2013 and 2019 mailboxes and in our case, I think it's likely that Autodiscover is defaulting to the 2013 instance.

Thanks again

David

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (64,372)