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
- Unpack the distribution source code:
cd /tmpNote: watch for errors that
tar xvpfz /location/of/netqmail-1.04.tar.gz
cd netqmail-1.04
collate.sh
collate.shmight produce. - Create the «home» directorie for Qmail:
mkdir /var/qmail
- Next we have to create some user and group accounts. Edit
/etc/master.passwdto 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:
- Now we're ready to build Qmail from source:
cd /tmp/netqmail-1.04/netqmail-1.04
make setup check
./config
Ifconfigcan't determine your hostname, you can tip it by running:
./config-fast mail.purebsd.com
- More coming soon!
General links
- Official Qmail site - Created by the Qmail author Daniel J. Bernstein
- Moving large Sendmail sites to Qmail - By Daniel J. Bernstein
- Qmail homepage - Reference site for Qmail users
- Life With Qmail - A very information rich and broad Qmail tutorial
Spam related links
- Qmail anti-spam howto - Qmail and general spam related info
- RBLs - List of many RBLs
- Fighting spam - Provides a up to date blacklist info among other things
Tags: Qmail, Setting up