7.16. Deleting Messages from the Badmail Folder
Problem
You need to delete messages from the badmail folder of your Exchange virtual server.
Solution
Using a graphical user interface
First, run the Badmail Delete and Archival script (BadmailAdminTool) with default parameters:
Download the BadmailAdminTool from:
http://www.microsoft.com/downloads/details.aspx?familyid=782aaf0f-6239-40ad-adda-97863d852ff7&displaylang=en Extract it to a directory of your choice.
Open a command prompt and navigate to the BadmailAdminTool directory.
Run the following command:
> cscript.exe badmailadmin.wsf
Next, schedule the BadmailAdminTool script to run with default parameters:
Open Scheduled Tasks (All Programs→ Accessories→ System Tools→ Scheduled Tasks).
Click Add Scheduled Tasks, then click Next.
Browse to the directory where you installed the BadmailAdminTool and select badmailadmin.wsf.
Leave the default task name. Select a schedule for the new task: Daily, Weekly, Monthly, One time only, When my computer starts, or When I log on and click Next.
Provide the scheduled time and day to run the script on and click Next.
Provide a user account with local administrative and Exchange Administrator rights to run the script and click Next.
Check the Open advanced properties for this task when I click Finish checkbox and click Finish.
Modify the task to provide the specific script parameters you desire.
Discussion
When Exchange encounters a fatal error during a delivery attempt, it generates an NDR for the original sender ...