Forum Discussion
Teams chat retention / deletion inconsistent when mailboxes are on-premises
I have a ticket open with Microsoft about this, so just posting here for comment from others.
Scenario:
Customer has all user mailboxes in on-premises Exchange, hybrid is not configured.
A retention policy applied to all users for Teams Chat only, configured to not retain, but delete after 7 days.
This policy was created and applied around 25th March.
As of today, some users still still chat messages from 2019. Nothing seems to have been deleted for most of them.
I did see chat messages back to 2019, but then when I signed out of the Teams app, and signed back in, I now only see chat messages from 3rd April ('it's good, but it's not right').
Thinking:
No cloud mailboxes for users, means 'shadow mailboxes' have been created for each user - can be checked by running 'Get-MailUser' cmdlet against EXO.
These shadow mailboxes contain the chat messages (for the purposes of retention - I know about the chat service) - but for most of the users, the Managed Folder Assistant will not run, because the shadow mailbox is smaller than 10MB (the threshold for running MFA) - so the chat messages are not purged after 7 days.
Sometimes a shadow mailbox reaches 10MB, then the MFA runs, clears some chat messages, the size drops below 10MB, then does not run again the following day??
Or does the MFA never run until the mailbox is 10MB, then it always runs daily even if the mailbox slips below 10MB again?
Thoughts / comments anyone?
6 Replies
- Steven_HermanCopper Contributor
- Rob EllisBronze ContributorWe are still seeing inconsistent cleanup - we have a ticket open with support, and they have raised a Design Change Request (DCR) to the Exchange product group.
- oldschoola410Copper Contributor
Rob Ellis we are having the exact same issue. We have a hybrid server configured(2019) as well as a adconnect server. But none of the teams messages are being deleted.
- JimmyStewartBrass Contributor
Yes, eventually chats older than my policy date were removed. I was testing so I had the policy set to any chat older than 7 days, delete, do not retain. It took about 3 days before I started seeing the policy take effect. I also noticed there was a day or two lag, meaning, i could still see chats from 8 or 9 days before, those eventually were deleted the next day or thereafter.
- JimmyStewartBrass Contributor
I have a similar environment where Exchange is on premise, not hybrid. I created a policy and did not see the effects until I logged out of Teams and then logged back in. I continue to see other oddities that suggest there are a lot of caveats that appears to be at play.