web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CRM 4.0 (on premise) Email Router and Office 365

(0) ShareShare
ReportReport
Posted on by 100

Hello,

We are trying to setup CRM 4.0 on-premise to work with Exchange online (365) but are having issues. We have an email router setup with incoming/outgoing profiles that connect to Exchange online. We are running rollup 21 which is supposed to make the email router compatible with Exchange Online 365. The CRM users are setup to use a "forwarding mailbox" for incoming and email router for outgoing. Our users are experiencing email flow issues, they cannot send emails from withing the CRM application. Below errors I see in the Email router event log. I'm hoping that if we resolve the errors...it will fix our email flow issues:

#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, email 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 "New Account Setup Information CRM:0010539" for ExchangeOnline: http://crm.sample-domain.com/company/ for delivery through https://outlook.office365.com/EWS/Exchange.asmx. Microsoft.Crm.Tools.Email.Providers.EmailException: Error: The user account which was used to submit this request does not have the right to send mail on behalf of the specified sending account.
at Microsoft.Crm.Tools.Email.Providers.ExchangeOnlinePollingSendEmailProvider.LogEwsResponseErrorWarning(String message, ResponseClassType responseClassType)
at Microsoft.Crm.Tools.Email.Providers.ExchangeOnlinePollingSendEmailProvider.ProcessMessageInternal(email emailMessage)
at Microsoft.Crm.Tools.Email.Providers.CrmPollingSendEmailProvider.Run()

Thanks,
Manny

*This post is locked for comments

I have the same question (0)
  • Manny Lopez Profile Picture
    100 on at

    FYI, this is the article I followed....

    https://support.microsoft.com/en-us/kb/2708706

  • Verified answer
    Manny Lopez Profile Picture
    100 on at

    If anyone out there is curious, I had to give the CRM service account "full access" and "send as" permission to each Exchange user (account) that used CRM.  It works now.

  • Suggested answer
    Rob Dawson Profile Picture
    190 on at

    Thanks Manny.

    Full Access and Send As are indeed the cause of the problem. We had the same too.

    From the Microsoft Kb you mention, the Publishing Editor permissions over the user mailbox (that in the From field of the emails) granted to the service account (that specified in the Outgoing Profile of Email Router) is the key.

    Important The credentials that are specified in the outgoing profile must have "PublishingEditor" permissions (Delegate Access) or Send As permissions on the Exchange Online mailboxes that have to be accessed. Exchange Online administrators and users do not have these permissions by default. To add delegate permissions, Full Access permissions must be granted to the user in the outgoing profile. Send As permissions must be granted to the user in the Outgoing Profile.”

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans