SpamCleanUp for MS Exchange 2000/2003 event sink application (DEMO version)

Updated: 4-February-2004


Purpose

This application can delete the expired messages from any specified folder in each user's mailbox. You set the number of days you want the messages available, and after that, they are gone.

Alternatively the messages from user's personal folders can be moved to a special central mailbox for checking later.

Built-in scheduler option is useful for deleting/moving messages overnight. 

In particular, this program might be useful for cleaning up the Spam or Junk mail folders of Exchange users to make them more manageable. 

Application is an Exchange system event sink. 


Benefits

- SpamCleanUp allows the Exchange administrator to automate a significant part of the message management process for all users at once 

- SpamCleanUp can work for multiple Exchange server mailbox stores 

- The application is server-centric, so you do not need to install any extra software on the client side 


Installation

On your Exchange 2000 Server computer:

1. Create a new mail-enabled user account and make sure it's mailbox alias is SMTEST
        
2. Open Outlook and create a top-level folder named Spam in SMTEST mailbox.
        
3. Select (or create) mail-enabled user account that is a member of the local Administrators, Domain Admins, Domain Users and Exchange Domain Servers security groups.

That account must have full permissions on the mailbox store. Open ESM (Exchange System Manager) and drill down to the mailbox store in question. Now open the properties and select the Security tab. Add your account and allow full control.

See also these MS articles: 
Exchange 2000 Permissions Required to Configure an Event Sink (http://support.microsoft.com/default.aspx?scid=kb;en-us;812861)
and 
How to Get Service Account Access to All Mailboxes in Exchange 2000 (http://support.microsoft.com/default.aspx?scid=kb;en-us;262054)


4. Log on as that user.

5. Create C:\Program Files\SpamCleanUp\ directory.

6. Download SpamCleanUp-Demo.zip archive file to C:\Program Files\SpamCleanUp\ directory and extract all files.

7. Run C:\Program Files\SpamCleanUp\SpamCleanUpSetup.exe

8. Check Install COM+ object checkbox. Place the #2 account name (using <domain>\<account> syntax) and password in the appropriate fields. 
Click CHANGE button. 

9. Please fill the following fields:
Folder name - place here a name of user's folder contains the expired messages to be deleted or moved.
Mark "Include subfolders" checkbox if you wish to delete/move the expired messages in all subfolders. 
Messages age limit - handle messages that are older than the number of days you specify.
Select Delete expired messages permanently option to delete messages that have already expired.
If you prefer to move the expird messages to the central location, click Browse button and select a target mailbox.
Send report to - place here an e-mail address of report recipient.
Run - select a day of week to run SpamCleanUp.
Start time - specify time to run. Application can run only once a day.

After settings are completed, check Modify parameters checkbox and click CHANGE button.

10. Select in the first (upper) list the SMTEST mailbox and check Register in the following Mailboxes checkbox (THIS DEMO VERSION SHOWS ONLY *TEST* MAILBOXES - see "About this demo version" below). Click CHANGE button. SMTEST mailbox will be placed in the second (lower) listbox.
        
11. Click Exit button.




Testing

1. Using Outlook, open SMTEST mailbox. Copy any old message to the Spam folder.
       
2. Start SpamCleanUpSetup.exe and change the start time to run the program immediately (I.e. If your system time is 2:40 PM, specify start time 2:41 PM). Check Modify parameters< checkbox and click CHANGE button.

3. See if the message in Spam folder is deleted or moved, depends on your settings.

Note that SpamCleanUp handles the messages based on the date and time received. 

I have tested SpamCleanUp with Exchange 2000 SP1/SP2/SP3 on MS Windows 2000 Advanced server. 



Troubleshooting

If SpamCleanUpSetup.exe can not start or if you see "Error 713" warning after starting, please make sure the MSSTDFMT.DLL file exists on your Exchange server computer. If you can not find it, start C:\Program Files\SpamCleanUp\regMSSTDFMT.cmd and see if that helps.



Uninstallation

1. Start C:\Program Files\SpamCleanUp\SpamCleanUpSetup.exe

2. Select all strings in the second mailbox list and mark Unregister from the following mailboxes checkbox.

3. Mark Uninstall COM+ object checkbox.

4. Press CHANGE button. After uninstallation is complete, press Exit button.



About this demo version

SpamCleanUp demo version works only for mailboxes whose names include "TEST". Examples:
      SpamCleanUp1TEST
      TEST2SM
Other mailboxes are unavailable. Full product version has no limitations. 




Feel free to send me your comments and criticism.

Thank you,

Victor Ivanidze,
software developer. 
IvaSoft
http://www.ivasoft.biz
mailto://victori@mail.fact400.ru
