Ubuntu Qmail HOWTO
Ubuntu used to have the qmail-src package available in the multiverse collection, however due to the lack of attention by whomever monitors the build reports, breezy doesn’t have the package availble to it. However, since the debian package is an all-platform package, one can simply use it to get where you need to go. The process is easy (once you’ve figured it the hell out).
- download the Debian stable .debs for qmail-src and ucspi-tcp to your ubuntu system
- use dpkg to install them manually
- run build-ucspi-tcp
- run build-qmail
- (optional) apply patches
First, you need to fetch the .debs for qmail-src and ucspi-tcp-src from the debian-stable distribution. Use the architecture all link at the bottom to find and download the .deb from any mirror. Save each file on the target system.
------------------------------------------------------------------------------
wget (...) ucspi-tcp/ucspi-tcp-src_0.88-9_all.deb
wget (...) qmail/qmail-src_1.03-38_all.deb
------------------------------------------------------------------------------
Next, use the dpkg command to install them. I used the following commands:
------------------------------------------------------------------------------
sudo dpkg -i ./ucspi-tcp-src_0.88-9_all.deb
sudo dpkg -i ./qmail-src_1.03-38_all.deb
------------------------------------------------------------------------------
Now, build ucspi, letting it be installed. I usually purge the installer package as it’s not needed anymore:
------------------------------------------------------------------------------
build-ucspi-tcp
------------------------------------------------------------------------------
Then, build the qmail package:
------------------------------------------------------------------------------
build-qmail
------------------------------------------------------------------------------
When I build, I install this patch I made which is a version of the qmail-spp patch modified to work against the debian patched source tree. To apply it, all you need to do is download it and run the following:
------------------------------------------------------------------------------
cd /tmp/qmail/qmail-1.03
patch -p 1 ~/debian-qmail-src-to-qmail-spp.patch
------------------------------------------------------------------------------
That’s it!