Exchange Online, Retention Policies. For Mailboxes.

Iron Contributor

Hey Guys, 

 

Quick question here, i am trying to understand if you can create a new retention policy in exchange online and have it set as default, so that all new mailboxes will be assigned that newly created retention policy. 

 

This documentation says no: (for both on prem and online). https://docs.microsoft.com/en-us/exchange/security-and-compliance/messaging-records-management/defau...

 

Right under "what can you do with".... 

 

Can you guys shed some light on this for me? I am sure that you can set a different retention policy to default, and have it be applied to all new mailboxes. 

 

Am i just not understanding the documentation?

 

Thanks, 

 

Robert

5 Replies

We are working on exactly the same issue and in particular want to know (a) if a replacement RPT will replace the existing MRM policy automatically, and (b) how to apply an O365 Classification Label Policy to all Exchange mailboxes and confirm it.

 

Here is a summary I created of our current situation and what we in theory should be able to do.

 

What is in place now in Exchange Online

 

All our (currently only 47) EXO mailboxes have the Default MRM Policy applied. In mailboxes, you can see the default when you click on ‘mailbox features’. 


The default MRM Policy has two Default Policy Tags (DPT), neither of which works now for the reasons stated:

  • ‘Default 2 years move to archive’ after 2 years. However, In-Place Archiving is not enabled on any mailbox, so this will not work. 
    ‘Recoverable items 14 days move to archive’, but again without the archiving enabled, this will not work.

Therefore, the default MRM Policy currently will not do anything.

 

The rest of the tags in the Default MRM Policy are all personal tags so not relevant here except that a user could potentially apply a shorter retention period.

 

From what I can see, you can only set one default policy to be applied to new users via the default MRM policy. To do this, you create a new policy (that incorporates the policies in the default as well) and then replace the default MRM Policy with that new one, but is this then applied automatically to all mailboxes as it suggests it will?


Creating a new Retention policy using Exchange Retention Policies and RPTs

 

A retention policy can be made up of multiple retention policy tags (RPT).

  • A DPT to move items to the archive (if/when enabled)
  • A DPT to delete items
  • One or more RPTs for either the entire mailbox or for specific folders (multiple are possible) – see below.

Creating an RPT

 

When you create a new RPT via ‘retention tags’ you have three options:

 

  • The first option (‘applied automatically to entire mailbox’) allows us to create a single policy for the entire mailbox. This keeps everything for a period of time after the email date which may not suit all requirements – see below.
  • The second option (‘applied automatically to a default folder’) allows you to create multiple policies for different default folders, including the Deleted Items folder. This means that any emails in folders created by a user would not be covered by this policy. If the user doesn’t apply another policy to the folder, the items in these folders will (presumably) remain for the life of the mailbox.
  • The third option (‘applied by users to items and folders (personal)’) allows a retention policy to be applied by a user.

If this model is correct, we should (a) enable archiving and (b) create and apply the new Retention Policy with the following tags:

  • Default (DPT), to (a) move to archive after 2 years, (b) allow delete (but goes to Recoverable items)
  • Default folder tag (second option) to delete deleted items older than 5 years
  • Default folder tag (second option) to delete items from the primary and archive mailboxes after 7 years

These tags will ‘miss’ the personal folders but we think that’s OK as the emails will remain in there unless they are deleted, in which case they will be picked up by the second tag above. If they are not deleted, they will remain.

 

What we don't know - yet - is whether this replacement default retention policy will (a) automatically be applied and (b) ensure that the emails of users is not deleted 30 days after they leave.

 

The correct way to change the default retention policy in ExO is via the mailbox plans.

 

Get-MailboxPlan | Set-MailboxPlan -RetentionPolicy "New MRM policy"

 

This simple example will set it on all plans, but you can configure it on specific ones if needed. Remember that mailbox plans apply to newly created mailboxes only, so for any already existing ones you still have to apply the retention policy via the EAC or via Set-Mailbox.

Thanks. I was not familiar with that command. Is the Get/Set mailbox plan used by tenant admins frequently? I thought it was specific to hosting only solutions (not office 365). 

 

Looking through the Set commands it looks like basically all of the options available to set-mailbox are also available to set-mailboxplan. 

 

When would you modify a mailbox plan ? vs. just modifying an existing mailbox with set-mailbox? Trying to understand when to use one command vs the other. 

 

Thanks, 

 

Robert

 

 

actually it looks like i may have found my answer. https://practical365.com/exchange-online/controlling-exchange-online-mailbox-features-mailbox-plans/

 

there is also a get/set cas-mailboxplan as well. 

 

Robert 

Thanks Vasil, you are always very helpful.