Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have IIS setup as an SMTP relay. A relay security error caused the outbound emails to be delivered to the badmail folder for the IIS SMTP Service.

Is there any standard method for attempting to retry delivery of these emails?

share|improve this question
1  
I create a simples C# program to remove bad header and rename .BAD file to .EML It work for me. Maybe work too to someone. github.com/zogbi/BadToPickup – Fabricio Zogbi Jul 30 '15 at 13:54
up vote 5 down vote accepted

According to Micrsoft support:

To replay the messages that are located in the Badmail folder, follow these steps:

  1. Stop the SMTP service.

    a. Open IIS Manager.

    b. Right-click Default SMTP Virtual Server, and then click Stop.

  2. Copy all the files that are located in the Badmail folder and that have the .bad file name extension. Then, paste these files to the Pickup folder.

  3. Delete the .bad file name extension from all the .bad files that are located in the Pickup folder.

  4. Start the SMTP service.

    a. Open IIS Manager.

    b. Right-click Default SMTP Virtual Server, and then click Start.

  5. Verify that the messages were delivered.

share|improve this answer

Create a batch file.

@Echo on 
net stop smtpsvc
move x:\inetpub\mailroot\badmail\\*.bad x:\inetpub\mailroot\pickup\\*.
cd\
net start smtpsvc
share|improve this answer

Drag and drop them in the pickup folder.

share|improve this answer
    
It will pull out the error message and resend from the *.BAD, *.BDP, or *.BDR files? – catalpa Nov 8 '11 at 13:34
    
I wish it was that easy. Not looking forward to changing the extensions of 30K files. – catalpa Nov 8 '11 at 14:14
    
Hmmm... That worked in Windows 2003... Should have checked what changed since then. – SBWorks Nov 8 '11 at 15:32

You can open a command prompt and navigate to the badmail folder and run the following command to remove extensions on all messages:

rename *.* *.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.