locked
MSCRMEmail error set in the servers eventlog every 15 minutes RRS feed

  • Question

  • Hi all,

     

    I get an error in the eventlog every 15 minute on the server.

    We have 1 single server that is running 2003 server, Exchange 2007, SQL server 2005 and CRM 4.0 and CRM Email Router.

     

    CRM Settings:

    In CRM --> Settings --> Administration --> User's have I set Email Access Configuration: Email Router for both incoming and outgoing on all users.

     

    On the email tab under set Personal Options have I set Allow use of e-mail credetials and input the username and password.

     

    Email Router Settings:

    Configuration Profiles tab (Incoming profile)

    E-mail server Type: Exchange

    Authentication Type: Windows Authentication

    Location Server: http://mail.domain.com/

    Access Credentials: User Specified

     

    Configuration Profiles tab (Outgoing profile)

    E-mail server Type: SMTP

    Authentication Type: Windows Authentication

    Location Server: mail.domain.com

    Access Credentials: Local System Account

     

    Deployments tab

    MIcrosoft Dynamics CRM server: http://servername:5555/company_name

    Access Credentials: Local System Account

    And to use my profiles for incoming and outgoing described above.

     

    Below is the error that gets set every 15 minute:

    #26090 - An error occurred while opening mailbox username@domain.com. Microsoft.Crm.Tools.Email.Providers.EmailException: The remote Microsoft Exchange e-mail server returned the error "(401) Unauthorized". Verify that you have permission to connect to the mailbox. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.

    at System.Net.HttpWebRequest.GetResponse()

    at Microsoft.Crm.Tools.Email.Providers.HttpDavRequest.SubmitXmlCommand(HttpWebRequest httpWebRequest, String body)

    at Microsoft.Crm.Tools.Email.Providers.HttpDavRequest.RetrieveInboxUri()

    at Microsoft.Crm.Tools.Email.Providers.ExchangePollingMailboxProvider.OpenMailbox()

    --- End of inner exception stack trace ---

    at Microsoft.Crm.Tools.Email.Providers.ExchangePollingMailboxProvider.WrapException(Exception e)

    at Microsoft.Crm.Tools.Email.Providers.ExchangePollingMailboxProvider.OpenMailbox()

    at Microsoft.Crm.Tools.Email.Providers.CrmPollingMailboxProvider.Run()\r\nSystem.Net.WebException: The remote server returned an error: (401) Unauthorized.

    at System.Net.HttpWebRequest.GetResponse()

    at Microsoft.Crm.Tools.Email.Providers.HttpDavRequest.SubmitXmlCommand(HttpWebRequest httpWebRequest, String body)

    at Microsoft.Crm.Tools.Email.Providers.HttpDavRequest.RetrieveInboxUri()

    at Microsoft.Crm.Tools.Email.Providers.ExchangePollingMailboxProvider.OpenMailbox()

    For more information, see Help and Support Center at

     

    Thanks in advance on all the help I can get.

    Best regards,

    Johan Lindberg

    Tuesday, November 11, 2008 2:35 PM

Answers

  • Please see the changes below.  After you make the changes, be sure to publish them.  Once we have a successful test, please reboot your CRM & Exchange servers if that is possible.  After the reboot, ensure everything is working as expected and all settings were saved as they existed before the reboot.

     

    Configuration Profiles tab (Incoming profile) (Advanced tab has default settings)

    E-mail server Type: Exchange

    Authentication Type: Windows Authentication

    Location Server: http://mail.companyname.com (OWA)

    Access Credentials: Other specified Specified

    Domain administrator login account

     

    Configuration Profiles tab (Outgoing profile) (Advanced tab has default settings)

    E-mail server Type: SMTP

    Authentication Type: Windows Authentication

    Location Server: exchangeservername

    Access Credentials: Local System Account

     

    Deployments tab

    MIcrosoft Dynamics CRM server: http://servername:5555/company_name 

    you may need to remove the port number on this. 

    Try the other changes first and see if that fixes the issue.  If not, then remove the port number

    Access Credentials: Local System Account

    And to use my profiles for incoming and outgoing described above.

    Tuesday, November 18, 2008 3:46 PM

All replies

  • Hi Johan,

     

    Thank you for the details provided, they are helpful.  When you select the Users, Queues.... tab, select Load Data and test access, do you have a successful test?  Chances are, based on the error above, that you are not having a successful test.

     

    Try changing the Access Credentials on Configuration Profiles tab (Outgoing profile) to User Specified and use a domain admin account.  You can use the same account that you are using for Incoming if that user has domain admin rights.  Also, change the value of the Location Server to the exchange server name 'exchangeservername'.

     

    On the Deployments tab, try this format http://servername/company_name and set the Access Credentials to the same as the incoming and outgoing profile.

     

    Load data and test access to see what result you receive.

     

     

     

    Tuesday, November 11, 2008 4:17 PM
  •  

    Hi Donna,

     

    Thank you very much for your reply.

    If I select Test Access on the Users, Queues, and Forward Mailboxes tab. This is the result:

    Name: Username 1

    Incoming Status: Failure - The remote Microsoft Exchange e-mail server returned the error "(401) Unauthorized". Verify that you have permission to connect to the mailbox. The remote server returned an error: (401) Unauthorized.

    Name: Username 2

    Incoming Status: Failure - The remote Microsoft Exchange e-mail server returned the error "(401) Unauthorized". Verify that you have permission to connect to the mailbox. The remote server returned an error: (401) Unauthorized.

    Name: Username 3

    Incoming Status: Failure - The remote Microsoft Exchange e-mail server returned the error "(401) Unauthorized". Verify that you have permission to connect to the mailbox. The remote server returned an error: (401) Unauthorized.

    Server: mail.domain.com

    Outgoing Status: Succeeded

     

    Configuration Profiles (Incoming):

    Profile Name: Domainname_In

    Direction: Incoming

    E-Mail Server Type: Exchange

     

    Authentication Type

    Windows Authentication

     

    Location Server: http://mail.domain.com <-- When I changed this to http://exchangeservername it started working for most accounts but not all but it is going in the right direction Smile

     

    Access Credentials: Other Specified

    Administrator

    *****

     

     

    I have set that the Administrator account has full access permission for all employees mailboxes but still does not work for all employees:

     

    Name: Christopher

    Incoming Status: Failure - The remote Microsoft Exchange e-mail server returned the error "(401) Unauthorized". Verify that you have permission to connect to the mailbox. The remote server returned an error: (401) Unauthorized.

    Name: Atma

    Incoming Status: Succeeded

    Name: Lena

    Incoming Status: Succeeded

    Name: Anders

    Incoming Status: Succeeded

    Name: Christine

    Incoming Status: Succeeded

    Name: Niklas

    Incoming Status: Succeeded

    Name: Tech Support

    Incoming Status: Succeeded

    Server: mail.navaero.com

    Outgoing Status: Succeeded


    Can you think of anything that could cause that?

    Best regards,

    Johan Lindberg

    Thursday, November 13, 2008 3:23 PM
  • Good, it looks like we made some good progress. 

     

    I would try to track down what is different about Christopher's AD account from the others.  It looks like things are now working for you but there is possibly something different in relationship to Christopher's AD user account.  You can try using a different login for your incoming profile and see if that makes any difference just remember what you have it set to now so you can go back. 

    Thursday, November 13, 2008 4:42 PM
  • Hi Donna,

     

    CRM Email router passes all the tests now, thank you very much.

     

    However I started to get new event log erros set from CRM, maybe you can help me with those also on how to proceed and resolve those errors?

     

    Error 1:

    #9628 - An error occurred while delivering the e-mail message with subject "3D files and integration information navAero:00200009" in mailbox username@domain.com for delivery to http://exchangeservername:5555/companyname. System.Web.Services.Protocols.SoapException: Maximum request length exceeded.

    at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)

    at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

    at Microsoft.Crm.Sdk.Proxy.CrmService.Execute(Request Request)

    at Microsoft.Crm.Tools.Email.Providers.CrmPollingMailboxProvider.DeliverMessageInternal(EmailMessage emailMessage)

    at Microsoft.Crm.Tools.Email.Providers.ExchangePollingMailboxProvider.DeliverMessageInternal(EmailMessage emailMessage)

    at Microsoft.Crm.Tools.Email.Providers.CrmPollingMailboxProvider.DeliverMessage(EmailMessage emailMessage)

    at Microsoft.Crm.Tools.Email.Providers.CrmPollingMailboxProvider.Run()\r\nMaximum request length exceeded.Not availableNot availableMaximum request length exceeded.http://exchangeservername:5555/MSCRMServices/2007/CrmService.asmx/MSCRMServices/2007/CrmService.asmxSOAP

    For more information, see Help and Support Center at

     

    Error 2:

    ASP.NET 2.0

    Event id: 1309

    Event code: 3004

    Event message: Post size exceeded allowed limits.

    Event time: 11/13/2008 11:25:45 PM

    Event time (UTC): 11/13/2008 10:25:45 PM

    Event ID: b3f7ae7ed46b4c078bb97ff52c78a2ab

    Event sequence: 15981

    Event occurrence: 101

    Event detail code: 0

    Application information:

    Application domain: /LM/W3SVC/3/Root-1-128710849530533711

    Trust level: Full

    Application Virtual Path: /

    Application Path: C:\Program Files\Microsoft Dynamics CRM\CRMWeb\

    Machine name: EXCHANGESERVERNAME

    Process information:

    Process ID: 9128

    Process name: w3wp.exe

    Account name: NT AUTHORITY\NETWORK SERVICE

    Exception information:

    Exception type: HttpException

    Exception message: Maximum request length exceeded.

    Request information:

    Request URL: http://exchangeservername:5555/MSCRMServices/2007/CrmService.asmx

    Request path: /MSCRMServices/2007/CrmService.asmx

    User host address: 172.16.8.8

    User: NT AUTHORITY\SYSTEM

    Is authenticated: True

    Authentication Type: Negotiate

    Thread account name: NT AUTHORITY\NETWORK SERVICE

    Thread information:

    Thread ID: 10

    Thread account name: NT AUTHORITY\NETWORK SERVICE

    Is impersonating: True

    Stack trace: at System.Web.HttpRequest.GetEntireRawContent()

    at System.Web.HttpRequest.get_InputStream()

    at Microsoft.Crm.WebServices.Crm2007.MultipleOrganizationSoapHeaderAuthenticationProvider.CreateAuthenticationToken(HttpApplication application)

    at Microsoft.Crm.WebServices.SoapHeaderAuthenticationProviderBase.Authenticate(HttpApplication application)

    at Microsoft.Crm.Authentication.AuthenticationStep.Authenticate(HttpApplication application)

    at Microsoft.Crm.Authentication.AuthenticationPipeline.Authenticate(HttpApplication application)

    at Microsoft.Crm.Authentication.AuthenticationEngine.Execute(Object sender, EventArgs e)

    at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    Custom event details:

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

      

    Warning 3:

    #35241 - The recipients for the e-mail message with subject "Utvärdering" in mailbox username@domain.com did not match any known records.

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

     

    Warning 4:

    #35241 - The recipients for the e-mail message with subject "SUPPLIER CONFERENCE CALL -- FRIDAY, NOVEMBER 14, 10:00 a.m. MOUNTAIN TIME" in mailbox username@domain.com did not match any known records.

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

     

    Warning 5:

    #35241 - The recipients for the e-mail message with subject "ECLIPSE SUPPLIER CONFERENCE CALL -- FRIDAY, NOVEMBER 14, 10:00 a.m. MOUNTAIN TIME" in mailbox username@domain.com did not match any known records.

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

     

    Thank you

     

    Regards

    Johan

    Friday, November 14, 2008 11:33 AM
  • Hi,

     

    With regard to "Post size exceeded allowed limits", see this post in the forum.  The file size probably exceeded the limit.

     

    http://forums.microsoft.com/Dynamics/ShowPost.aspx?PostID=2963501&SiteID=27

     

    "The recipients for the e-mail message with subject"

     

    Here is a good post on how to troubleshoot e-mail errors.  Check it out and I think you will probably find what you need.

     

    http://blogs.msdn.com/benlec/archive/2008/05/05/troubleshooting-crm-e-mail-issues-in-microsoft-crm-4-0.aspx

     

     

    Friday, November 14, 2008 12:07 PM
  • Hi Donna,

     

    I did a restart of the server yesterday and now I got a diffrent error when I do test access from Email router configuration mananger:

    Name: Anders Mattsson
    Incoming Status: Failure - The remote server returned an error: (503) Server Unavailable.

    Name: Christine Andersson
    Incoming Status: Failure - The remote server returned an error: (503) Server Unavailable.

    Name: Niklas Lepistö
    Incoming Status: Failure - The remote server returned an error: (503) Server Unavailable.

    Name: Tech Support
    Incoming Status: Failure - The remote server returned an error: (503) Server Unavailable.

    Server: mail.navaero.com
    Outgoing Status: Succeeded

     

    If I change the incoming profile Local server seeting back to http://mail.domain.com I get the error "(401) Unauthorized" again.

     

    Do you now what could have caused this error when I reboted the server?

     

    Thank you in advance

     

    Best regards,

    Johan

     

    Monday, November 17, 2008 3:23 PM
  • Hi Johan,

     

    Change your incoming profile back to what is was when we had it working.  Check your Microsoft CRM E-mail Router service under Services, and use a Domain Admin account as the logon.  See if that corrects the error:

     

    The remote server returned an error: (503) Server Unavailable

     

     

     

    Monday, November 17, 2008 3:33 PM
  • Hi Donna,

    The CRM E-Mail Router Service is running and a restart of that service did not solve the error.

    I am still using the administrator account as the logon name and changed Local server back to http://exchangeservername

     

    Fault is very strange as I have not changed any settings from when we got it to work

     

    Additional information, I installed all the updates that was available for server 2003 when I restarted the server.

     

    Regards,

    Johan

    Monday, November 17, 2008 3:48 PM
  • Hi Johan

     

    What login are you using for the Email Router Service under Services on your Server?  If it is local, Network or some other login, change it to a Domain login that has rights to the Exchange server 'CRM E-Mail Router Service'.  The reboot might have brought an overlooked issue to light. 

     

    It looks to me like the server can not communicate with the Exchange Server right now, which to me, points back to the Service running the E-mail Router.

    Monday, November 17, 2008 5:00 PM
  • The Email Router Service login had Local system account, changed it to the domain administrator login (still the same error).

    In CRM Email Router configurations manager I also have the domain administrator login (that worked before restart of the server). If I misspell the the login name I get the previous error:

    Name: Christine Andersson

    Incoming Status: Failure - The remote Microsoft Exchange e-mail server returned the error "(401) Unauthorized". Verify that you have permission to connect to the mailbox. The remote server returned an error: (401) Unauthorized.

    Name: Niklas Lepistö

    Incoming Status: Failure - The remote Microsoft Exchange e-mail server returned the error "(401) Unauthorized". Verify that you have permission to connect to the mailbox. The remote server returned an error: (401) Unauthorized.

    Name: Tech Support

    Incoming Status: Failure - The remote Microsoft Exchange e-mail server returned the error "(401) Unauthorized". Verify that you have permission to connect to the mailbox. The remote server returned an error: (401) Unauthorized.

    Server: mail.navaero.com

    Outgoing Status: Succeeded

     

    So looks like it can contact the server with http://exchangeservername

    But when I have the correct spelling i get the error:

    Name: Anders Mattsson

    Incoming Status: Failure - The remote server returned an error: (503) Server Unavailable.

    Name: Christine Andersson

    Incoming Status: Failure - The remote server returned an error: (503) Server Unavailable.

    Name: Niklas Lepistö

    Incoming Status: Failure - The remote server returned an error: (503) Server Unavailable.

    Name: Tech Support

    Incoming Status: Failure - The remote server returned an error: (503) Server Unavailable.

    Server: mail.navaero.com

    Outgoing Status: Succeeded

    Monday, November 17, 2008 5:35 PM
  • Please provide the details from each tab in your e-mail router configuration.

     

    Thank you

    Monday, November 17, 2008 9:50 PM
  • Hi Donna,

    Below are the Email Router Settings:

     

    Configuration Profiles tab (Incoming profile) (Advanced tab has default settings)

    E-mail server Type: Exchange

    Authentication Type: Windows Authentication

    Location Server: http://exchangeservername

    Access Credentials: Other specified Specified

    Domain administrator login account (have set that account to have full permissions for all mailboxes)

     

    Configuration Profiles tab (Outgoing profile) (Advanced tab has default settings)

    E-mail server Type: SMTP

    Authentication Type: Windows Authentication

    Location Server: mail.domain.com

    Access Credentials: Local System Account

     

    Deployments tab

    MIcrosoft Dynamics CRM server: http://servername:5555/company_name

    Access Credentials: Local System Account

    And to use my profiles for incoming and outgoing described above.

     

    Test Access:

    Name: Christine Andersson

    Incoming Status: Failure - The remote server returned an error: (503) Server Unavailable.

    Name: Niklas Lepistö

    Incoming Status: Failure - The remote server returned an error: (503) Server Unavailable.

    Name: Tech Support

    Incoming Status: Failure - The remote server returned an error: (503) Server Unavailable.

    Server: mail.navaero.com

    Outgoing Status: Succeeded

     

     

    Service:

    Microsoft CRM Email Router Logon: Domain administrator account

     

    Regards,

    Johan

    Tuesday, November 18, 2008 9:22 AM
  • Please see the changes below.  After you make the changes, be sure to publish them.  Once we have a successful test, please reboot your CRM & Exchange servers if that is possible.  After the reboot, ensure everything is working as expected and all settings were saved as they existed before the reboot.

     

    Configuration Profiles tab (Incoming profile) (Advanced tab has default settings)

    E-mail server Type: Exchange

    Authentication Type: Windows Authentication

    Location Server: http://mail.companyname.com (OWA)

    Access Credentials: Other specified Specified

    Domain administrator login account

     

    Configuration Profiles tab (Outgoing profile) (Advanced tab has default settings)

    E-mail server Type: SMTP

    Authentication Type: Windows Authentication

    Location Server: exchangeservername

    Access Credentials: Local System Account

     

    Deployments tab

    MIcrosoft Dynamics CRM server: http://servername:5555/company_name 

    you may need to remove the port number on this. 

    Try the other changes first and see if that fixes the issue.  If not, then remove the port number

    Access Credentials: Local System Account

    And to use my profiles for incoming and outgoing described above.

    Tuesday, November 18, 2008 3:46 PM