Hi Rick,
We actually wrote a blog article about this same exact scenario (based on the print spooler service) here: https://www.eventsentry.com/blog/2016/02/automatically-restarting-memory-hungry-services.html.
If you follow the article and simply replace all references to the print spooler with the imap service then you should be able to automatically restart the service if it exceeds a certain amount of memory.
You can simply reply here if you run into any issues, thank you!
Ingmar.
Rick M
I have a mail server and sometimes i get a memory leak in the imap service. So i am trying to setup either an alert ore restart the service if it reaches over x amount of Mb memory used i can not figure out how to do that in event sentry light. If someone can help me it would be greatly appreciated.