For i386

or for Error: Embedded data could not be displayed.

Now download the qmail source so we can patch it:


# cd ~root
# fetch http://www.freebsdrocks.net/files/qmail-1.03.tar.gz
# tar zxvf qmail-1.03.tar.gz

Now go to https://qmail.jms1.net/patches/combined-details.shtml and I would suggest downloading the stable version. We will place that in the same folder as ~root and then patch the qmail source using the following commands:


# wget https://qmail.jms1.net/patches/qmail-1.03-jms1.7.08.patch --no-check-certificate
# cd qmail-1.03
# patch < ../qmail-1.03-jms1.7.08.patch

You will get an output of files that it patched. As long as it says done at the end with no errors you can continue.

Starting with FreeBSD 9.0 the user accounting database has been changed which resulted in an incompatible change to the data structure of the database. The utmp.h header file referenced by qbiff.c no longer exists since it's been replaced by utmpx.h.

http://www.freebsd.org/releases/9.0R/relnotes.html

Since it would take more time or interest than I have to change qbiff to be compatible with the change, I just removed all references to qbiff in hier.c, install-big.c, and the make file. The loss of qbiff functionality isn't significant for me since it is just for ma il notifications for local system users. The following commands fixes this accounting issue:


# fetch http://freebsdrocks.net/files9/qmail_fix.tgz
# tar zxvf qmail_fix.tgz
# rm qmail_fix.tgz

Now run the following:


# make man
# make setup check

Lets get qmail setup for your local hostname. If your local hostname is bsd.localhost, use the following:


# ./config-fast bsd.localhost

You will get a output saying it is going to add that hostname to specific qmail control files. If you would like more information as to what these specific files control, please take a look at http://www.lif ewithqmail.org/lwq.html#config-files

At this point I would not recommend deleting any of the qmail files. They really don't take up a lot of room but if you ever delete anything by accident or need to rebuild you queue, you can stop qmail and then run make setup check and then start qmail again. This by any means won't fix everything but leaving the qmail files there won't hurt a bit.

One last thing to recommend is going into /var/qmail/control/locals and making sure that file is empty. If you need a good explanation as to why to do this:

rcpthosts is used for domains that we accept mail for - mostly used for vpopmail virtual domains that reside in /home/vpopmail/domains

If rcpthosts does not exist, you are an open relay. If it exists and is empty and there is no "morercpthosts.cdb" file as well, then your server will reject all incoming mail.

locals - domains that we deliver locally - mostly used for local delivery /home/$USER/Maildir