logo
search
Compliance Problems

Can Exchange Retention Policies Separate Internal vs External Emails?

Adam DavisAdam Davis Sep 28, 2026 870 views

Question details

The user needs to configure an email retention policy that deletes internal emails after six months and external emails after two years based on the sender's location.

How to Configure Exchange Retention for Internal and External Emails
Product
Microsoft Exchange
Device & OS
not provided
Scenario
Setting up compliance and data lifecycle management for an organization's email system to handle internal and external communications differently.
Observed behavior
Standard Microsoft 365 retention policies use item age or creation dates and lack a native condition to separate policies based purely on the sender being internal or external.
Before you start

Ensure you have Exchange Administrator or Compliance Administrator privileges in your Microsoft 365 tenant before configuring retention labels and mail flow rules.

Solution 1Recommended

Use Microsoft Purview Retention Labels and Mail Flow Rules

Since default retention policies do not filter by sender location, you can use Exchange mail flow rules to automatically apply specific retention labels to emails based on whether the sender is inside or outside your organization.

This workaround leverages Microsoft Purview to create the retention rules, and Exchange Admin Center to identify the sender's location and apply the corresponding label.

1
Create Retention Labels

Sign in to the Microsoft Purview compliance portal. Navigate to 'Data lifecycle management' > 'Microsoft 365' > 'Labels'. Create two separate labels: one set to delete items after 6 months (Internal) and another to delete after 2 years (External).

2
Publish the Labels

Publish both retention labels to the Exchange email locations within your organization so they are available to be applied.

3
Configure Internal Mail Flow Rule

Open the Exchange Admin Center (EAC) and go to 'Mail flow' > 'Rules'. Create a new rule. Under 'Apply this rule if...', select 'The sender is located' > 'Inside the organization'. Under 'Do the following', select 'Apply a retention label' and choose your 6-month label.

4
Configure External Mail Flow Rule

Create a second mail flow rule. Set the condition to 'The sender is located' > 'Outside the organization' and apply your 2-year retention label.

Use Microsoft Purview Retention Labels and Mail Flow Rules
Licensing Requirement: Automatically applying retention labels using mail flow rules or auto-labeling policies may require Microsoft 365 E5 or specific Advanced Compliance licenses.
Free Microsoft Office alternative

Manage Email Attachments Easily with WPS Office

While resolving complex Microsoft Exchange compliance policies requires Microsoft 365 admin tools, you don't need expensive subscriptions for everyday document tasks. WPS Office is a free, lightweight suite that handles your email attachments flawlessly.

  1. 1. Download WPS Office: Visit the official WPS website and download the free installation package for your operating system.
  2. 2. Install the Suite: Run the installer and follow the on-screen instructions to complete the setup in minutes.
  3. 3. Open Email Attachments: Save documents from your Exchange emails and open them directly in WPS Office with full formatting preserved.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx) received via emailLightweight software that quickly opens large attachments without slowing down your systemFamiliar user interface makes it easy to switch from Microsoft OfficeBuilt-in PDF editing tools available at no extra cost
microsoft office alternative - wps office

Frequently Asked Questions

Why can't standard Exchange retention policies filter by internal and external senders?

Native Exchange retention policies and standard Microsoft 365 retention policies evaluate the age of an item (creation or modification date) and its location, rather than message properties like sender location. Message property filtering requires advanced mail flow rules or Purview auto-labeling.

Do I need a special license to auto-apply retention labels via mail flow rules?

Yes, automatically applying retention labels to emails based on specific conditions typically requires an advanced compliance license, such as Microsoft 365 E5, or an E5 Compliance add-on.

Can users manually assign the 2-year retention label to external emails?

Yes, if you publish the retention label to their location, users can right-click any email in Outlook, select 'Assign Policy', and manually choose the 2-year retention label to override the default 6-month policy.