User Tools

Site Tools


archive:freebsd_install_qmhandle

How To Install qmHandle On FreeBSD

cd /usr/ports/mail/qmhandle && make install clean

If you installed Qmail from the guide on this page you will need to edit the qmHandle configuration file.

vi /usr/local/etc/qmHandle.conf

Find these 2 lines:

# For instance, this is if you have DJB's daemontools
#our ($stopqmail) = '/usr/local/bin/svc -d /service/qmail-deliver';
#our ($startqmail) = '/usr/local/bin/svc -u /service/qmail-deliver';

Replace them with the following i.e remove the # and replace deliver with send like below.

# For instance, this is if you have DJB's daemontools
our ($stopqmail) = '/usr/local/bin/svc -d /service/qmail-send';
our ($startqmail) = '/usr/local/bin/svc -u /service/qmail-send';

Next find these 2 lines.

# This is if you have FreeBSD with its qmail package
our ($stopqmail) = '/usr/local/etc/rc.d/qmail.sh stop';
our ($startqmail) = '/usr/local/etc/rc.d/qmail.sh start';

Add a # infront of these 2 lines like this.

# This is if you have FreeBSD with its qmail package
#our ($stopqmail) = '/usr/local/etc/rc.d/qmail.sh stop';
#our ($startqmail) = '/usr/local/etc/rc.d/qmail.sh start'; 

Optional If you don't want qmHandle to use pgrep in terms of terminating qmail you can use of pidof instead. In order to use pidof install pidof.

cd /usr/ports/sysutils/pidof && make install clean

Next modify these lines in the configuration file.

#our ($pidcmd) = 'pidof qmail-send';

And remove the # like this.

our ($pidcmd) = 'pidof qmail-send';

Finally find this line.

our ($pidcmd) = 'pgrep qmail-send';

And add a # infront of it like this.

# our ($pidcmd) = 'pgrep qmail-send';

Note: Some people claim they cant find qmHandle once installed. It's most likely because they are not spelling it with a capital “H” i.e qmHandle.

archive/freebsd_install_qmhandle.txt · Last modified: 24/11/2023 12:36 by Allan