How to start qmail / netqmail using systemd


EQ Forum Admin
Staff member
To have qmail/netqmail or my own indimail server run under systemd, one needs to create a service configuration file


# cat > /lib/systemd/system/qmail.service
Description=qmail/netqmail service

ExecStart=/var/qmail/bin/svscan /service
ExecStop=/var/qmail/bin/svc -dx /service/* /service/*/log


NOTE: You can use your own variation in ExecStart to start svscan
(using it with readproctitle, etc)

# systemctl enable qmail.service

The above command will create a link in

lrwxrwxrwx 1 root root 36 Jul 20 18:18 qmail.service ->

To start qmail/netqmail do

# systemctl start qmail.service

To stop qmail/netqmail do

# systemctl stop qmail.service

Source: Regards Manvendra -