web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CRM 2015 Exchange Integration using a Queue

(0) ShareShare
ReportReport
Posted on by

I am using on-premise Dynamics 2015 with Exchange Server 2010.

My goal is to fetch emails from a single mailbox on Exchange into a queue in the CRM using Server-side Synchronisation.

I have set up an Email Server Profile in the CRM pointing across to Exchange which authenticates using "Credentials Specified by a User or Queue".

I have set up my queue to work on the mailbox. The queue specifies the credentials to use - the user I have specified is the owner of the mailbox on the Exchange server.

When I try to enable and test the mailbox I get this error: 

"The email message "Test Message" cannot be sent because a server certificate required to connect to the email server using SSL could not be validated. The mailbox Test Exchange Integration has been disabled for sending email and the owner of the email server profile FOEVMEXCHG01 has been notified."

I have Googled this error followed the suggestion of "importing the certificates of each server to one another" but the error persists.

Any suggestions?

Thanks,

Mike

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Hello Mike,

    You are receiving error because the CRM server is not on HTTPS. You need to get the CRM server on HTTPS . For server side sync SSL is must.

    Please run the below script on the CRM database in SQL, if you don't want to get the CRM on SSL.

    add-pssnapin Microsoft.Crm.Powershell

    $itemSetting = new-object 'System.Collections.Generic.KeyValuePair[String,Object]'("AllowCredentialsEntryViaInsecureChannels",1)

    $configEntity = New-Object "Microsoft.Xrm.Sdk.Deployment.ConfigurationEntity"

    $configEntity.LogicalName="Deployment"

    $configEntity.Attributes = New-Object "Microsoft.Xrm.Sdk.Deployment.AttributeCollection"

    $configEntity.Attributes.Add($itemSetting)

    Set-CrmAdvancedSetting -Entity $configEntity

    $itemSetting = new-object 'System.Collections.Generic.KeyValuePair[String,Object]'("ECAllowNonSSLEmail",1)

    $configEntity = New-Object "Microsoft.Xrm.Sdk.Deployment.ConfigurationEntity"

    $configEntity.LogicalName="Deployment"

    $configEntity.Attributes = New-Object "Microsoft.Xrm.Sdk.Deployment.AttributeCollection"

    $configEntity.Attributes.Add($itemSetting)

    Set-CrmAdvancedSetting -Entity $configEntity

    Regards,

    Dinesh 

    Microsoft Dynamicsâ„¢ CRM Support Engineer

    "Please mark my answer as verified if you found it helpful"

  • Community Member Profile Picture
    on at

    Thank you for your suggestion Dinesh.

    I have run that script in Powershell but I still get the "Connection to the email server using SSL could not be validated" error when testing the mailbox.

    I know that the script has worked because when defining the mailbox  the "Allow to Use Credentials for Email Processing" setting is no longer set to No and disabled. I have instead entered the user name and password associated with the mailbox email address on the exchange server.

    I can use OWA from my CRM server to access the mailbox so I know that the user name and password are correct.

    Does anyone have any other suggestions please?

    Thanks,

    Mike

  • Community Member Profile Picture
    on at

    I have got the integration working now by switching to a non-SSL interface.

    To do this I had to make these changes in the Email Server Profile in the CRM:

    • Changed the Incoming Server Location and Outgoing Server Location URLs to use HTTP
    • Set  Use SSL For Incoming Connection on the Incoming and Outgoing ports to No

    Also in IIS on the Exchange Server I changed the SSL Settings in the EWS application to not Require SSL

    This will enable me to continue my prototyping work but an SSL interface will no doubt be required in a live deployment.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans