How to Install Qmailtoaster Project on Linux

A Step-by-step Guide on Installing Qmailtoaster Project

The Armchair Geek
The purpose of the Qmailtoaster project is to make the installation of Qmail onto RPM based operating systems easy. All the packages are distributed via source RPMs, making it easy to build the packages for your particular Linux distribution. Qmail is a fast, small, stable, and secure mail server developed by D.J. Bernstein. This tutorial will show you how to install Qmailtoaster on the CentOS 5.3 operating system.

1. Before installing Qmailtoaster, you will need to configure your system. You will need to set the host name by entering the following command into the terminal:

hostname --fqdn

You will also need to make sure SELinux is turned off because it may cause some issues with ClamAV. Enter the following command to accomplish this:

getenforce

2. After that, you will need to edit the configuration file for SELinux by entering the following command:

vi /etc/selinux/config

You will need to change the line reading SELINUX=enforcing to SELINUX=disabled.

3. Now you need to fill some dependencies in order to build the packages. Enter the following command to run the dependency script:

mkdir QMT
cd QMT
wget http://www.qmailtoaster.com/distro/centos/cnt50/cnt50-deps.sh
sh cnt50-deps.sh

4. This script will be run for a few minutes. After this process is complete, enter the following command to fill some perl dependencies:

wget http://www.qmailtoaster.com/distro/centos/cnt50/cnt50-perl.sh
sh cnt50-perl.sh

Accept all the default values to continue.

Enter the following command:

wget http://www.qmailtoaster.com/distro/centos/cnt50/cnt50-svcs.sh
wget http://www.qmailtoaster.com/distro/centos/cnt50/firewall.sh

You can edit these scripts to fit your needs.

5. Enter the following command to set up the firewall:

sh cnt50-svcs.sh

Now you need to install a caching name server. To do this, start by entering the following command:

yum -y install caching-nameserver

After that, enter this command into the terminal:

service named start

6. Finally, you will need to enter the following command to make the server start whenever your computer boots:

chkconfig named on

You can now begin downloading the Qmailtoaster packages. Enter the following command to download the script:

wget http://www.qmailtoaster.com/distro/centos/cnt50/current-download-script.sh

Once the script is downloaded, enter the following command to run the script:

sh current-download-script.sh

7. After all the packages are installed, you are finally ready to install Qmailtoaster. If you want to manually install the packages on CentOS, you will need to enter the following command into the terminal:

rpmbuild --rebuild --with cnt50 daemontools-toaster-*

rpm -Uvh /usr/src/redhat/RPMS/i386/daemontools-toaster-*

The install script can be downloaded and run by entering the following commands:

wget http://www.qmailtoaster.com/distro/centos/cnt50/cnt50-install-script.sh
sh cnt50-install-script.sh

Published by The Armchair Geek

We are a Mid-West PLR Firm specializing in creating powerful web content for clients in a wide array of industries. This is a sampling of some of our IT-focused articles. For more of our work, you can co...  View profile

To comment, please sign in to your Yahoo! account, or sign up for a new account.