WinDeveloper O365 Mailer FREE for 1 Year

WinDeveloper IMF Tune
WinDeveloper IMF Tune

Automatic Junk E-mail Folder Cleanup

Alexander Zammit

Alexander Zammit Photo

Software Development Consultant. Involved in the development of various Enterprise software solutions. Today focused on Blockchain and DLT technologies.

  • Published: Nov 23, 2005
  • Category: Anti-Spam
  • Votes: 5.0 out of 5 - 10 Votes
Cast your Vote
Poor Excellent

The Junk E-mail folder is a great spam filtering tool. Unfortunately many users forget emptying it, enabling spam to waste valuable storage space. Luckily automatic Junk E-mail cleanup is available, ready to be enabled.

A few months ago, in the article What's in the Junk Email Folder?, I evangelized the importance of Junk E-mail verification and warned against deleting spam blindly. No matter what marketing may try to make you believe, no spam filter can truly guarantee zero false positives. This was the basic line of thought behind that article.

Today I look at the same issue from a different perspective. E-mails sitting in the Junk E-mail folder, after a few weeks quickly become as good as deleted. It is not uncommon to find organizations where a good chunk of the mailbox storage quota is eaten up by spam. Effective Junk E-mail cleanup helps minimizing this waste. So whether or not spam is being verified, the Junk E-mail folder should be emptied regularly.

The Exchange Mailbox Manager is the right tool for us to setup automatic Junk E-mail cleanup. A lot of documentation covering the Mailbox Manager (see references) is already available. Thus today I will focus on configuring this specifically for Junk E-mail cleanup.

First, we start by setting up a Mailbox Manager recipient policy as follows:

  1. From the Exchange System Manager browse to:
    <Organization> | Recipients | Recipient Policies

  2. Right-Click the Recipient Policies Node and select:
    New | Recipient Policy

  3. In the New Policy dialog that opens, set the 'Mailbox Manager Settings' checkbox and click OK

    New Policy

  4. The property sheet for the new policy opens. On the General page, enter the policy display name 'Junk E-mail Cleanup'

    Policy General Property Page

  5. Next click on the Modify button.

  6. The dialog that opens enables us to identify the user mailboxes to which the policy is to be applied. In this example we will cleanup all user mailboxes. Thus the 'Find Exchange Recipients' dialog is configured as follows:

    • At the top, set the combo-box to Find Exchange Recipients

    • On the General page set the check-box for 'Users with Exchange mailbox' and clear all other checkboxes.

      Find Exchange Recipients

    • On the Storage page we select 'Mailboxes on any server'. Alternatively from here we could also choose mailboxes located on a specific server or within a specific store.

      Mailbox Storage

    • On the Advanced page we could specify more conditions to further identify a specific set of user mailboxes. In this example we will keep things simple and won't configure any further conditions.

    • Once ready click on the Find Now button. This will fetch the resulting set of users identified by these settings.

  7. Click OK to close the 'Find Exchange Recipients' dialog. The General property page will now show the LDAP query just constructed.

  8. Next Select the Mailbox Manager Settings (Policy) page.

    Mailbox Manager Settings Page

  9. From the combo-box at the top, select the type of operation to be performed on executing the policy. Here we select Delete Immediately. Other operations such as 'Generate report only' may also be useful especially for testing.

  10. Next we identify the mailbox folder to be processed i.e. the Junk E-mail folder. This is not included in the standard list. Thus we click on the Add button to create an entry for it.

User Comments - Page 1 of 1

John 7 Aug 2016 16:39
I need to know how to do this in exchange server 2010.
Alexander Zammit 1 Jul 2011 06:14
Check this:
http://www.exchangeinbox.com/article.aspx?i=62

It was written for Exchange 2007 but I think it is still valid for Exchange 2010
Exchange 2010? 1 Jul 2011 05:46
Any updated version of this for Exchange 2010?
Copyright © 2005 - 2024 All rights reserved. ExchangeInbox.com is not affiliated with Microsoft Corporation