Setting up Qmail

Here I try to provide a step-by-step guide to the succesful installation, configuration and usage of Qmail on OpenBSD.

>Installation

  1. Unpack the distribution source code:
    cd /tmp
    tar xvpfz /location/of/netqmail-1.04.tar.gz
    cd netqmail-1.04
    collate.sh
    Note: watch for errors that collate.sh might produce.
  2. Create the «home» directorie for Qmail:
    mkdir /var/qmail
  3. Next we have to create some user and group accounts. Edit/etc/master.passwd to look like this:
    alias:*:100:101::0:0:Qmail-alias:/var/qmail/alias:/bin/true
    qmaild:*:101:101::0:0:Qmail-qmaild:/var/qmail:/bin/true
    qmaill:*:102:101::0:0:Qmail-qmaill:/var/qmail:/bin/true
    qmailp:*:103:101::0:0:Qmail-qmailp:/var/qmail:/bin/true
    qmailq:*:104:100::0:0:Qmail-qmailq:/var/qmail:/bin/true
    qmailr:*:105:100::0:0:Qmail-qmailr:/var/qmail:/bin/true
    qmails:*:106:100::0:0:Qmail-qmails:/var/qmail:/bin/true

    Then add two new groups to /etc/group:
    qmail:*:100:
    nofiles:*:101:
  4. Now we're ready to build Qmail from source:
    cd /tmp/netqmail-1.04/netqmail-1.04
    make setup check
    ./config

    If config can't determine your hostname, you can tip it by running:
    ./config-fast mail.purebsd.com
  5. More coming soon!

Links

General links

Spam related links

Comments are closed.