Solved

Exchange 2007: Managed Content Settings not deleting messages

Posted on 2013-01-04
5
743 Views
Last Modified: 2013-01-21
I'm trying to delete emails that are in the Junk E-Mail default folder on Exchange 2007.  I've created Managed Content Settings to delete them after 180 days.

I've set the MRM schedule to run, plus I've run the mailbox folder assistant manually using "Start-ManagedFolderAssistant".  

Nothing seems to be deleting.  If I log into OWA, I can still see Junk Email in my folder older than 180 days.

What am I missing?
0
Comment
Question by:BMFC
  • 2
5 Comments
 
LVL 63

Expert Comment

by:Simon Butler (Sembee)
ID: 38743888
If you have only just set the policy, then it will come in to effect in 180 days time.
That is because Exchange doesn't know how old those messages are, and it needs to stamp them for the policy to apply.

Simon.
0
 

Author Comment

by:BMFC
ID: 38744674
So it's from the day I created the Managed Content Settings?  Now anything coming into the Junk Email folder will be marked?

Is there a way to delete old messages?  I want to apply this same rule to "Deleted Items" to delete old emails.
0
 

Author Comment

by:BMFC
ID: 38745135
If what you're telling me is correct, then there would be no way to delete old emails.
0
 
LVL 58

Accepted Solution

by:
tigermatt earned 500 total points
ID: 38745857
BMFC,

It is possible to delete old email, but not immediately after messaging records management (MRM) is first enabled. If you are using the option "Retention period starts: When message is moved to folder" option in your managed content settings, then this is a classic case of the system appearing to misfunction, but actually working as designed.

As Simon has already stated, Exchange does not, by default, internally track the date at which a message was moved to a folder. Thus, the first time MRM is enabled, a process is initiated to stamp all messages in the managed folders with the date and time they were first seen by Exchange - specifically by the "Managed Folder Assistant", a process which enforces MRM content settings.

On each pass of a mailbox to apply tags and enforce Content policies on managed folders, the folder assistant then makes comparisons between the number of days defined on the content setting you created (180 days) and the date it stamped on the item when it first saw it in that folder. Only when the difference between today's date and that initially stamped date is greater than the policy (180 days) will the action be applied - in this case, the message will be deleted.

This is not a problem in normal operation. The folder assistant task runs on a schedule, and should complete a full scan over all mailboxes periodically to keep the timestamps in check and purge messages which are now deemed expired. After 180 days of continuous operation, the messages stamped today will be deleted. On the 181th day, all the messages moved to Junk/Deleted Items tomorrow will be removed. On the 182nd day, the messages moved there on Sunday will be removed, and so on. There will just be a lag period up front of 180 days, as the tags were only just applied with today's date when the content policy was first created.

The technicalities are explained here, along with the instructions you can follow to download MFCMAPI to interrogate the MAPI properties of messages in the managed folders of your mailbox to determine whether the ElcMoveDate stamp has actually been applied.

For reference, I just checked this with an Exchange 2010 instance. The MAPI property is different (it now tracks the date the message expires, rather than the date it was first seen). This is because MRM has moved on slightly and the architecture is different (it is now known as "retention", in line with the legalese which normally accompanies it). But, the principle is pretty much the same with some minor changes.

-Matt
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
In this video we show how to create a Shared Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Sha…
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question