How do I restart qmail?

I have access to VPS and root ssh. I'm pretty sure I have restarted Qmail before SSH, but I can't figure out how to do it.

I tried to run /etc/init.d/qmail restart

, but all I get is this -bash: /etc/init.d/qmail: No such file or directory


I also run:

ps ax | grep qmail-send
12035 pts/0    S+     0:00 grep qmail-send


I would be very grateful for guidance on how to do this, as well as what this process has to do in the future.

Many thanks. Stevie

Edit: While I'm using Plesk, I also have WebMin installed and it tells me that the command to start Qmail is "Just run the rc script" and the command to stop it is "Just kill qmail-send". However, I still lost a little.


source to share

3 answers

Turns out my 1 & 1 Plesk-VPS is crap ... it uses Postfix and not Qmail, which explains why it can't be restarted.

This is blurred by the fact that my mailbox configurations are automatically saved in a folder named / var / qmail / mailnames




Not sure if my answer will still be relevant to you, but anyway -

if on Plesk you can check if Qmail is installed with

rpm -q psa-qmail 


but the absence of the /etc/init.d/qmail

script definitely indicates that Qmail is not installed. At some point, it was announced that Postfix was replacing Qmail for Plesk.

Postfix can be restarted like any other Linux service

/etc/init.d/postfix {start|stop|restart|reload|abort|flush|check|status|condrestart}




Depends on installation location

/etc/init.d/qmail restart (will probably not work)


So try the following commands

sudo pkill -9 qmail




All Articles