In the /root/sources directory with qmail sources
and the
tarball with H-Sphere Qmail-related patches,
execute the following commands, or create and run the script with these commands,
under root:
# cd /root/sources/
# tar xzf qmail-1.03.tar.gz
# tar xzf hsphere-qmail-1.03.tar.gz
# cd qmail-1.03
# patch < /root/sources/hsphere-qmail-1.03/hsphere-qmail-1.03.patch
# make setup check
Notes:
1. The tarball with H-Sphere Qmail patches also contains additional patches
that should be applied for other mail-related packages. For more details,
see README in this archive.
2. Depending on OS, you must place the qmail startup file into
the service startup directory:
For Linux:
cp /root/sources/hsphere-qmail-1.03/qmaild /etc/rc.d/init.d/
For FreeBSD:
cp /root/sources/hsphere-qmail-1.03/qmaild.sh /usr/local/etc/rc.d/
Important: If make setup check is made on live qmail,
it is required first to stop qmail,
run the given command
and then start qmail again.
The following steps are done on fresh qmail installation. Skip them
if you already had qmail package installed on your system:
# [ -d /hsphere/local/var ] || mkdir -p /hsphere/local/var
# rm -f /hsphere/local/var/qmail
# mkdir -p /hsphere/local/var
# ln -s /var/qmail /hsphere/local/var/qmail
# cp -f /hsphere/local/var/qmail/boot/home /hsphere/local/var/qmail/rc
# cd /hsphere/local/var/qmail/control
# echo MAIL_SERVER_NAME | tee rcpthosts | tee me > locals
# echo 1 | tee popbeforesmtp | tee smtpauth > mfdnscheck
Here, MAIL_SERVER_NAME is the mail server domain name.
Read more about the popbeforesmtp, smtpauth,
and mfdnscheck Qmail parameters in the
Qmail Configuration guide.