H-Sphere Sysadmin Guide

Qmail Compilation

 

Related Docs:  

Qmail Configuration

H-Sphere uses the standard qmail configuration. To rebuild it, please follow the steps outlined below. You may download Qmail source files from our site.

  1. Configure account/group IDs to be used by H-Sphere qmail (skip this step if these users and groups already exist):

    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 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.

 


Related Docs:  

Qmail Configuration



© Copyright 1998-2004. Positive Software Corporation.
All rights reserved.