Av rating:
Total votes: 4
Total comments: 0


Ben Lye
An Introduction to Messaging Records Management
07 July 2009

There are a number of features in Exchange that can be used in creative ways to solve problems in Exchange as they crop up. Ben Lye recently found a great use for Messaging Records Management when hit hit the problem of a meeting-room mailbox that stopped replying to booking requests. Here he shows how to apply policies that apply to all folders of a particular type, and how to schedule a regular task to do it.

Messaging Records Management (MRM) is a feature of Exchange 2007 which lets administrators define policies to control the storing of e-mail data.  Essentially MRM allows you to create folder-level rules which determine how long messages stored in that folder should be retained.  MRM policies can be applied to default mailbox folders or custom mailbox folders, however applying policies to custom folders requires the use of Enterprise CALs.

MRM can be used to ensure compliance with company policy or legal requirements, or other regulations.  MRM can also be used as an administrative tool...

Recently I had to fix an issue with a meeting room mailbox which had stopped replying to booking requests.  It turned out that the mailbox was over the database’s default Prohibit Send quota, so was unable to send any messages.  The problem was that all the old meeting requests, which had been deleted after they had been processed by the Calendar Attendant, were still in the Deleted Items folder, and that was causing the mailbox to exceed its quota.

The quick-fix was to empty the deleted items folder, but this didn’t really fix the root cause of the problem - the mailbox would continue to grow over time.  Another option was to apply a higher quota, but this would just make the problem come back again later when the new quota was reached.  Ideally I wanted to find a way to make sure that deleted messages in resource mailboxes were permanently removed.

This is where MRM comes in - as well as applying policies for storing e-mail messages, MRM can be used to apply policies to delete e-mail messages.  To solve the problem with my resource mailbox I created an MRM policy which would automatically remove messages from the deleted items folder of all resource mailboxes.

There are five steps to setting up an MRM policy:

  1. Choose the folder you want the policy to apply to
  2. Create the managed content settings for the folder
  3. Create a managed folder mailbox policy
  4. Apply the managed folder mailbox policy to the mailboxes
  5. Schedule the managed folder assistant to run

To set up the MRM settings and policies you must be delegated the Exchange Organization Administrators role.

I already know that I want to apply the policy to the Deleted Items folder; however I want to create a new managed folder so that if there are future needs for different managed content settings on the Deleted Items folder in other mailboxes, they can be accommodated.  Because the Deleted Items folder is a default folder I can use managed default folders.

To create a new managed default folder we use the New-ManagedFolder cmdlet

New-ManagedFolder -Name "Deleted Items (30-day limit)" `

-DefaultFolderType "DeletedItems"

With the new managed folder created the next thing to do is create the managed content settings.  The managed content settings define the actual retention criteria.

Creation of the managed content settings can be done through either the Exchange Management Console or the Exchange Management Shell,

I want settings which will remove items from the deleted items folder 30 days after they were received by the resource mailbox.  The deleted messages should be available for recovery according to the database’s standard deleted item recovery policy.

To create the managed content settings we will use the New-ManagedContentSettings cmdlet:

 

New-ManagedContentSettings -Name "Remove Deleted Items After 30 Days" `

-FolderName "Deleted Items (30-day limit)" `

-MessageClass * `

-RetentionEnabled $true `

-RetentionAction DeleteAndAllowRecovery `

-AgeLimitForRetention 30 `

-TriggerForRetention WhenDelivered

Because a mailbox can only have one managed folder mailbox policy applied managed folder mailbox policies are used to group managed folder content settings so that multiple settings can be applied to a mailbox.  The next step is to create the managed folder mailbox policy.

To create a new policy containing the new deleted item managed content settings we use the New-ManagedFolderMailboxPolicy cmdlet:

New-ManagedFolderMailboxPolicy -Name "Resource Mailbox Policy" `

-ManagedFolderLinks "Deleted Items (30-day limit)"

The next step is to apply the new managed folder mailbox policy to the resource mailboxes using the Set-Mailbox cmdlet (once for room resources and once for equipment resources).  You will be warned that Outlook clients prior to Outlook 2007 do not support all MRM features, and clients older than Outlook 2003 SP2 are not supported):

Get-Mailbox -RecipientTypeDetails RoomMailbox |

Set-Mailbox -ManagedFolderMailboxPolicy "Resource Mailbox Policy"

Get-Mailbox -RecipientTypeDetails EquipmentMailbox |

Set-Mailbox -ManagedFolderMailboxPolicy "Resource Mailbox Policy"

The final step is to schedule the managed folder assistant (the process which actually enforces the policy) to run.  This is done with the Set-MailboxServer cmdlet. 

Each Exchange server only has one schedule for the managed folder assistant and you should schedule it to run as often as needed to meet you requirements.  To run the managed folder assistant on all Exchange 2007 mailbox servers daily between 1am and 3am the command would be:

Get-ExchangeServer |

Where { $_.AdminDisplayVersion.ToString().SubString(0, 10) -eq "Version 8." `

-and $_.ServerRole -eq "Mailbox" } |

ForEach { Set-MailboxServer -Identity $_.Identity `

-ManagedFolderAssistantSchedule "Sun.1:00 AM-Sun.3:00 AM", `

"Mon.1:00 AM-Mon.3:00 AM", "Tue.1:00 AM-Tue.3:00 AM", `

"Wed.1:00 AM-Wed.3:00 AM", "Thu.1:00 AM-Thu.3:00 AM", `

"Fri.1:00 AM-Fri.3:00 AM", "Sat.1:00 AM-Sat.3:00 AM" }

 

The managed folder assistant can also be started on demand using the Start-ManagedFolderAssistant cmdlet.  Running the managed folder assistant can be a resource-intensive process, and it should be scheduled to run during off-peak hours.

The application of this MRM policy will ensure that my resource mailboxes will remain small, as the content of their deleted items folders will be automatically removed.

More information on Messaging Records Management and messaging policies can be found in Microsoft TechNet:

http://technet.microsoft.com/en-us/library/aa998599.aspx



This article has been viewed 3183 times.
Ben Lye

Author profile: Ben Lye

Ben Lye is a senior systems administrator at a multi-national software company. He has over 10 years experience supporting and administering Windows and Exchange, and has been MCSE and MCP certified since 1999. Ben is passionate about automating and streamlining routine tasks, and enjoys creating and using tools which make day-to-day administration easier.

Search for other articles by Ben Lye

Rate this article:   Avg rating: from a total of 4 votes.


Poor

OK

Good

Great

Must read
 
Have Your Say
Do you have an opinion on this article? Then add your comment below:
You must be logged in to post to this forum

Click here to log in.
 





Free exchange ebook

Want a copy of the new Exchange 2010: A Practical Approach? Register now for our SysAdmin newsletter.
Upgrade Exchange 2003 to Exchange 2010 – Part II
 In Jaap's second article on upgrading straight from Exchange Server 2003 to 2010, he explains how to... Read more...

A Deep Dive into Transport Queues - Part 1
 Submission queues? Poison message queues? Johan Veldhuis unlocks the mysteries of MS Exchange's... Read more...

The Active Directory Recycle Bin in Windows Server 2008 R2
 It has always been a curse as well as a blessing that Active Directory has allowed the rapid removal... Read more...

Moving to Office Communications Server 2007 R2 -Part 2
 In the second part of his article on Moving to Office Communications Server 2007 R2, Desmond looks into... Read more...

An Introduction to Messaging Records Management
 There are a number of features in Exchange that can be used in creative ways to solve problems in... Read more...

Using Exchange 2007 for Resource Booking
 The process of booking various resources to go with a meeting room just got a whole lot easier with... Read more...

Managing Exchange 2007 Mailbox Quotas with Windows PowerShell
 The use of PowerShell with Exchange Server 2007 can do a great deal to ease the task of managing... Read more...

Goodbye Exchange ExMerge, Hello Export-Mailbox
 ExMerge was a great way of exporting a mailbox to an Exchange PST file, or for removing all occurences... Read more...

Controlling Email Messages using Exchange's Transport Rules
 Some tasks that should have been easy in previous versions of Exchange just weren't. Now, with... Read more...

Message Hygiene in Exchange Server 2007
 Around four out of every five email messages are spam. Now that the nuisance threatens to engulf what... Read more...

Over 150,000 Microsoft professionals subscribe to the Simple-Talk technical journal. Join today, it's fast, simple, free and secure.

Join Simple Talk