how to fix the mailbox replication service was unable to connect to the remote server

Chris Parke 25 Reputation points
2024-01-18T19:02:11.2566667+00:00

Receiving the following error when trying to migrate a mailbox from our hybrid server to out exchange online. Error: MrsHttpUnauthorizedException: The Mailbox Replication Service was unable to connect to the remote server using the credentials provided. Please check the credentials and try again. The call to 'https://hybridcom/EWS/mrsproxy.svc' failed. Error details: The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'Negotiate,NTLM'.

Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
2,140 questions
{count} vote

Accepted answer
  1. Wandi Ding -MSFT 2,895 Reputation points Microsoft Vendor
    2024-01-19T06:35:43.02+00:00

    Hello @Chris Parke

    Welcome to our forum!

    The error message you provided indicates that the Mailbox Replication Service was unable to connect to the remote server using the credentials provided. This issue seems to be related to the credentials that you used for migration endpoint. It may be caused by the wrong password for the migration endpoint on On-Premises end.

    In order to resolve the issue, it is recommended that you try the following steps:

    1.Open Office 365 Exchange Portal – Recipients- Migration – Click on Migration endpoints. Update the Migration Endpoint Password – which has access to On-Prem Mailboxes. Then rerun the migration.

    2.Use the Test-MigrationServerAvailability command to see what messages you get, and then troubleshoot according to the link on the Exchange team blog about solving this issue. You may could refer to "Option 3: Test-MigrationServerAvailability fails with 401 Unauthorized, Access Denied, or Invalid Credentials section.

    3.Please verify that the credentials you are using are correct and have sufficient permissions to perform the migration.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in [our documentation] to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. philip van Klink 10 Reputation points
    2024-04-03T19:53:02.3266667+00:00

    We had the same error. As we were using Exchange 2019 CU14, Exchange Server Extended Protection was turned on. I had to turn extended protection off in IIS (EWS - authentication). It can be done via script also. More info here: https://practical365.com/exchange-server-extended-protection/

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.