qmail is one package from the suite of softwares from the DJB people (). All their server processes are controlled though the "daemontools" utilities. The "supervise" program makes sure that all the server programs under its control are always up and running. If a server dies for some reason, supervise gets it up in 5 seconds. The supervise program is started through the /etc/inittab file.
The server programs controlled by supervise have links in the /service directory. It has two links "qmail" and "qmail-smtpd". The qmail package is installed under /var/qmail.
Here are some commonly needed control commands:
- To stop qmail: svc -d /service/qmail*
- To start qmail: svc -u /service/qmail*
- To restart qmail: svc -t /service/qmail*
- To check qmail status: svstat /service/qmail*
The logs are kept under /service/qmail/log/main/. The file named "current" has the active mail log.
阅读(788) | 评论(0) | 转发(0) |