Setting Mail Server with Qmail on Fedora 3 part1


1. Getting the package and setting up environtment for installation
Make a work directory
# mkdir /downloads

Change directory to working directory
# cd /downloads

Copy qmailrocks package to working directory
# cp {dir package source}/qmailrocks.tar.gz .

Extract this package
# tar zxvf qmailrocks.tar.gz

2. Executing additional script
Executing script for pre-installation
# /downloads/qmailrocks/scripts/install/qmr_install_linux-s1.script

Executing script for patching qmail
# /downloads/qmailrocks/scripts/util/qmail_big_patches.script

3. Building Qmail
# cd /usr/src/qmail/qmail-1.03

# make man && make setup check

# ./config-fast mail.smiert.org

4. Setting up secure certificate
Generate a secure certificate that will be used to encrypt your server's TLS encrypted SMTP sessions...
# make cert

Here's a sample of my cert configs.

Country Name (2 letter code) [GB]:ID
State or Province Name (full name) [Berkshire]:West Java
Locality Name (eg, city) [Newbury]:Bandung
Organization Name (eg, company) [My Company Ltd]:smiert.inc
Organizational Unit Name (eg, section) []:mail
Common Name (eg, your name or your server's hostname) []:mail.smiert.org
Email Address []:postmaster@smiert.org

If the cert is successfully generated it will be automatically installed at /var/qmail/control/servercert.pem,
along with a symlink to that cert at /var/qmail/control/clientcert.pem

Now we set the right ownership for the newly create cert...
# chown -R vpopmail:qmail /var/qmail/control/clientcert.pem /var/qmail/control/servercert.pem

5. Building ucspi-tcp
# cd /usr/src/qmail/ucspi-tcp-0.88/

You will need to patch ucspi-tcp with an additional errno patch:
# patch < /downloads/qmailrocks/patches/ucspi-tcp-0.88.errno.patch

# make && make setup check

Popular posts from this blog

Howto configure boot device order on ILOM

Installing Depot files on HP-UX 11.23 ia64

SAN Switch Config Command