batch processing automatically resolves IMail queuemgr service suspend method _win server

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.