Microsoft > Dynamics Forums > CRM > (404) Not Found when using V4 Email Router

Answered (404) Not Found when using V4 Email Router

  • Monday, April 14, 2008 11:50 PM
     
     

    Hi,

     

    I am getting the same type of error message for only a handful of our users.  We hvae about 11 queues setup for inbound email and 4 of them get these error messages

    Code Snippet

    Incoming Status: Failure - The remote Microsoft Exchange e-mail server returned the error "(404) Not Found". This user or queue does not have a mailbox. Create a mailbox and try again. The remote server returned an error: (404) Not Found.

     

     

    my event viewer shows this error;

    Code Snippet

    #26090 - An error occurred while opening mailbox xxx@mydomain.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. ---> System.ComponentModel.Win32Exception: The logon attempt failed

    at System.Net.NTAuthentication.GetOutgoingBlob(Byte[] incomingBlob, Boolean throwOnError, SecurityStatus& statusCode)

    at System.Net.NTAuthentication.GetOutgoingBlob(String incomingBlob)

    at System.Net.NegotiateClient.DoAuthenticate(String challenge, WebRequest webRequest, ICredentials credentials, Boolean preAuthenticate)

    at System.Net.NegotiateClient.Authenticate(String challenge, WebRequest webRequest, ICredentials credentials)

    at System.Net.AuthenticationManager.Authenticate(String challenge, WebRequest request, ICredentials credentials)

    at System.Net.AuthenticationState.AttemptAuthenticate(HttpWebRequest httpWebRequest, ICredentials authInfo)

    at System.Net.HttpWebRequest.CheckResubmitForAuth()

    at System.Net.HttpWebRequest.CheckResubmit(Exception& e)

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

    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. ---> System.ComponentModel.Win32Exception: The logon attempt failed

    at System.Net.NTAuthentication.GetOutgoingBlob(Byte[] incomingBlob, Boolean throwOnError, SecurityStatus& statusCode)

    at System.Net.NTAuthentication.GetOutgoingBlob(String incomingBlob)

    at System.Net.NegotiateClient.DoAuthenticate(String challenge, WebRequest webRequest, ICredentials credentials, Boolean preAuthenticate)

    at System.Net.NegotiateClient.Authenticate(String challenge, WebRequest webRequest, ICredentials credentials)

    at System.Net.AuthenticationManager.Authenticate(String challenge, WebRequest request, ICredentials credentials)

    at System.Net.AuthenticationState.AttemptAuthenticate(HttpWebRequest httpWebRequest, ICredentials authInfo)

    at System.Net.HttpWebRequest.CheckResubmitForAuth()

    at System.Net.HttpWebRequest.CheckResubmit(Exception& e)

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

    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 http://go.microsoft.com/fwlink/events.asp.

     

     

Answers

  • Wednesday, November 12, 2008 9:57 PM
     
     Answered

    This issue pertains to the use of the Microsoft CRM Email Router when used with an incoming Exchange profile.

     

    The email router service uses the first part of the UPN email address (before the @ symbol) as the NETBOIS name of the exchange account to be queried on the mailbox server.  This can be found by looking at the IIS logs on the Mailbox server.

     

    The email address of the user we were trying to configure was barack@demo10.onenetservices.co.nz and we were continually being prompted with a:

     

    #26090 - An error occurred while opening mailbox barack@demo10.onenetservices.co.nz. Microsoft.Crm.Tools.Email.Providers.EmailException: The remote Microsoft Exchange e-mail server returned the error "(404) Not Found". This user or queue does not have a mailbox. Create a mailbox and try again. --->

     

    This was causing the follow to be recorded in the IIS log on the MBX server

     

    2008-11-12 01:48:03 10.10.0.142 PROPFIND /Exchange/barack - 80 ONENETSERVICES\barack_demo10 10.10.0.93 - 404 0 0 15

     

    The issue is that the “barack” as highlighted above, actually comes from the “Primary Email” field in the user section from the CRM UI.  The email router only uses the characters to the left of the @ symbol as the pre-windows 2000 (NETBOIS) name which is incorrect.

     

    In our multi-tenant environment, this is an issue, as our pre-windows 2000(NETBIOS) names, are formatted with additional characters (as per the above example the NETBIOS name is actually barack_demo10)

     

    The implications of this issue are wide spread.  Any user who’s pre-windows 2000 (NETBOIS) name does not match the beginning of their primary email address will not be able to use the incoming exchange email feature.

     

     

All Replies

  • Tuesday, April 15, 2008 9:36 AM
    Owner
     
     

    Make sure those 4 queue have valid email address. Some of those may not have Exchagne attributes(mailbox).

     

    Jim

  • Thursday, April 17, 2008 9:33 AM
    Moderator
     
     
  • Wednesday, November 12, 2008 9:55 PM
     
     

     

  • Wednesday, November 12, 2008 9:57 PM
     
     Answered

    This issue pertains to the use of the Microsoft CRM Email Router when used with an incoming Exchange profile.

     

    The email router service uses the first part of the UPN email address (before the @ symbol) as the NETBOIS name of the exchange account to be queried on the mailbox server.  This can be found by looking at the IIS logs on the Mailbox server.

     

    The email address of the user we were trying to configure was barack@demo10.onenetservices.co.nz and we were continually being prompted with a:

     

    #26090 - An error occurred while opening mailbox barack@demo10.onenetservices.co.nz. Microsoft.Crm.Tools.Email.Providers.EmailException: The remote Microsoft Exchange e-mail server returned the error "(404) Not Found". This user or queue does not have a mailbox. Create a mailbox and try again. --->

     

    This was causing the follow to be recorded in the IIS log on the MBX server

     

    2008-11-12 01:48:03 10.10.0.142 PROPFIND /Exchange/barack - 80 ONENETSERVICES\barack_demo10 10.10.0.93 - 404 0 0 15

     

    The issue is that the “barack” as highlighted above, actually comes from the “Primary Email” field in the user section from the CRM UI.  The email router only uses the characters to the left of the @ symbol as the pre-windows 2000 (NETBOIS) name which is incorrect.

     

    In our multi-tenant environment, this is an issue, as our pre-windows 2000(NETBIOS) names, are formatted with additional characters (as per the above example the NETBIOS name is actually barack_demo10)

     

    The implications of this issue are wide spread.  Any user who’s pre-windows 2000 (NETBOIS) name does not match the beginning of their primary email address will not be able to use the incoming exchange email feature.