Skip to main content

Notifications

Customer Service forum

Server Side Synchronization - Exchange Online and Dynamics CRM 365 Organization - has error while test connection

Posted on by 15

Server Side Synchronization - Exchange Online and Dynamics CRM 365 Organization, the error message while test connection is "Remote server error: (401) Unauthorized. Make sure the user name and password you entered are correct and try again."

Customer says that the "The Username and password is correct and as I had mentioned our Mails will not be accessed without the authentication of security that could be the reason for this error. 

Kindly get this checked with Microsoft  team and get the solution for this."

What is the solution to this. Kindly help us, multiple organizations are running in the email router still !!

Thanks in advance.

Saranya.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Server Side Synchronization - Exchange Online and Dynamics CRM 365 Organization - has error while test connection

    Hi,

    Do you mean that you have followed the Step 1 & 2, but when the Global administrator click the "Test & Enable Mailbox", it still gives error message?

    Could you kindly provide the error message?

    BR,

    Judy

  • Saranya Ramesh Profile Picture
    Saranya Ramesh 15 on at
    RE: Server Side Synchronization - Exchange Online and Dynamics CRM 365 Organization - has error while test connection

    Hi,

    The Email address is of the end-customer's and we have requested them to verify for the administrator should approve it as a Global Administrator, and we get a response that it is been done. So not sure if this is where the issue relays upon!!

    Other mentioned solution points were been performed and we get error message while Test & Enable Mailbox.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Server Side Synchronization - Exchange Online and Dynamics CRM 365 Organization - has error while test connection

    Hi,

    Do you have Office 365 Global Administrator role or Dynamics 365 System Administrator role?

    Based on my research, when using Dynamics 365 (online) with Exchange Online, the email address for a mailbox record needs to be approved by an Office 365 user with the Global Administrator role.

    The solution is,

    1. Sign into Dynamics 365 (online) as a user with the Global Administrator role in Office 365.

    2. Select the mailbox record and then click Approve Email.

    3. Click Test & Enable Mailbox.

    BR,
    Judy

  • Saranya Ramesh Profile Picture
    Saranya Ramesh 15 on at
    RE: Server Side Synchronization - Exchange Online and Dynamics CRM 365 Organization - has error while test connection

    Hi,

    Actually, that is one more question i need a clarification. I have created the trial org and am the user having the admin access, as per User roles. But when i log into POrtal, there is an error message and no admin related menus are being displayed.

    AdminPOrtal_5F00_Err.png

    And the mailbox test connection, throws an error "

    Email won't be processed for this mailbox until the email address of the mailbox is approved by an Office 365 administrator. For more information, contact your system administrator.

  • Saranya Ramesh Profile Picture
    Saranya Ramesh 15 on at
    RE: Server Side Synchronization - Exchange Online and Dynamics CRM 365 Organization - has error while test connection

    Hi Judy,

    Thanks for the reference, I have performed the same actions but the mailbox is having failure in connection.

    EmailServerProfile_5F00_Err.png

    The error message says that "One or more active mailboxes associated to this email server profile are disabled for incoming or outgoing email processing. For a list of these mailboxes, see the Disabled Mailboxes view." but i had checked the mailboxes seperatley and associated with the email server profile, there seems to be no disabled ones associated with this profile.

    Kindly help.

  • Suggested answer
    Matt Collins-Jones Profile Picture
    Matt Collins-Jones 230 User Group Leader on at
    RE: Server Side Synchronization - Exchange Online and Dynamics CRM 365 Organization - has error while test connection

    Is the user who is approving the mailbox and then running the test and Test & Enable an Office 365 admin? If not they will get a failure message when trying to enable the mailbox. This assumes that the O365 and D365 environments are in the same tenant.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Server Side Synchronization - Exchange Online and Dynamics CRM 365 Organization - has error while test connection

    Hi,

    According to the error message, the possible reason could be that your configuration is not correct.

    Could you kindly check whether you have connected Dynamics 365 (online) to Exchange Online following the steps described in the article below.

    technet.microsoft.com/.../mt622056.aspx

    Hope it helps.

    BR,

    Judy

    -------------------------------

    Appreciate to Mark as Answer if it is helpful.

  • Saranya Ramesh Profile Picture
    Saranya Ramesh 15 on at
    RE: Server Side Synchronization - Exchange Online and Dynamics CRM 365 Organization - has error while test connection

    Few more queries is, We are using Exchange Online with Dynamics 365 (online), when we choose the Email Server Profile as "Online", then we are unable to fill in the Server or email address fields. How does the connection is established with the Online Exchange and Dynamics CRM Online?

    For now, we have create Hybrid connection and filled in the details of the email address and the other credentials needed.

    kindly correct.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,902 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,302 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans