Answered by:
CRM 2011 email router - Run As account started to fail.

Question
-
I have had my email router configured to run as the "Local System" ever since it was deployed. In the configuration I have the access creds setup for Local System account and I have added the computer object in AD to the "ProvUserGroup"
Recently outgoing emails started to fail, I opened up the router config loaded the users and clicked test access which gave me a time out error. If I change the service to run under my domain account which is a CRM System Admin along with a local server admin I am able to load the users and complete the tests with no issues.
Nothing has changed on the setup other than monthly patches and UR Rollups. My production environment is on the same setup and the same patch and rollup level and does not have this problem. Any ideas on why the router would have started to fail using Local System as the Run As?????? I dont understand how it has access to load the users but then fails on the email test. We are only using Outgoing SMTP at this time so there is not much to it.
- Moved by JLattimerMVP, Moderator Saturday, January 26, 2013 3:07 AM
Friday, January 25, 2013 8:46 PM
Answers
-
I finally was able to fix this, however this was listed as a fix for CRM 4.0 and both of the circumstances are not true. My deployment has the Org Web Service and Discovery Web Service on the same computer. Either way my problem was resolved with the resolution in this link. I still don't know why my original setup worked for years and randomly stopped working and why this was needed to fix it.........
- Marked as answer by TechGuy18 Friday, May 3, 2013 6:55 PM
Friday, May 3, 2013 6:55 PM
All replies
-
what errors are you getting in the event logs?Thursday, February 28, 2013 4:30 PM
-
Sorry I should have attached that information
Server: smtp host name
Outgoing Status: Failure - An error occurred while checking the connection to the Microsoft Dynamics CRM server http://hostname/org name. Metadata contains a reference that cannot be resolved: 'http://hostname/org name/XrmServices/2011/Organization.svc?wsdl'. The operation has timed out
Event Log on the server: Source: MSCRMEmail, Evetn ID 26234 Level: Error
#26234 - The E-mail Router service could not process a provider work item using assembly: Microsoft.Crm.Tools.EmailProviders.dll and class: Microsoft.Crm.Tools.Email.Providers.SmtpPollingSendEmailProvider. System.InvalidOperationException: Metadata contains a reference that cannot be resolved: 'http://hostname/org name/XrmServices/2011/Organization.svc?wsdl'. ---> System.Net.WebException: The operation has timed out
at System.Net.HttpWebRequest.GetResponse()
at System.ServiceModel.Description.MetadataExchangeClient.MetadataLocationRetriever.DownloadMetadata(TimeoutHelper timeoutHelper)
at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper)
--- End of inner exception stack trace ---
at Microsoft.Crm.ServiceProxyCache`1.GetNewServiceProxy(Uri serviceUrl, Credential credentials, Uri homeRealmUrl, String passportEnvironment, String onlineServiceEnvironment)
at Microsoft.Crm.Tools.Email.Providers.Utility.BuildOrganizationService(Uri organizationServiceUrl, Credential credentials)
at Microsoft.Crm.Tools.Email.Providers.Utility.GetCrmService(Uri discoveryUri, String authMode, String userName, String password)
at Microsoft.Crm.Tools.Email.Providers.CrmPollingSendEmailProvider.Run()
at Microsoft.Crm.Tools.Email.Agent.ServiceCore.ExecuteProviderWork(Object providerQueueRequestObject)
Thursday, February 28, 2013 4:32 PM -
is the email router installed on the crm server?
Do you have any Proxies in place?
Thursday, February 28, 2013 5:02 PM -
The router is installed on the Application box. We do have a explicit proxy for Internet Access.
Thursday, February 28, 2013 5:18 PM -
try taking a fiddler trace when the error is getting generated to see if it captures anything.
Also try taking a trace when the service is running under a domain account to see if you are getting any 407 proxy authentication needed requests. It could be that the Local System account doesn't have permissions to get past the proxy. I know this sounds kind of dumb since its installed on the CRM server, but its something worth checking.
Thursday, February 28, 2013 11:35 PM -
I have never used Fiddler before, I am having issues with it. When I open the program it reconfigures my IE proxy settings to point to the local box. With this setting in place everything fails. The email router cant even load the data, it times out and Internet does not work on the server. I would expect all of this to happen. If change the settings Fiddler gets mad and changes them back.
Thursday, April 4, 2013 8:14 PM -
I finally was able to fix this, however this was listed as a fix for CRM 4.0 and both of the circumstances are not true. My deployment has the Org Web Service and Discovery Web Service on the same computer. Either way my problem was resolved with the resolution in this link. I still don't know why my original setup worked for years and randomly stopped working and why this was needed to fix it.........
- Marked as answer by TechGuy18 Friday, May 3, 2013 6:55 PM
Friday, May 3, 2013 6:55 PM