Skip to content

Configure Microsoft 365 quarantine retention period to 30 days

Some email messages get quarantined and remain in the default Microsoft anti-spam inbound policy for only 15 days. You should change the quarantine retention days to the maximum days in the Microsoft 365 Defender portal. In this article, you will learn how to configure Microsoft 365 quarantine retention period to 30 days.

Quarantine period in Microsoft 365 Defender

The default quarantine retention period in the Microsoft security center is just 15 days. It’s highly recommended to extend it to a maximum of 30 days.

You can view, release, download, delete, and report false positive quarantined email messages or files captured by Microsoft Defender for Office 365 (MDO) for SharePoint Online, OneDrive for Business, and Microsoft Teams in Office 365. Keep messages in quarantine for 30 days to allow enough time for further investigation.

PowerShell error DefaultFullAccessPolicy

You can’t modify the built-in quarantine policies named AdminOnlyAccessPolicy or DefaultFullAccessPolicy with PowerShell.

If you try to change anything in these policies, you will get the below error in PowerShell.

PS C:\> Set-QuarantinePolicy -Identity "DefaultFullAccessPolicy" -QuarantineRetentionDays 30

Write-ErrorMessage : |Microsoft.Exchange.Management.Tasks.ValidationException|Quarantine policy "DefaultFullAccessPolicy"
is a default system policy. It cannot be edited. Please create a tag with a different name if you want to create a custom
policy.

It doesn’t mean you can’t adjust the default policy because you can do it within the Microsoft 365 Defender portal. Let’s look at that in the next step.

Configure quarantine period to 30 days

We will show you how to set the quarantine period to 30 days in the Microsoft 365 Defender:

  1. Sign in to the Microsoft 365 Defender portal
  2. Click Email & collaboration > Policies & rules
  3. Click Threat policies
Configure Microsoft 365 quarantine retention period threat policies
  1. Click Anti-spam
Configure Microsoft 365 quarantine retention period anti-spam
  1. Click Anti-spam inbound policy (Default)
Anti-spam inbound policy (Default)
  1. Scroll down to Retain spam in quarantine for this many days
  2. Click Edit actions
Anti-spam inbound policy (Default) edit retain spam in quarantine
  1. Go to Retain spam in quarantine for this many days
  2. Change the number to 30
  3. Click Save
Configure Microsoft 365 quarantine retention period to 30 days save

You successfully extended the quarantine retention period to 30 days in Microsoft 365 Defender.

Configuring the retain spam in quarantine setting and other best practices are available in the Office 365 Recommended Configuration Analyzer.

Check quarantine messages last 30 days

You can check your email messages that are quarantined for spam, phishing, malware, and other reasons.

How to check quarantine email messages:

  1. Sign into Microsoft 365 Defender portal
  2. Go to Email & collaboration > Review
  3. Click Quarantine
  1. Click the Email tab
  2. See the list of quarantine email messages
  3. Click on each email to view the message to see which actions to take

In our example, there are no quarantine messages, and the list shows no data available.

You successfully set the quarantine retention period in the Microsoft 365 security center to 30 days.

Read more: Configure DMARC record for Microsoft 365 »

Conclusion

You learned how to configure the Microsoft 365 quarantine retention period to 30 days for the default anti-spam inbound policy. Set the spam quarantine retention setting to a maximum of 30 days in the Microsoft 365 Defender portal instead of the default 15 days.

Did you enjoy this article? You may also like Unblock Microsoft 365 user sign-in. Don’t forget to follow us and share this article.

o365info Team

o365info Team

This article was written by our team of experienced IT architects, consultants, and engineers.

This Post Has 0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *