H-Sphere Documentation Sysadmin Guide

For more information contact us at info@psoft.net

Qmail Compilation

 

H-Sphere uses the standard qmail configuration. To rebuild it, please follow the steps outlined below.

  1. Configure account/group IDs to be used by H-Sphere qmail:

    For FreeBSD:

    # /usr/sbin/pw groupadd -g 401 -n nofiles
    # /usr/sbin/pw groupadd -g 400 -n qmail
    # /usr/sbin/pw useradd -u 400 -n alias -g nofiles -d /hsphere/local/var/qmail/alias
    # /usr/sbin/pw useradd -u 401 -n qmaild -g nofiles -d /hsphere/local/var/qmail
    # /usr/sbin/pw useradd -u 402 -n qmaill -g nofiles -d /hsphere/local/var/qmail
    # /usr/sbin/pw useradd -u 403 -n qmailp -g nofiles -d /hsphere/local/var/qmail
    # /usr/sbin/pw useradd -u 404 -n qmailq -g qmail -d /hsphere/local/var/qmail

    For Linux:

    # /usr/sbin/groupadd -g 401 -r nofiles
    # /usr/sbin/groupadd -g 400 -r qmail
    # /usr/sbin/adduser -u 400 -r -g nofiles -d /hsphere/local/var/qmail/alias alias
    # /usr/sbin/adduser -u 401 -r -g nofiles -d /hsphere/local/var/qmail qmaild
    # /usr/sbin/adduser -u 402 -r -g nofiles -d /hsphere/local/var/qmail qmaill
    # /usr/sbin/adduser -u 403 -r -g nofiles -d /hsphere/local/var/qmail qmailp
    # /usr/sbin/adduser -u 404 -r -g qmail -d /hsphere/local/var/qmail qmailq
    # /usr/sbin/adduser -u 405 -r -g qmail -d /hsphere/local/var/qmail qmailr
    # /usr/sbin/adduser -u 406 -r -g qmail -d /hsphere/local/var/qmail qmails

  2. In the /root/sources directory with qmail sources and the qmail-smtpd.patch file (download qmail-smtpd.patch here), execute the following commands, or create and run the script with these commands, under root:

    # cd /root/sources/
    # tar xzf ${QMAIL_NAME}.tar.gz -C ${BUILD_DIR}
    # cd ${BUILD_DIR}/${QMAIL_NAME}
    # patch -p0 < /root/sources/qmail-smtpd.patch || exit 1
    # echo Making
    # make setup check || exit 1
    # echo Config-fast
    # ./config-fast ${MAILDOMAIN_COM} || exit 1
    # [ -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

    Here,
    - QMAIL_NAME is the qmail package name;
    - BUILD_DIR is the qmail build directory;
    - MAILDOMAIN_COM is the mail server domain name.



Home   Products   Services   Partners   Support   News   Contact   Forum
© Copyright 1998-2003. Positive Software Corporation.
All rights reserved.