qpsmtpd Wiki


You are here: start » deploy » daemontools


You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.


You don't have an account yet? Just get one: Register

Forgotten your password? Get a new one: Set new password



daemontools is an optional collection of tools for managing UNIX services that can be used with qpsmtpd. daemontools is part of a typical qmail install. Users of MTAs other than qmail may be interested in using runit instead of daemontools.

supervise monitors a service. It starts the service and restarts the service if it dies. Setting up a new service is easy: all supervise needs is a directory with a run script that runs the service.

multilog saves error messages to one or more logs. It optionally timestamps each line and, for each log, includes or excludes lines matching specified patterns. It automatically rotates logs to limit the amount of disk space used. If the disk fills up, it pauses and tries again, without losing any data.

runit is another service supervision tool that can also be used with qpsmtpd.

Install Notes

When installing from source on Linux, you should include errno.h if make fails with the following error:

undefined reference to `errno'

This is described at http://cr.yp.to/docs/unixport.html#errno and can be fixed with either of the following:

$ perl -pi.bak -e 's/extern int errno;/#include <errno.h>/' src/error.h
$ perl -pi.bak -e 's|^(gcc)|\1 --include /usr/include/errno.h|' src/conf-cc


If you wish to distribute daemontools, be sure to read http://cr.yp.to/distributors.html. Be aware that the distributors.html page has been said to be incorrect and the latest conditions may not be published.