Grow your Business Online​
Wesbytes Blue Logo

Wesbytes Knowledge Base

Search our articles or browse by category below

How to Restart Mail Services?

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

How to Restart Mail Services?

Restart with WHM

  1. Firstly, go to WHM and login.
  2. Then, in the top left search field, type “restart”.
  3. Select “Mail Server (Exim)” from the drop-down menu.
  4. Finally, to restart, select Yes.
  5. Wait for the restart to finish. The IMAP Server (Courier/Dovecot) service should then be restarted using the same approach.

Restart through Commands

After you’ve logged in to the server remotely, type in the line below.

/scripts/restartsrv service  

(replace service with the name of the service: exim, named, proftpd, httpd, etc.)

You can also use the system to restart mail services. The location of the files is determined by the operating system you are using. Many distributions can be found in the /etc/rc.d/init.d/ directory.

You can use the following commands to restart this way:

/etc/rc.d/init.d/service

(replace service with the name of the service: exim, named, proftpd, httpd, etc)

To get a list of all the services that can be restarted by the system, type the following command:

cat /etc/rc.d/init.d/

If the service still doesn’t work after restarting, look at the error log. To check Apache’s error log, for example, type:

tail /usr/local/apache/logs/error_log
Was this article helpful?
Dislike 0
Views: 3