bye-bye bad mail

January 7, 2005 under Computers, Programming, Software

For those of you who administer a Microsoft Exchange 2000 server, you’ll know that “bad mail” can quickly fill up your BadMail folder (usually found in %ExchangeFolder%\Mailroot\vsi 1\BadMail). If you don’t know that already, you will in due time. If that “bad mail” folder becomes too full (I’m talking gigs worth), you won’t even be able to delete its contents with Windows Explorer, let alone view them; it’ll crash, trust me. Bounce-backs caused by spoofed messages from your organization (or simply wrong addresses) and more can cause “bad mail”. I whipped up a super simple Python script to delete the files in the BadMail folder. I know that not everyone has a Python interpreter installed on their Exchange Server so I also wrote an equally super simple one with VBS, as well. Use the Windows Task Scheduler to have it run when you want to (at work, I have it running nightly). You can find the two scripts in my Projects section over here.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
comments: 0 »

Leave a Reply

Your email address will not be published. Required fields are marked *

Comment

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>