|
rrizwanahmed@gmail.com
All
configuration are working fine in live/ LAB environments
Net
Installation
This
installation is created with the help of :
Life
With Qmail: http://www.lifewithqmail.org/lwq.html#installation
AND
QmailRocks:
http://www.qmailrocks.org
This
Installation is for Fedora
Core 2, 3, and 4.
IMPORTANT
NOTE:
Before
continuing NetQmail installation, we assume that you have installed
Fedora Core 2, or 3 or 4
Server, with our Fedora Core 2
and 4
installation Guides, and ready to continue with below mention steps.
So
we say you have installed your Fedora Core server and ready to configure
NetQmail E-mail Server, to serve yourself with the Power of Linux.
So
let's start our NetQmail email server installation.
Unpack
the distribution
If you made it this far, you have a working C compiler and copies of the
tarballs. Next, copy or move the tarballs to the directory you want to
do the work in. /usr/local/src is a good choice for qmail and
ucspi-tcp. daemontools should be built under /package.
At this time you probably want to become root, if you're not already.
su
umask 022
mkdir -p /usr/local/src
mv
netqmail-1.05.tar.gz ucspi-tcp-0.88.tar.gz /usr/local/src
mkdir -p /package
mv
daemontools-0.76.tar.gz /package
chmod 1755 /package
Now
you can unpack the packages.
cd /usr/local/src
gunzip
netqmail-1.05.tar.gz
tar xpf
netqmail-1.05.tar
cd netqmail-1.05
./collate.sh
# watch for errors here
cd ..
gunzip
ucspi-tcp-0.88.tar.gz
tar xpf
ucspi-tcp-0.88.tar
rm *.tar
# optional, unless space is very tight
cd /package
gunzip
daemontools-0.76.tar.gz
tar xpf
daemontools-0.76.tar
rm *.tar
# optional, again
There should now be directories called /usr/local/src/netqmail-1.05,
/usr/local/src/ucspi-tcp-0.88, and /package/admin/daemontools-0.76.
Create
directories
Since
qmail's installation program creates the subdirectories as they're
needed, you only need to create the qmail "home" directory:
mkdir /var/qmail
And
on to the next section.
Create
users and groups
The easiest way to create the necessary users and groups is to create a
little script file to do it for you. In the source directory you'll find
a file called INSTALL.ids. It contains the command lines for
many platforms, so copying the file to another name and editing that is
quick and easy.
cd /usr/local/src/netqmail-1.05/netqmail-1.05
cp INSTALL.ids IDS
I
use these line for my Fedora Core 2 Server.
groupadd
nofiles
useradd
-g nofiles -d /var/qmail/alias alias
useradd
-g nofiles -d /var/qmail qmaild
useradd
-g nofiles -d /var/qmail qmaill
useradd
-g nofiles -d /var/qmail qmailp
groupadd
qmail
useradd
-g qmail -d /var/qmail qmailq
useradd
-g qmail -d /var/qmail qmailr
useradd
-g qmail -d /var/qmail qmails
Now
we are creating user and group for our vPOPmail.
groupadd
vchkpw
useradd
-g vchkpw -d /home/vpopmail -s /sbin/nologin -p'*' vpopmail
Then to run it, either use chmod to make it executable or run
it with sh:
First
method:
chmod 700 IDS
./IDS
Second
method:
/bin/sh IDS
When the script finishes, all of your users and groups will be created
and you can go on to the next section.
You're
now ready to continue on to the next section.
Do
the build
Now you can start building qmail. Change to the /usr/local/src/netqmail-1.05/netqmail-1.05
directory and let's get started:
cd /usr/local/src/netqmail-1.05/netqmail-1.05
Now type the following:
make setup check
After the build is complete, you'll need to do your post installation
configuration. A couple of scripts are provided to make this job a lot
easier.
If your DNS is configured properly, this script should be all you need
at this point:
./config
If, for some reason, config can't find your hostname in DNS,
you'll have to run the config-fast script:
./config-fast
the.full.hostname
For
example, if your domain is example.com and the hostname of your computer
is dolphin, your config-fast line would look like this:
./config-fast
dolphin.example.com
Install
ucspi-tcp
Earlier,
you unpacked the qmail, ucspi-tcp, and daemontools tarballs. Now change
to the ucspi-tcp directory:
cd /usr/local/src/ucspi-tcp-0.88
Then
do:
patch < /usr/local/src/netqmail-1.05/other-patches/ucspi-tcp-0.88.errno.patch
make
make setup check
That's
it. ucspi-tcp is installed.
Install
daemontools
Change
to the daemontools build directory:
cd
/package/admin/daemontools-0.76
Then
do:
cd src
patch < /usr/local/src/netqmail-1.05/other-patches/daemontools-0.76.errno.patch
cd ..
package/install
|