I hate badmail...

Yes, I'm talking about bad emails...... in IIS world, where would this get dump? /queue /pickup /badmail? Obviously - it went straights to the badmail folder and if you are so "free" like me :) from time to time, I will manually go in the folder and clean it up. Back last year, I just wrote a simple 'del *.* /y' batch file and schedule it runs once a month. I got hit few months back, where the deletion took a long time (34K files in that folder), and CPU usage was at 100%. I have to reboot the machine, killing the task won't help. I'm guessing that the 'deletion' was too busy and failed to response back to the system. Anyway, I found this tiny script sometime ago, I have replaced by batch file with this. It was an old tool from the MS Exchange team, just like smtpdiag. BadMailAdmin is for badmail deleteion and archival. It works as long as you have IIS SMTP installed, it is a windows shell script that check your badmail folder, clean it up totally or base on allowed configured size or even archived it. Altough the Word document came with it focus on how to install and schedule it as a task + deletion and archiving option, you can actually do more with it for example log switching as well as disabling the badmail. Errr. disable badmail? not via metabase key or smtp setting, it's actually pretty interesting! how? well take at look at the script file, it just remove local system write access to the folder! and voila no more badmail :)
Published Tue, Mar 14 2006 3:30 by qbernard
Filed under:

News

Search

Go

This Blog

Tags

Archives

IIS Sites

MVPs - MVPs

IIS Related

Syndication