You can use Exchange Online retention policies and tags (MRM) to automate mailbox lifecycle management tasks (such as archiving and deleting email items after a specified retention period).ย For organization-wide Microsoft 365 compliance retention cases, Microsoft recommends using Microsoft Purview retention policies and retention labels.
Note. This tutorial is specific to Exchange Online retention policies and tags.
On Microsoft 365 you get multiple retention mechanisms depending on the workload and compliance requirements. Keep in mind that the modern retention architecture is based on Microsoft Purview retention policies and retention labels, while Exchange Online still supports legacy Messaging Records Management (MRM) retention policies and tags for mailbox-level lifecycle management.
Retention Policies
A retention policy in Exchange Online is a container that groups retention tags. Note that it can be applied only to Exchange mailboxes and is part of the legacy Messaging Records Management (MRM) system.
Retention Tags
Retention tags define specific actions applied to mailbox items after a retention period. They can:
Be automatically applied to default folders (RPT)
Be applied to entire mailbox items (DPT)
Be manually applied by users (Personal Tags)
Key clarification
Note that unlike Microsoft Purview retention labels, MRM retention tags work only within Exchange mailboxes. They can’t be applied to SharePoint, Teams, or OneDrive.
Feature
Exchange MRM (Retention Tags)
Microsoft Purview Retention
Scope
Exchange mailboxes only
Entire Microsoft 365
Modern status
Legacy
Modern standard
Teams/SharePoint/OneDrive
Not supported
Fully supported
Compliance features
Limited
Advanced (eDiscovery, audit, records)
Granularity
Folder/item-based
Label/content-based
Recommended by Microsoft
No (legacy support)
Yes
Note that Microsoft recommends using Microsoft Purview retention policies and labels for modern compliance scenarios. And Exchange MRM is primarily maintained for backward compatibility and mailbox lifecycle cases.
Applying Microsoft 365 Retention Policies in Outlook Web App
By default, retention policies do not apply to other folders in the mailbox (except for Deleted Items and Junk). But the user can manually set retention tags for non-default folders.
Users can manually assign retention tags to email items and folders in Outlook on the web.
Right-click on the folder or email message for which to change retention settings. Click Assign Policy and select a retention tag from the list.
Note that the Retention policy settings are inherited from the parent folder (Use parent folder policy) by default.
Creating Microsoft 365 Retention Policy using Microsoft Purview
Some organizations may need more than the predefined default retention policies and want to add new ones. Hereโs an example of how to create a new Microsoft 365 retention policy.
First, log in to the Microsoft Purview admin center and navigate to Data lifecycle management โ Exchange (Legacy).
Create a Retention Tag
Suppose you want to create a retention tag that deletes mailbox items after 14 days. Hereโs the instruction to create it.
Click the MRM Retention Tags tab and click the New Tag button.
In the โName your tagโ step, enter the tag name and description and click Next. Make your tag name and description unique and easy to identify.
In the โApplication methodโ step, select the method you prefer to apply the tags. Your options are:
Automatically to the entire mailbox โ Also known as the default policy tag (DPT). This method automatically applies the retention tag to all items in the mailbox without a retention tag.
Automatically to default folder โ Also known as the retention policy tag (RPT). This method automatically applies the retention tag to a specified default folder.
By users to items and folders (personal) โ Also known as personal tags. This method allows users to apply tags to custom folders and individual items in the mailbox.In this example, weโll choose the option By users to items and folders (personal) and click Next.
Next, specify the Retention period and Retention action. This example sets the retention period to 14 days and permanently deletes the items.
Review the retention tag settings. When satisfied with the retention tag, click Submit to create it.
Lastly, click Done after the retention tag has been created. The new retention policy tag now appears in the list.
Update the Retention Policy
Once the retention tag has been created, it isnโt readily available for users to select in their mailboxes. If they want to use this retention tag, they must manually add it to their mailbox in OWA by navigating to Settings โ Mail โ Retention policies โ Add new policy.
But thatโs not a positive user experience. The better option is for the retention tag to be available to the users without doing these extra steps. The way to achieve that is by adding the retention tag to the existing retention policy.
Click the MRM Retention Policies, select the existing retention policy to update, and click Edit.
Click Add tag.
Check the box next to the retention tag you created, and click Add.
Now that the retention tag is added click Next.
Click Submit to save the policy.
Finally, click Done.
Wait until the Managed Folder Assistant has finished processing the mailboxes. Once completed, the user can use the new retention policy tag.
Creating Microsoft 365 Retention Policy using Exchange Online PowerShell
Run this command to create a new retention tag. This retention tag has these settings:
Name: Permanently Delete Items After 24 Days.
Type: Personal.
Retention age: 24 days.
Action after the retention period: Permanently delete.
New-RetentionPolicyTag "Permanently Delete Items After 24 Days" `
-Type Personal -RetentionEnabled $true `
-AgeLimitForRetention 24 -RetentionAction PermanentlyDelete
Update the Retention Policy
For users to see the new retention tag in their mailbox automatically, you must add it to their existing retention policy. To do so, run the following commands to add the new retention tag to the default retention policy.
# Specify the retention policy and retention tag.
$retentionPolicy = 'Default MRM Policy'
$policyTag = 'Permanently Delete Items After 24 Days'
# Get existing retention tags linked to the retention policy $taglinks = (Get-RetentionPolicy $retentionPolicy).RetentionPolicyTagLinks # Add the new archive retention policy tag $taglinks.Add($policyTag) # Update the retention policy Set-RetentionPolicy -Identity $retentionPolicy -RetentionPolicyTagLinks $taglinks
Depending on your organization and mailbox size, the Managed Folder Assistant may take a few minutes to several hours to process the mailboxes. Once the Managed Folder Assistant is finished running, the new retention policy will be available for users to select.
How to Verify Retention Policy Assignment and Processing?
After you assigned/modified an Exchange Online MRM retention policy, you should verify if the policy is assigned correctly and force the Managed Folder Assistant to process the mailbox immediately.
In order to check retention policy assigned to a mailbox, run the command:
The Managed Folder Assistant (MFA) processes Exchange retention tags asynchronously. This command forces immediate mailbox processing instead of waiting for the scheduled background cycle.
Note. This tutorial uses the Default MRM Policy. The retention policy name may be different in your environment. Make sure to specify the correct one.
Exchange Retention Policies and Litigation Hold
Keep in mind that Exchange Online MRM retention tags do not override Litigation Hold, eDiscovery Hold, Microsoft Purview retention policies, or other compliance retention mechanisms. In enterprise environments, mailbox items may remain preserved even after MRM retention actions are triggered.
For example, in case a mailbox is placed on Litigation Hold, items deleted by Exchange retention tags may still be preserved in the Recoverable Items folder for compliance and eDiscovery purposes.
Because of this behavior, โPermanentlyDeleteโ retention actions in Exchange MRM do not always mean that data is immediately and irreversibly removed from Microsoft 365.
In order to check whether Litigation Hold is enabled, run the command:
These properties help you to determine whether mailbox retention/compliance holds may prevent permanent item removal.
Conclusion
Keep in mind that Exchange Online MRM retention policies remain useful for mailbox lifecycle management tasks (such as automatic archiving and mailbox cleanup).
Task
Recommended Tool
Mailbox lifecycle management and cleanup
Exchange Online MRM (Retention Tags)
Organization-wide compliance retention
Microsoft Purview Retention Policies
Teams, SharePoint, and OneDrive retention
Microsoft Purview Retention Policies and Labels
For new deployments, you should prefer Microsoft Purview over Exchange MRM. You need to use MRM only for mailbox-specific lifecycle management/when migrating from legacy Exchange configs.
An Exchange Online retention policy is a collection of retention tags used to automate mailbox lifecycle management tasks such as archiving or deleting email items after a specified retention period. MRM retention policies apply only to Exchange mailboxes.
Exchange MRM retention policies are legacy mailbox-level retention mechanisms designed specifically for Exchange Online mailboxes. Microsoft Purview retention policies and labels provide organization-wide retention and compliance management across Microsoft 365 services including Exchange Online, Teams, SharePoint, and OneDrive.
No. Exchange MRM retention tags work only with Exchange Online mailboxes. They do not support Microsoft Teams, SharePoint Online, or OneDrive retention scenarios.
I enjoy technology and developing websites. Since 2012 I'm running a few of my own websites, and share useful content on gadgets, PC administration and website promotion.