Ho to remove orphaned Office 365 mailbox settings in exchange server hybrid

Benard Mwanza 1,001 Reputation points
2022-09-16T13:54:59.477+00:00

I have an issue in my exchange organization. I had previously configured exchange server hybrid with office 365. On-premises exchange server version is exchange server 2016 and migrated liam@mydomain.com mailbox to office 365 to test exchange online service

Three months ago, liam@mydomain.com account was disabled in on-premises active directory before migrating the mailbox back in exchange server.

liam@mydomain.com account in office365 admin center, under active users shows unlicensed.

I have just re-enabled the account again inside on-premises active directory and it synced to office365 using azure AD connect. When i open exchange admin center (on-premises), the mailbox type is shown as "office365". .

I need to have the mailbox hosted in exchange server database, how can i set the location for the mailbox to point to exchange server database.

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,635 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.
2,105 questions
{count} votes

Accepted answer
  1. KyleXu-MSFT 26,261 Reputation points
    2022-09-19T02:03:33.753+00:00

    @Benard Mwanza

    For Exchange online mailbox:
    242287-1.png

    The Exchange online mailbox data cannot be recovered now. For Exchange on-premises server, this mailbox show as Office 365 due to this mailbox has been migrated to Exchange online.

    In this case, I would suggest you delete this AD account and create a new one directly.


    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.

1 additional answer

Sort by: Most helpful
  1. KurtBMayer 836 Reputation points
    2022-09-16T14:26:55.067+00:00

    @Benard Mwanza

    See these links for info about manipulating the on-prem attribute msExchRemoteRecipientType:

    Remote mailbox attribute
    msExchangeRecipientTypeDetails Active Directory Values
    Reference to msExchRemoteRecipientType values - Windows

    The Exchange Admin Center and PowerShell typically take care of setting such attributes properly on the AD user. So, in general it's not advised to set them directly, but in cases where the state is improper, you may need to fixup some of them manually. Best bet is to compare the account you want to change with a known good account and use the Attributes tab in AD Users & Computers to see the differences. Proceed with caution when making edits, because changes will sync to Office 365 next time AD Connect runs.

    If you don't want it to be a cloud-hosted mailbox, might need to Clear the attribute.

    Please upvote or accept this thread as answered if it's helpful, thanks!

    1 person found this answer helpful.
    0 comments No comments

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.