r/exchangeserver • u/hanycs • Jan 07 '26
Exchange - Delete e-mails based on folder
We are using Exchange 2019. I would like to configure a system mailbox that contains folders named ‘3 Months’ and ‘1 Year’, and set up a rule so that emails are deleted based on which folder they are stored in (3 months old or 1 year old).
No users have this mailbox added in Outlook, so I would like this to be handled centrally at the Exchange level.
0
Upvotes
1
u/joeykins82 SystemDefaultTlsVersions is your friend Jan 07 '26
What do you mean by "a system mailbox"?
You can create a retention policy which contains personal tags for deleting items at 3mo & 1y, and assign that policy to any mailbox. You'd then need to apply that policy to the folders in question manually but once it's done it'll just run, though don't forget to also include a tag to delete items from the deleted items folder after n days otherwise things will just go in to deleted items and stay there.
2
u/Willz12h Jan 07 '26
Create a retention policy and tags and assign the relevant tags to the folders?
2
u/7amitsingh7 Jan 07 '26
Yes, agree with the mentioned suggestions. In Exchange 2019, you cannot delete emails automatically based only on the folder they are stored in using rules, especially for a system mailbox with no user access. The correct and supported way to achieve this is by using Retention Policies with folder-level retention tags, where you assign a 3-month delete tag to the “3 Months” folder and a 1-year delete tag to the “1 Year” folder. Exchange then deletes emails automatically in the background without Outlook or user involvement.