Mailbox Replication from Exchange OnPremise to Exchange Online

Stefan Arndt 0 Reputation points
2025-11-03T17:27:17.4766667+00:00

Hello,

I been working on a Exchange Online Migration for a while now, after syncing a few mailboxes without problems I get stucked and I been unable to migrate any of the waiting users to the cloud.

It is on an standalone Exchange 2016 Server with valid letsencrypt certificate and DNAT without any firewall or Web Application Firewall in front. Extended Protection is disabled.

I have a full hybrid deployment because of a very slow upload (2Mbit/s) we dont want to get longer downtimes.

I get the following error:

11/3/2025 5:05:25 PM [FR0P281MB3082] Copy progress: 73/422 messages, 389.6 KB (398,998 bytes)/4.281 MB (4,489,089 bytes), 90/203 folders completed.
11/3/2025 5:05:25 PM [FR0P281MB3082] Transient error CommunicationErrorTransientException has occurred. The system will retry (1/60, 3/600).

The call to https://* Removed PII */EWS/mrsproxy.svc timed out. --> The request channel timed out while waiting for a reply after 00:00:00. Increase the timeout value passed to the call

                    to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout. --> The request operation did not complete

                    within the allotted timeout of 00:00:50. The time allotted to this operation may have been a portion of a longer timeout. --> The request channel timed out while waiting for a reply after

                    00:00:00. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer

                    timeout. --> The request operation did not complete within the allotted timeout of 00:00:50. The time allotted to this operation may have been a portion of a longer timeout.

This happens all the time, after that the mailbox gets locked and when it gets unlocked the same error appears again. Only a few kilobytes gets transferred when the migration batch starts, after first error no additional data gets transferred.

I was able to migrade 3 Users without problems, but even the smallest mailbox left fails ( 3MB, nearly empty mailbox)

What i have tried so far:

  • Checked timeouts in MsExchangeMailboxReplication.exe.config, to timeout with "00:00:50", all are "00:05:00" or higher
  • Setting TCPKeepalive lower, from 1800000 (30 minutes) over 900000 (15 minutes) to 120000 (120 sec)
  • Checked :
      Test-MigrationServerAvailability -Endpoint "Hybrid Migration Endpoint - EWS (Default Web Site)"
      Result          : Success
      Message         :
      SupportsCutover : False
      ErrorDetail     :
      TestedEndpoint  : Hybrid Migration Endpoint - EWS (Default Web Site)
      IsValid         : True
      Identity        :
      ObjectState     : New
      
    
  • restart mrsproxy, Information Store and Exchange Server multiple times
  • Rerun HCW, recreate the Migration Endpoint
  • Move mailboxes to another database, repair mailboxes
  • Recreate Migration Batches

Did anyone have another idea what i can do?

Thank you for your advice.

  • Removed PII *
Exchange | Hybrid management
Exchange | Hybrid management
The administration of a hybrid deployment that connects on-premises Exchange Server with Exchange Online, enabling seamless integration and centralized control.
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Hani-Ng 4,540 Reputation points Microsoft External Staff Moderator
    2025-11-04T04:52:36.3233333+00:00

    Please note that our forum is a public platform, and we will modify your question to hide your personal information in the description. Kindly ensure that you hide any personal or organizational information the next time you post an error or other details to protect personal data. 

    Hi Stefan Arndt

    Thank you for posting your question in the Microsoft Q&A forum regarding migration issue affecting your Exchange Online mailbox moves. Based on the analysis of the error message:

    The call to https://xxxx/EWS/mrsproxy.svc timed out…

    This indicates that the migration process is being interrupted due to a timeout between Exchange Online and your on-premises MRSProxy endpoint. The issue is not related to authentication or certificates, but to how the Mailbox Replication Service (MRS) handles large or long-running transfer sessions particularly over slower upload connections (2 Mbit/s).

    Below are the recommended steps you can try to address and stabilize the migration process:

    Validate EWS and MRSProxy Connectivity

    Run this from Exchange Management Shell on your Exchange 2016 server:

    Get-WebServicesVirtualDirectory | fl Identity,InternalUrl,ExternalUrl,MRSProxyEnabled
    Test-MigrationServerAvailability -ExchangeRemoteMove -RemoteServer mail.contoso.com -Credentials (Get-Credential contoso\administrator)
    
    • If it fails or hangs, check the Application Event Log > MSExchange Mailbox Replication Service for matching timeout entries.
    • Success should show a response time <10000 ms and “Succeeded.”

    Troubleshooting Hybrid Migration Endpoints in Classic and Modern Hybrid | Microsoft Community Hub

    Increase MRSProxy and EWS Timeouts

    First, make sure to back up the file, then go ahead and edit the following:

    C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\exchweb\ews\web.config
    

    Adjust or add the following configuration:

    <MRSProxyConfiguration IsEnabled="true" MaxMRSConnections="100" DataImportTimeout="00:20:00" /><httpRuntime executionTimeout="3600" maxRequestLength="512000" />
    

    After saving the changes, run:

    iisreset /noforce 
    
    Restart-Service MSExchangeMailboxReplication
    

    This increases the allowed request duration for MRSProxy and prevents premature timeouts during mailbox transfers.

    Review NAT or Firewall Timeouts

    If the Exchange server is published through NAT, ensure the device does not close idle HTTPS sessions too quickly.

    • Increase the TCP session idle timeout to at least 30 minutes.
    • Disable any web or TCP proxy inspection for this connection.

    A short NAT timeout can close the migration session before completion, especially on slower links.

    Limit Concurrent Migration Sessions

    Due to limited upload bandwidth, I also recommend running only one migration at a time:

    Set-MigrationEndpoint <EndpointName> -MaxConcurrentMigrations 1 -MaxConcurrentIncrementalSyncs 1
    

    This ensures stable transfers and minimizes the risk of concurrent session timeouts.

    Set-MigrationEndpoint (ExchangePowerShell) | Microsoft Learn

    Verify Latest Exchange Cumulative Update

    Some timeout handling improvements and MRSProxy fixes were introduced in later Exchange 2016 Cumulative Updates. Please confirm the server is updated to the latest CU available from Microsoft Learn

    After that, you can apply the configuration changes, restart the IIS and MRS services, and retry a single mailbox migration while monitoring its progress using:

    Get-MoveRequestStatistics -Identity <user@domain> -IncludeReport
    

    If the migration completes successfully, proceed with the remaining mailboxes in small batches.

    I hope these insights are helpful. Please feel free to reach out if you have any questions or concerns.


    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.

    0 comments No comments

  2. Stefan Arndt 0 Reputation points
    2025-11-04T09:34:16.4666667+00:00

    Thank you for your help so far.

    I have done the Validate EWS and MRSProxy Connectivity section, no issues there.

    I changed the web.config file, this configuration option is new for me. Sadly it didnt changed anything, the timeout remains the same:

    The call to https://"url of the server"/EWS/mrsproxy.svc timed out. --> The request channel timed out while waiting for a reply after 00:00:00. Increase the timeout value passed to the call
    to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout. --> The request operation did not complete
    within the allotted timeout of 00:00:50. The time allotted to this operation may have been a portion of a longer timeout. --> The request channel timed out while waiting for a reply after
    00:00:00. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer
    timeout. --> The request operation did not complete within the allotted timeout of 00:00:50. The time allotted to this operation may have been a portion of a longer timeout.
    

    The Exchange Server 2016 is up to date, i checked it with healthchecker.ps1.

    Over the night i was able to move some mailbox with following procedure:

    1. Move the user in AD to not Entra synced OU
    2. Start-AdSyncSyncCicle
    3. Delete softdeleted users permanently in entra
    4. Delete softdeleted mailboxes in exchange online:
          get-mailuser "username in exchange online" -SoftDeletedMailUser | Remove-MailUser -PermanentlyDelete
      
    5. Move the user in AD to synced OU
    6. Start-AdSyncSyncCicle
    7. Export and delete all big elements from mailbox to .pst file to shrink the mailbox to minimum (a few MB left)
    8. Delete dumpster from mailbox (deleted elements)
         Search-Mailbox -Identity "alias in exchange onprem" -SearchDumpsterOnly -DeleteContent
      
    9. Start migration again
    10. Completing migration
    11. Import exported elements to mailbox again

    Now i am stucked with one mailbox again, maybe because in office times the internet connection is overloaded. Will try it in the evening again.

    P.S. the personal information was anonymized by me before posting, "domain.tld" is not a valid domain ;-)


  3. Stefan Arndt 0 Reputation points
    2025-11-05T07:30:44.43+00:00

    Hello Hani-Ng

    Yesterday I was able to migrate another 2 mailboxes. Sadly I get the errors again for another 2 Mailboxes.

    I am thinking now of backup, delete and recreate the mailboxes in the cloud. Then i could restore the data.

    I haven't much informations in the boxes, maybe its the best way to do it.


Your answer

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