[Geeks are Sexy] technology news

Wednesday, March 29, 2006

How To Deal With Your Exchange BadMail Folder

If you are an Exchange administrator, you probably already know about the existence of the Badmail folder. This directory contains all the mail that never reached any of your users’ inbox. If you look at the messages it contains, you'll realize that most of the crap that is in there is spam and undelivered messages. This folder can usually be found in \Program Files\exchsrvr\Mailroot\VSI 1\BadMail. Unfortunately, Exchange doesn't provide you with any way to automatically delete or archive these messages, so the folder will continue to fill up until you delete its content.

If your organization uses Exchange 2003, Microsoft has released a small application that lets you automatically deletes or archives files in the badmail directory. It also ensures that the size of the folder does not exceed specific size limits and eliminates the administrative overhead of manually archiving or deleting these files.

Microsoft does not provide any tools to do this on Exchange 2000. The solution? Write a small batch file that deletes the content of the folder. After this, add the script to the windows 2000 task scheduler and run it once a week. Don't forget to test your script before putting it into production. You wouldn't want to delete the content of another folder would you?


  • According to the badmailadmin.wsf documentation the script "Applies To: Exchange Server 2003, Exchange 2000 Server SP2" - so you should be able to use it on E2K :)

    By Anonymous Anonymous, at 9:27 AM  

Post a Comment

Links to this post:

Create a Link

<< Home