need to migrate a single mailbox from 365 to exchange

gman 21 Reputation points
2021-03-14T20:20:32.383+00:00

we are in hybrid mode, users in 365 cloud, exchange 2013 onsite, relay emails from 2013 to 365 for copiers and couple of programs.
one program is our helpdesk software, we migrated is mailbox to 365, but have not been able to get it to work with 365.

how can I migrate that single mailbox back to our local exchange server, so our helpdesk software will work tomorrow?

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,191 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,357 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
1,896 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andy David - MVP 142.2K Reputation points MVP
    2021-03-14T21:35:29.617+00:00

    First confirm the mailbox has an Exchange GUID
    From ON PREM Exchange powershell:

    Get-RemoteMailbox <alias of cloud mailbox to move> | Format-List ExchangeGUID  
    

    If it does not, fix per this article:
    https://learn.microsoft.com/en-us/exchange/troubleshoot/move-mailboxes/migrationpermanentexception-when-moving-mailboxes

    Then offboard per this article:
    https://learn.microsoft.com/en-us/exchange/hybrid-deployment/move-mailboxes#move-exchange-online-mailboxes-to-the-on-premises-organization

    or use Exchange Online PS:

    https://thomasverwer.com/2015/07/07/offboarding-mailboxes-back-to-on-premises-exchange-with-office-365/

    $opcred = get-credential domain\domainadmin  
    Get-Mailbox -Identity username@contoso.com | New-MoveRequest -OutBound -RemoteTargetDatabase ‘Database01’ -RemoteHostName ‘hybrid.contoso.com’ -   
    RemoteCredential $opcred -TargetDeliveryDomain ‘contoso.com’
    
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. gman 21 Reputation points
    2021-03-14T21:53:48.107+00:00

    I ran the powershell on my exchange server, and it does return and exchange GUID for the email account in question.

    so I think I am running into issue when entering Target Delivery Domain, if I enter the FQND of my email server, say exchange@mydomain.com, the move fails with
    Error: MigrationPermanentException: The target mailbox doesn‎'t have an SMTP proxy matching ‎'exchange.mydomain.com‎'. --> The target mailbox doesn‎'t have an SMTP proxy matching ‎'exchange.mydomain.com'.​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​

    if it is not the FQDN of the exchange server, what SHOULD the target delivery domain be?


  2. gman 21 Reputation points
    2021-03-14T23:43:44.463+00:00

    target domain was it!
    thanks!

    0 comments No comments