Casbay Knowledge Base

Search our articles or browse by category below

HOW TO: Restart mail services

Last modified: October 1, 2022
You are here:
Estimated reading time: 1 min

How to restart mail services?

Restart with WHM

  1. Firstly, login to WHM.

  2. Then, type “restart” in the top left search bar.

  3. Click on “Mail Server (Exim)” link.

  4. Lastly, click Yes to restart.

  5. Wait for the restart to complete. Then, follow the same procedure to restart the IMAP Server (Courier/Dovecot) service.

Restart through Commands

Type in the line below after you are remotely in the server.
/scripts/restartsrv service  
(replace service with the name of the service: exim, named, proftpd, httpd, etc.)

You can also restart mail services through the system. It depends on the OS you are using as to where the files are located. Many distributions are located in /etc/rc.d/init.d/
To restart this way you can use:
/etc/rc.d/init.d/service
(replace service with the name of the service: exim, named, proftpd, httpd, etc)

You can use the following command to list all the services that can be restarted by the system:
cat /etc/rc.d/init.d/

If the service fails after restarting, you should check the error log. For example, to check Apache’s error log, use:
tail /usr/local/apache/logs/error_log

Was this article helpful?
Dislike 0
Previous: Exchange Mail Setup Guide for iOS (Apple/iPhone /Mac)
Next: POP3 or IMAP with SSL