Re: Some badmail info

  • From: "Michael B. Smith" <michael@xxxxxxxxxx>
  • To: "[ExchangeList]" <exchangelist@xxxxxxxxxxxxx>
  • Date: Wed, 8 Sep 2004 10:47:27 -0400

1) Even though the window is small, deleting files from under the SMTP
service while it's running can be A Bad Thing (tm). (Primarily event log
entries because the SMTP service may look for a file after it has been
deleted, or your batch file may abort because it tries to delete a file
that the SMTP service has locked.)

2) It renames the BadMail directory - when the SMTP service starts, and
the BadMail directory doesn't exist, a new one is automatically created
(this is documented and supported behavior).

3) It immediately restarts the SMTP service (to minimize the downtime -
if you wait until you've deleted all the files, your SMTP service could
be down for a long time.


From: John Tolmachoff (Lists) [mailto:johnlist@xxxxxxxxxxxxxxxxxxx] 
Sent: Wednesday, September 08, 2004 10:12 AM
To: [ExchangeList]
Subject: [exchangelist] Re: Some badmail info

Michael, why would you need to stop any service to delete files in the
badmail folder, as those are effectively dead files?


John Tolmachoff


eServices For You


-----Original Message-----
From: Michael B. Smith [mailto:michael@xxxxxxxxxx] 
Sent: Wednesday, September 08, 2004 5:18 AM
To: [ExchangeList]
Subject: [exchangelist] Re: Some badmail info

Here is something somewhat improved. This will minimize your downtime:

net stop smtpsvc
cd "\Program Files\Exchsrvr\Mailroot\vsi 1"
rename BadMail Badmail-save
net start smtpsvc
cd Badmail-save
del /Q *.*
cd ..
rmdir Badmail-save

And if the server is at least Exchange 2000 sp 3 or above, Microsoft's
tool is:


And this was a good idea, so I wrote a blog entry about it:




List Archives:
Exchange Newsletters:
Exchange FAQ:
Other Internet Software Marketing Sites:
World of Windows Networking:
Leading Network Software Directory:
No.1 ISA Server Resource Site:
Windows Security Resource Site:
Network Security Library:
Windows 2000/NT Fax Solutions:
You are currently subscribed to this Discussion List as:
To unsubscribe visit
Report abuse to listadmin@xxxxxxxxxxxxxx 

Other related posts: