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:
-
From the Exchange System Manager browse to:
<Organization> | Recipients | Recipient Policies
-
Right-Click the Recipient Policies Node and select:
New | Recipient Policy
-
In the New Policy dialog that opens, set the 'Mailbox Manager Settings' checkbox and click OK
-
The property sheet for the new policy opens. On the General page, enter the policy display name 'Junk E-mail Cleanup'
Next click on the Modify button.
-
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.
-
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.
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.
Click OK to close the 'Find Exchange Recipients' dialog. The General property page will now show the LDAP query just constructed.
-
Next Select the Mailbox Manager Settings (Policy) page.
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.
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.