CRM 4.0 - Email Router - Forward Mailbox Hangs on Emails with '+' and other Special Characters in the subject RRS feed

  • Question

  • Hi there,


    We're having an issue with some emails not being populated to CRM


    Incoming emails to the CRM Forward Mailbox are normally processed and then removed form the mailbox but emails with + signs or invalid characters in the subject are not being processed and the Email Router is logging the following error on the CRM server



    Event Type:      Error

    Event Source:  MSCRMEmailLog

    Event Category:           None

    Event ID:          0

    Date:                14/10/2010

    Time:               09:08:57

    User:                N/A

    Computer:        Server



    #27938 - An error occurred while checking for e-mail messages to process in mailbox CRMFORWARD@XXXXXX.com. System.Net.WebException: The remote server returned an error: (404) Not Found.

       at System.Net.HttpWebRequest.GetResponse()

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

       at Microsoft.Crm.Tools.Email.Providers.HttpDavRequest.RetrieveMessage(ServiceLogger serviceLogger)

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

       at Microsoft.Crm.Tools.Email.Providers.CrmPollingMailboxProvider.RetrieveNextMessage()

       at Microsoft.Crm.Tools.Email.Providers.CrmPollingMailboxProvider.Run()


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


    After doing some research and finding a couple of websites, I've found this possible solution:


    With Exchange 2007 running on a Windows Server 2008 box, there is a known issue with Forward Mailbox not correctly processing emails containing special characters, such as the '+' symbol in the subject line.  The email router 'hangs' on the email in question and fails to process it and subsequent messages.

    In addition to the email sticking in the mailbox, the Application Log on the server running the Email Router will log 404 errors for MSCRMEmail.  The exact status of the error is: Request Filtering: Denied because URL doubled escaping 404.11.  ...

    The fix is to run the following from a command prompt on the Exchange server.  This will allow double escaping.

    %windir%\system32\inetsrv\appcmd set config "Default Web Site" -section:system.webServer/security/requestfiltering -allowDoubleEscaping:true


    (NOTE: I've copied the text from this website: http://blog.customereffective.com/blog/2009/02/crm-40-forward-mailbox-hangs-on-emails-with-and-other-special-characters---exchange-2007-on-server-2008.html)


    The error “Request Filtering: Denied because URL doubled escaping 404.11” is NOT logged anywhere in our Exchange Server (neither the event log of the Exchange Server nor the IIS log) so we’re not sure if the issue is related to this fix.


    Have any of you had this issue and managed to resolve it? In which log should I find the error “Request Filtering: Denied because URL doubled escaping 404.11” on the Exchange server?


    Thanks in advance





    Wednesday, October 20, 2010 8:33 PM