MS Exchange and IIS inetinfo.exe process stuck

I have this strange problem now with one installation of MS Exchange server and IIS inetinfo.exe process on that machine. Whenever I restart the server running MS Exchange, the inetinfo.exe process start consuming 1GB of ram and stops all mail delivery. SMTP server just accepts mail and pulls it to \”Messages Pending Submission\” queue for later delivery.

It seems that inetinfo.exe does some indexing of MS Exchange store during which it consumes all resources and delay mail delivery. The only way to solve this is to wait until the inetinfo.exe finish this indexing, but normally it takes some hours. Since this is not the case (users need mail), I had to come up with some tricky solution:

1. Put a scheduled task to restart IIS every 2 minutes (%SYSTEM%\\System32\\iisreset.exe) since after the restart IIS manages to deliver around 10 pending messages before getting stuck

2. Make the IIS to be restarted until evening so that users can have their mail delivered (though with some small delays)

3. Stop scheduling after the working day so that the inetinfo.exe can finish indexing overnight. In the morning of the next day the server will be fine.

The biggest problem here is that I can not get what particularly the inetinfo.exe does, so that I could possibly find a better solution.