IIS's SMTP Pickup timing

Posted by fatcat1111 on Server Fault See other posts from Server Fault or by fatcat1111
Published on 2009-10-06T21:58:08Z Indexed on 2010/05/27 21:12 UTC
Read the original article Hit count: 323

Filed under:
|

I have IIS's SMTP server set up as a closed relay, and it's working nicely. I also have an application that writes EML files. If the EML files are written to a temporary directory, then moved to the server's Pickup directory, email is sent as expected. However, if I have the application write the EML files directly to the Pickup directory, the email will often fail to send.

This seems to be a race condition: the server starts processing the EML file as soon as it detects it in Pickup, even though the application hasn't completed writing it. The result is the server considers the EML to be malformed, and it punts it to Badmail.

While I very much appreciate the server's earnestness, it seems that I need to dial it back a bit for this scenario. Does anybody know if IIS's SMTP server's polling frequency can be configured?

I am using IIS7, Windows Server 2008 R2. The application that writes the EML cannot be modified.

© Server Fault or respective owner

Related posts about iis

Related posts about smtp