News We Recently Launched AD Migrator and AD Reporter | News SysTools Commitment to Child Safety: Upholding the Fight Against CSAM |

How to Set Up Archive Rules in Office 365 – Complete Steps

  author
Written By Mohit Jha
Anuraag Singh
Approved By Anuraag Singh
Published On December 20th, 2024
Reading Time 7 Minutes Reading

Email is the most prominent and preferred way of communication organizations rely on today. With so many email exchanges, end users’ mailboxes can sometimes get full in the Microsoft 365 suite, which can create a communication halt. Fortunately, Microsoft offers an automated way to overcome this scenario by turning on the archive mailboxes option. Setting up archive rules allows users to move unwanted, older, or less critical email emails to the archive mailbox automatically. This helps us ensure seamless communication and maintains mailbox performance.

Hence, in this guide we will walk you through two ways, using which you can easily set up archive rules in Outlook 365. First using a manual method that includes PowerShell scripts and another via an automated quick method using the software. Go through the write-up, explore different ways, and choose the preferred way to configure the archive policy in Microsoft 365.

Before heading towards the steps, It is crucial to learn more about the archive mailboxes aka in-place archive or online archive mailboxes in Microsoft 365. 

What is Archiving in Outlook 365?

Coming to the names, In-place archive mailboxes or Online archive mailboxes are often used interchangeably and are secondary mailboxes apart from the regular user mailboxes. To be more specific, the In-place archive term is used for the on-premise Exchange Server context. Whereas Online archive mailboxes are often used in the context of Exchange Online (Microsoft 365). 

When you turn on the archive mailbox then the current user mailbox becomes the primary mailbox and an additional and associated mailbox gets created which acts as a secondary mailbox. It allows users to move their email data from their primary mailbox to the archive mailbox. Let’s take a look at the comparison between both of them.

Maximum archive mailbox size Application scope Licensing
In-Place Archive (On-Premise Exchange Server) Unlimited On-premises Exchange Environments Enterprise Licensing
Online Archive

(Exchange Online aka Microsoft 365)

From 50GB up to 1.5TB Cloud & Hybrid Environments Included as part of a Plan or purchased additionally.

Why Archive Emails in Outlook 365?

With time, email exchanges can lead to overflowing Office 365 mailboxes. This further slows down performance and can lead to data loss when the storage limit is exceeded. Archive mailbox: 

  • Keeps primary mailbox free from older, or less critical email emails by moving to archive mailbox automatically.
  • Helps in better management of older or unwanted emails without deleting them.
  • Maintains adherence to organizational or legal data retention policies.
  • Helps in keeping the mailbox lightweight, and efficient for optimal performance.

What’s a Myth About Archive Mailboxes?

There is confusion regarding archive mailboxes, you must have noticed an Archive button in Outlook or Outlook on the web (OWA). It is not the archive mailbox it’s just a by default folder that helps you organize your emails more efficiently similar to a sent folder or deleted folder.

Before configuring archive rules in Office 365, it is important to enable an archive mailbox in Microsoft 365.

How to Enable Archive Mailbox in Microsoft 365?

  • Step 1. Use your global admin credentials to log in to the Microsoft 365 Admin Center.
  • Step 2. Navigate to the Microsoft Purview Compliance Portal.
  • Step 3. Select Data Lifecycle Management > Archive.
  • Step 4. Choose the user and toggle the archive mailbox option.
  • Step 5. Wait for the mailbox to be provisioned.

Since the archive mailbox is enabled now let’s address the elephant in the room i.e. How to set up archive rules in Outlook 365.

Setting Up Archive Rules / Policies in Office 365 Using Retention Tag

Now you can move to another pre-requisite i.e. configure retention tags. A retention tag can be defined as a rule for data archive or retention, it can be applied to the entire mailbox, or a specific folder of a mailbox. To be more specific it defines the actions. These include:

  • An action to delete, archive, or permanently delete, etc items more specifically emails like a mailbox or a particular folder.
  • Triggers the action on the item(s) when the age of the item(s) is reached. 

It does not do anything by itself, unless not added to a retention (archive) policy for specific user mailboxes in Microsoft 365.

PowerShell Scripts to Create a Retention Tag

Here we’re going to to configure retention policies with PowerShell if you want to create a tag named Auto-archiving (2 years) which automatically archives emails that are at least 2 years old from the primary mailbox to the archive mailbox, then follow the below steps and the PowerShell scripts.

Connect to Exchange Online and run the cmdlets listed below:

New-RetentionPolicyTag "Auto-archiving (2 years)" -Type All -RetentionEnabled 
$true -AgeLimitForRetention 730-RetentionAction MoveToArchive

Suppose you want to configure a tag named Manual archiving (3 years) letting users manually archive items that are at least 3 years old. Then run the below PowerShell scripts.

New-RetentionPolicyTag "Manual archiving (3-year)" -Type Personal -RetentionEnabled 
$true -AgeLimitForRetention 1095-RetentionAction MoveToArchive

Apply Retention Tags to Policies

Create a Retention Policy:

New-RetentionPolicy "Custom Archive Policy" -RetentionPolicyTagLinks 
"Auto-archiving (2 years)", "Manual archiving (3 years)"

Assign Policy to Users:

Set-Mailbox -Identity [email protected] -RetentionPolicy "Custom Archive Policy"

Configuring Archive Policy in Office 365

Now retention tags are created it is time to put them into action. You can also do this by configuring an MRM (messaging records management) archive policy. There are two ways that you can do it. These include:

Revising the By Default MRM Retention Policy in Microsoft 365 (Effortless Way)

Step 1. Navigate to the Microsoft Purview compliance portal, and sign in with a privileged account. This includes Global Admin, Compliance Admin, Organization Management, etc. 

Step 2. From the left menu navigate to Data Lifecycle Management and click on Exchange (legacy), choose the MRM Retention policies tab.

Step 3. Choose the default policy and click on the Edit button. A “Configure your policy” wizard will open.

Step 4. Click on the Add tag Button. A window will open from the right side of the pane. Here you will find the tag(s) created earlier. 

Step 5. Check the desired tags, these tags will be added to that policy. Now hit the Next button to review your settings and then hit the Submit button. Click on the Done button to apply all changes.

A Better Alternative to Setup Archiving Policy in Outlook 365

Although Microsoft offers a smart feature using which we can set up an archive in Outlook 365. Using this archive mailbox users can save space primary mailbox space and keep the unimportant emails in the archive mailbox itself. 

However, it should not be misunderstood with backup. An archive solution does not ensure data safety unless you keep a backup of these data locally. Additionally, the archive data is also stored in the Microsoft data center, if your account gets compromised then you can also lose the archive data. 

To address these limitations and leverage additional advantages which include compliance with relevant laws, comprehensive control over crucial enterprise data, immediate access to locally stored backups, automated and ongoing backup creation, and many more, then you can switch to SysTools Office 365 Backup Tool.

Download Now Purchase Now

Conclusion

Users up archive rules in Outlook 365 to declutter unwanted email data which helps enhance email management and productivity. However, without knowing the exact steps they might encounter errors.

Hence, in this guide, we have discussed a few methods including PowerShell scripts and reliable automated software to perform the same. You can choose the best-suited method based on your requirements.

  author

By Mohit Jha

Mohit is a writer, researcher, and editor. Cyber ​​security and digital forensics are the two subjects that keep Mohit out of his seat. In addition, he hopes that the well-researched and thought-out articles he finds will help people learn.