IMail is a very well-known mail server software, but his mail process management is not very well designed, many administrators will encounter IMAIL mail process services Queuemgr often hung problems, Our usual solution is to go into the IMAIL controller reboot Queuemgr, but we will find the IMAIL program hangs, then we can only kill the Queuemgr process through task management to start, then we can automate this step?
The answer is, of course, to take advantage of the service recovery function in the Service Manager, we can use this function to monitor the status of the Queuemgr service, if the Queuemgr service hangs or fails, then we can start a batch to say it restart operation, The reason to use batching is to solve the problem that the Queuemgr service is displayed in the Service Manager when the service has been suspended, and if the service process cannot be terminated simply by using net stop && net start, The process must be killed by the task Manager to restart the service, we can use the Taskkill command to kill the process, so the problem is a complete solution!
Here's what I do with the batch imailqueuemgrfilter.bat:
Copy Code code as follows:
@echo Imail Filter
net stop Queuemgr
net stop smtpd32
taskkill/f/im Queuemgr.exe
taskkill/f/im Smtpd32.exe
net start Queuemgr
net start smtpd32