IIS/SMTP - unable to move emails from inetpub/mailroot/Queue due to file lock
- by Bryan Roth
I have a listener that processes emails in the inetpub/mailroot/Queue directory. Once the listener is done processing an email it proceeds to move the email to another directory. However, moving the email is not possible due to a file lock by the process inetinfo.exe. I have noticed that this file lock is released after a period time that ranges…