Exchange 2010 Email Retention Rule

Posted on 2012-09-15
Last Modified: 2013-01-07
I am wondering if there is a way to set a retention policy to remove delete a certain email address or file type from users emails..Basically the company wants a 7 day rule to delete all voicemails coming into the users inbox. Environment is a sbs 2011/exchange 2010 sp1 system
Question by:armenprintsian
    LVL 9

    Expert Comment

    LVL 77

    Expert Comment

    by:David Johnson, CD, MVP
    Set up a retention policy of 7 days
    Set up a rule to move voicmail to a specific folder and apply the 7 day retention policy to that folder
    LVL 52

    Expert Comment

    I dont think there is any customization that will tell check only emails from or for VoiceMail and remove them ..... Retention policy cant do it until you have a Custom folder created with name as VoiceMail and push to all users and then ask them to save all VM emails there and apply a policy to it :)

    Or other could be to work with a Search-Mailbox and see if you can pull only the VoiceMails and then run that with a -DeleteContent command and then simply have that to a Scheduler task and have it run whenever you want.

    - Rancy

    Author Comment

    Thanks for all the input.  I really need to remove Voicemails (mp3 files) from users inboxes. The user environment typically doesn't get rid of anything so i am hoping I can do something on the server side to remove these emails before they start taking a lot of space. And its already adding up users get at least 15-20 voicemails a day and thats not even counting upper management. Any other thoughts would be greatly appreciated. I am inline with Rancys statement I dont think a retention policy is going to get me where I want to be as all users wont do that. I need something more server oriented that doesnt involve the end user

    I haven't had a chance to look into "search-mailbox" yet..

    Any other ideas would be greatly appreciated I will keep you posted on the search-mailbox I will try to do it by end of week (sunday)
    LVL 52

    Accepted Solution

    You can move all items with the {subject:"Voicemail messages"} to a Subfolder created with Managed custom folder and then apply a Retention Policy.

    or you can do something like .... firstly try the command on some single user

    Get-Mailbox –Server “ExchServer” –ResultSize unlimited | Search-Mailbox -SearchQuery 'subject:"Voicemail messages"' -StartDate "****" - EndDate "****" –DeleteContent

    - Rancy

    Assisted Solution

    Create this retention Policy Tag and assign it to mailboxes:

    New-RetentionPolicyTag "Default voice mail 7 day delete" -Type All -MessageClass voicemail -Comment "Voice mail messages without a retention tag are deleted after 7 days." -AgeLimitForRetention 7 -RetentionAction DeleteAndAllowRecovery

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Find out how to use dynamic social media in email signatures with this top 10 DOs & DON’Ts.
    Set OWA language and time zone in Exchange for individuals, all users or per database.
    The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
    This video discusses moving either the default database or any database to a new volume.

    761 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

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now