Professional Documents
Culture Documents
Qmail is a small, fast, stable, and secure mail server suite written by D.J. Bernstein. Bernstein has offered a
reward for years for anyone who found a security hole in the code. That reward has never been claimed that
I know of. It is used by both small and large providers for as few as a couple users to clusters with over a
million users.
Qmailtoaster has support to build for RHEL/CentOS (3.x, 4.x, 5.x including x86_64 architectures), Fedora
(Cores 1-6 with x86_64 support for FC6), Fedora 9 and 10 (also with x86_64 support), Suse 10.0, 10.1
(including x86_64 support for both), Suse 11.1, Mandriva 10.2, 10.3 (including x86_64 support) with more
architectures coming all the time.
For this how-to we will be installing Qmailtoaster for CentOS 5.3, but installing for other distros/arches is
as easy as changing the build flags.
You'll probably want to do a reboot to clean everything up at this point. On to the next step.
5) Install Qmailtoaster
Now is when the real fun begins: let's install our system!
The Qmailtoaster team has written handy install scripts to help you get everything installed as well. If you
want to manually install the packages yourself, you would use a command similar to this (we're using the
CentOS 5, 32 bit flags for this example):
rpmbuild --rebuild --with cnt50 daemontools-toaster-*
rpm -Uvh /usr/src/redhat/RPMS/i386/daemontools-toaster-*
For other distros/arches, you would different build flags. --with fedora_9 for (you guess it!) Fedora 9, --with
cnt5064 for CentOS 5 x86_64, etc. More information is available on the website: www.qmailtoaster.com
Since we're taking the fast lane for this article, we'll use the Qmailtoaster team's install script. Let's go ahead
and download that and run it:
wget http://www.qmailtoaster.com/distro/centos/cnt50/cnt50-install-script.sh
sh cnt50-install-script.sh
The script will run through building each package for you, and installing it. At the end of each build/install
process it will pause and ask you if you want to continue. This is so that if you do happen to run into an
issue, you'll see it and it won't just scroll on by your screen.
Once the script is all done, I recommend a reboot. Congratulations! You should have a fully installed
Qmailtoaster system with spam and virus scanning and a whole bag full of advanced features that used to
take all day to patch and compile. That was easy!
6) Final Steps
For the final steps in your system, let's make sure that the Qmailtoaster server is up and running:
qmailctl stat
This will show you the Qmailtoaster components, their status, and how long they have been running.
Let's add our first domain:
/home/vpopmail/bin/vadddomain example.com password
There are some web-based tools to administer your system as well. Check out the website for more details
on those.
To add users, let's use the Qmailadmin web based package. Simply go to the web page at http://yourserver/qmailadmin and login with the username (assuming you created example.com above)
postmaster@example.com and the password you defined above. You can now create, modify, and delete
email addresses as you see fit. You'll also have access to ezmlm where you can create mailing lists for your
domain as well.
There's a lot packed into this installation, so I suggest that you run over to the main site and read the
documentation there and also check out the wiki (wiki.qmailtoaster.com). Almost every question you may
have is answered in those two places.