The framework for legally deploying and using Microsoft Exchange Server or Exchange Online, based on server and client access models.
In a hybrid Exchange environment, when the Microsoft 365 license (such as E3 or E5) is removed from a user, the behavior of the mailbox depends on several factors:
- Immediate Disconnection: If the user’s mailbox does not have a hold applied, Exchange Online will immediately disconnect the mailbox when the license is removed. This means that the mailbox will no longer be accessible.
- Soft-Deletion: The disconnected mailbox will enter a soft-deleted state. This state lasts for 30 days, during which the mailbox can be restored by reassigning the license to the user. If the license is not reassigned within this period, the mailbox will be permanently deleted and become unrecoverable.
- Hybrid Considerations: In a hybrid environment, if a cloud user that is synced from on-premises becomes unsynced and is unlicensed, Exchange Online will delete the user. If the deleted user is unlicensed, you must restore the deleted user before you can reassign their Exchange Online license to recover the mailbox.
Therefore, if the license is removed and not reassigned within 30 days, the mailbox will be permanently deleted, and the emails within it will not be recoverable. This behavior should be considered in your design for rehire scenarios in your organization.
References: