CentOS Linux Server Guide

CentOS Linux Mail Server

Installing QMail Mail Server on Centos Linux

 

CentOS Linux does not come with QMail packages.  You need to download the QMail packages from Qmailrocks.org to get the latest qmailrocks.tar.gz packages.

 

Step0: Remove Centos default mail server packages

We need to remove default CentOS Mail packages -Sendmail to avoid any mail packages conflict.  First you need identify if the Sendmail or Postfix was already installed.

 

For removing sendmail

To check if sendmail installed earlier
rpm -qa sendmail

sendmail-8.13.8-2.el5

yum remove sendmail

 

For removing posftfix

To check if postfix installed earlier
rpm -qa postfix

postfix-2.3.3-2.1.el5

yum remove postfix

 

 

Step1: Make a download folder for the packages

For better software package management, I always create a separate folder for all my download packages and installation.

 
mkdir /software

 

Step2: Download the QMail packages

Download the QMail package into the /software
wget http://www.qmailrocks.org/downloads/qmailrocks.tar.gz

 

Step4: Extract the qmailrocks.tar.gz packages

Ats software folder, extracting the qmailrocks.tar.gz packages

tar zxvf qmailrocks.tar.gz

 

Step5: Initialize the Qmail packages

Now, lets go into qmailrocks directory and start to initialize and install the qmail packages

cd qmailrocks

./qmr_install-s1.script

 

Step6: Apply latest QmailPatch

For me, I always patch the system proceed further for any addon or customization.  This would make our life much more easier than focus on debugging ..

cd qmailrocks/scripts/util/

./qmail_big_patches.script

 

Step7: Perform pre-installation check

To avoid any configuration mistake and decencies or packages conflict. The following step are crucial

cd /usr/src/qmail/qmail-1.03
 
make man && make setup check

 

Step8: Perform Qmail installation

This is the last step of the installation. You need to supply a valid FQDN Mail hostname. For example, my valid FQDN Mail host is mail.1a-centosserver.com.

 

./configure < your-FQDN-mail-host>

 

cd /usr/src/qmail/qmail-1.03

./configure mail.1a-centosserver.com

 

Step9: Create symbolic link

Due to many legacy packages and other applications are using sendmail as default mail service.  You  are advised to create symbolic link to Qmail to ensure mail services for thise packages are not affected.

ln -s /var/qmail/bin/sendmail /usr/lib/sendmail

ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail

 

Back to CentOS Mail Server



Copyright 2011 http://www.1a-centosserver.com All Rights Reserved

All trademarks are the property of their respective owners.

Contact Us | Terms of Use | Privacy Policy