Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Wednesday, June 3, 2020 4:15 PM
I have six servers in three networks. Each server runs a ".bat" script to do a backup then email a completion notice to me. Two of the networks configure SMTP to relay to the 3rd network. The 3rd network mails out the completion notices, as this network is configured appropriately for outgoing email via DNS, SPF, etc. On occasion, not always, one of the emails isn't delivered and ends up in the Badmail directory with a zero (0) byte size. The BDR record contains the message "error is processing file in pickup directory. 0xC00402CE."
Again, most emails go through fine and the ones that appear bad are not always from the same server. I've checked timing and there doesn't seem to be emails that try to go out at the same instant. All mails are created via a common ".bat" file, so the headers are built exactly the same.
Does anyone know why this occurs? I've had this problem occasionally with Windows 2003, less so with Windows 2008 R2. But this is on Windows 2016 and it appears to occur more frequently than on the previous version of Windows (2008 R2).
Bill_H
All replies (7)
Thursday, June 4, 2020 2:02 PM ✅Answered
No Exchange. Just the SMTP service. We only use email for outgoing email. The email header, along with the redirected commands, is built in the ".bat" file and copied to "C:\inetpub\mailroot\Public" (and an archive directory) at the end of the script. The headers are the same, as all machines/networks use a copy of the same ".bat" file.
When this issue occurs, I can simply drag'n drop the archived log file (the exact one that was originally copied to the outgoing mail directory) to the outgoing mail directory and, voila`, the mail is always sent.
Bill_H
You may want to ask this in a Windows Server Forum
Friday, June 5, 2020 6:20 AM ✅Answered
Hi,
Thanks for visiting our forum. Then here we mainly focus on general issues about Exchange server. From the description in your thread, it seems that your issue should be more related to IIS. If this is the case, it is suggested to post a new thread to the dedicated Answers community for IIS in order for you to get better response: https://forums.iis.net/
Regards,
Joyce Shen
Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.
Friday, June 5, 2020 10:00 PM ✅Answered
Thanks for the info. I thought I was posting to IIS but in a moment of inattention I was routed here and neglected to notice. Thanks for the link to where I need to post.
Bill_H
Thursday, June 4, 2020 4:03 AM
Hi,
Are you using Exchange online to relay messages?
The official document provides the options about How to set up a multifunction device or application to send email using Office 365 and Microsoft 365
I also find the below related information about the issue "error is processing file in pickup directory. 0xC00402CE"
ISS SMTP: "Error is processing file in pickup directory."
Maybe the failing email has some strange characters in it ot wrong composition, its possibly a malformed message in the queue holding things up
You could refer to this link as well to get more information: smtp server relay for office 365
Please Note: Since the web sites above are not hosted by Microsoft, the links may change without notice. Microsoft does not guarantee the accuracy of this information.
Regards,
Joyce Shen
Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.
Thursday, June 4, 2020 1:57 PM
No Exchange. Just the SMTP service. We only use email for outgoing email. The email header, along with the redirected commands, is built in the ".bat" file and copied to "C:\inetpub\mailroot\Public" (and an archive directory) at the end of the script. The headers are the same, as all machines/networks use a copy of the same ".bat" file.
When this issue occurs, I can simply drag'n drop the archived log file (the exact one that was originally copied to the outgoing mail directory) to the outgoing mail directory and, voila`, the mail is always sent.
Bill_H
Thursday, June 4, 2020 2:43 PM
According to Microsoft support:
To replay the messages that are located in the Badmail folder, follow these steps:
Stop the SMTP service.
Open IIS Manager.
Right-click Default SMTP Virtual Server, and then click Stop.
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.
Delete the .bad file name extension from all the .bad files that are located in the Pickup folder.
Start the SMTP service.
Open IIS Manager.
Right-click Default SMTP Virtual Server, and then click Start.
Verify that the messages were delivered.
Thursday, June 4, 2020 3:09 PM
I can't do that because the ".BAD" file is now a zero-byte file. And when I say zero-byte I really mean it - there's nothing in it at all.
Bill_H