Mail router unauthorized to access mail boxes

Proposed Mail router unauthorized to access mail boxes

  • Wednesday, April 11, 2012 6:58 PM
     
     

    My CRM Mail Router stop working!

    It was running during last month, but today I realized that mails are not sending. I suspect that I need to change the password of special Office 365 user that I am using for Mail Router. I reset his password and I am able successfully  login to Outlook web access. As well I can open other users mailboxes with this user.

    I changed the password in Mail Router Configuration Manager, published, loaded deployment data but when I am trying Test Access I am getting:

    Name: UserName

    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 request failed with HTTP status 401: Unauthorized.

    Server: https://podXXXXX.outlook.com/ews/exchange.asmx (mailrouter@sub.onmicrosoft.com)

    Outgoing Status: Failure - An error occurred while checking the connection to e-mail server https://podXXXXX.outlook.com/ews/exchange.asmx. The request failed with HTTP status 401: Unauthorized.

    In the Application Event log I found following events:

    Fault bucket , type 0

    Event Name: CRMmanaged

    Response: Not available

    Cab Id: 0

    Problem signature:

    P1: 5.0.9690.2165

    P2: Microsoft.Crm.Tools.EmailAgent

    P3: Microsoft.Crm

    P4: Object reference not set to an instance of an object.;Hash='1347396225'

    P5:

    P6:

    P7:

    P8:

    P9:

    P10:

    Attached files:

    C:\Windows\Temp\tmp9F5D.tmp

    These files may be available here:

    C:\ProgramData\Microsoft\Windows\WER\ReportQueue\NonCritical_5.0.9690.2165_f5b611cfe3894abc42c7ea2fe56b47ed6beea3c0_cab_0f94a040

    Analysis symbol:

    Rechecking for solution: 0

    Report Id: 22f57bb3-8406-11e1-9154-00155d016918

    Report Status: 4

    #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.ExchangeOnlinePollingSendEmailProvider. System.NullReferenceException: Object reference not set to an instance of an object.

       at Microsoft.Crm.Tools.Email.Providers.CrmPollingSendEmailProvider.HandleProcessMessageError(Exception exception, Entity emailMessage)

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

       at Microsoft.Crm.Tools.Email.Agent.ServiceCore.ExecuteProviderWork(Object providerQueueRequestObject)

    #61042 - An error occurred while processing the outgoing e-mail message with subject "An Opportunity has been Won - Please Send Licenses CRM:0018179" for ExchangeOnline: https://dev.crm.dynamics.com/crmXXXXX for delivery through https://podXXXXX.outlook.com/ews/exchange.asmx. System.Net.WebException: The request failed with HTTP status 401: Unauthorized.

       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.Tools.Email.Providers.ExchangeServiceBinding.CreateItem(CreateItemType CreateItem1)

       at Microsoft.Crm.Tools.Email.Providers.ExchangeOnlinePollingSendEmailProvider.SendMessage(MessageType mailMessage)

       at Microsoft.Crm.Tools.Email.Providers.ExchangeOnlinePollingSendEmailProvider.ProcessMessageInternal(Entity emailMessage)

    Any help will be appreciated!

    Arkady.

All Replies

  • Wednesday, May 02, 2012 9:35 AM
     
     Proposed

    Hi,

    have you found a solution for this? We are having the same situation.

    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.ExchangeOnlinePollingSendEmailProvider. System.NullReferenceException: Object reference not set to an instance of an object.

    It used to work ok, but since today we are not able to send emails.

    Michal

    • Proposed As Answer by Nilank Wednesday, May 02, 2012 1:34 PM
    •  
  • Wednesday, May 02, 2012 1:37 PM
     
     

    I'm also facing the same problem since couple of days. While checking for solution, I landed up on this link:

    http://community.dynamics.com/product/crm/f/117/p/77350/144599.aspx

    Got the ticket raised with MS and requested for the hotfix CRM2011-Router-KB2702300-ENU-amd64, but no success yet.

  • Thursday, June 07, 2012 8:35 AM
     
     

    Hi,

    I have quite the same problem, but with CRM 4.0 on premises? It worked fine since several month,and stopped a couple days ago.

    Help would be welcome.

    email router status when testing:

    Nom : xxxxxxx
    Statut en entrée : Échec - Le serveur de messagerie distant Microsoft Exchange a renvoyé l'erreur « (401) Non autorisé ». Vérifiez que vous êtes autorisé à vous connecter à la boîte aux lettres. La demande a échoué avec l'état HTTP 401 : Unauthorized.

    Serveur : https://db3prd0410.outlook.com/ews/exchange.asmx (admin@progisem.com)
    Statut en sortie : Échec - Une erreur s'est produite au cours de la vérification de la connexion au serveur de messagerie https://db3prd0410.outlook.com/ews/exchange.asmx. La demande a échoué avec l'état HTTP 401 : Unauthorized.

  • Monday, July 23, 2012 8:54 AM
     
     

    same problem here, crm 4.0 router RU 21 office 365 rights are good.
    it was working fine, but i guess microsoft har changed something.. crap!

    can i get KB2702300 for crm 4.0 router?

  • Saturday, July 28, 2012 12:10 PM
    Moderator
     
     

    Just went through the pain of troubleshooting the same problem. For Outbound switching from ExchangeOnline to smtp worked for me.

    Make sure TLS is ticked, port is 587 on second tab and get correct smtp server:

    To obtain SMTP settings information, follow these steps:
    1. Sign in to Outlook Web App.
    2. Click Options, and then click See All Options.
    3. Click Account, click My Account, and then in the Account Information area, click Settings for POP, IMAP, and SMTP access

      Note the SMTP settings information that is displayed on this page.

    HTH

    George


    George Doubinski, MVP http://crm.georged.id.au

  • Tuesday, August 21, 2012 2:40 PM
     
     
    @George: Do mean "Make sure the SSL is ticked", not TLS? Because I can't see TSL anywhere in the settings.
  • Tuesday, December 18, 2012 5:00 AM
     
     

    hi, i am getting the same problem.

    I took the https://testoutlook.com/EWS/Exchange.asmx Availability Service  URL from the outlook.

    Server: Outgoing Status: Failure - An error occurred while checking the connection to e-mail server. The request failed with HTTP status 401: Unauthorized.

    Any solution for this..

  • Wednesday, December 19, 2012 9:48 PM
     
     

    Apply Update Rollup 11 to the Router.

    If you are using Exchange Online use the following settings for your Outgoing Profile

     

    Profile Name: Exch Online Outgoing

    Direction: Outgoing

    E-mail Server Type: ExchangeOnline

    Protocol: leave at default (It will be greyed out anyway)

    Authentication Type:  leave at default (It will be greyed out anyway)

    Use AutoDiscover: Check this option

    Access Credentials: Other Specified

    User Type: Administrator

    User Name: Use your Exchange Online Admin user account, add it as email address

    Password: Exchange Online Admin user accounts password


    Also make sure you exit the email router config tool and restart the email route service before testing again.
    • Edited by ChrisDodgson1 Wednesday, December 19, 2012 9:50 PM
    •  
  • Thursday, December 20, 2012 10:20 AM
     
     

    Hi,

    You need to update ur CRM and Email Router using Updated Rollups 7 and above which would ressolve ur problem.Plesae follow below forum

    http://social.microsoft.com/Forums/is/crm/thread/69d4070b-dbec-490b-bf20-49ed0ecb582b