1-B Qmail per-se

We'll start off by downloading qmail via ubuntu and patching it with John Simpson's combined Patch

UBUNTU:

apt-get install qmail-src

cd /usr/src/qmail-src/qmail-1.03

CENTOS:

cd /usr/src

wget http://www.qmailboulders.com.ar/sites/default/files/qmail-1.03.tar_.gz

mv qmail-1.03.tar_.gz qmail-1.03.tar.gz

tar -xvf qmail-1.03.tar.gz

cd qmail-1.03

#RESUME HERE
wget http://qmail.jms1.net/patches/qmail-1.03-jms1-7.10.patch
patch < ./qmail-1.03-jms1-7.10.patch

# Then we have to create the standard qmail users defined by John Simpson. If they were already created, modify the /etc/passwd and /etc/group files in order to match this setting:

groupadd -g 161 nofiles
groupadd -g 162 qmail

useradd -u 161 -g 161 -d /var/qmail/alias -s /sbin/nologin -p'*' alias
useradd -u 162 -g 161 -d /var/qmail -s /sbin/nologin -p'*' qmaild
useradd -u 163 -g 161 -d /var/qmail -s /sbin/nologin -p'*' qmaill
useradd -u 164 -g 161 -d /var/qmail -s /sbin/nologin -p'*' qmailp
useradd -u 165 -g 162 -d /var/qmail -s /sbin/nologin -p'*' qmailq
useradd -u 166 -g 162 -d /var/qmail -s /sbin/nologin -p'*' qmailr
useradd -u 167 -g 162 -d /var/qmail -s /sbin/nologin -p'*' qmails

groupadd -g 89 vchkpw
useradd -u 89 -g 89 -d /home/vpopmail -s /sbin/nologin -p'*' vpopmail

 

 

#And then we compile Qmail...
sed -ie '1s/$/ -DBIND_8_COMPAT/' conf-cc
make
make man
make setup check

#REPLACE BELOW WITH YOUR SERVER'S HOSTNAME
./config-fast mail.example.com
#attachment limit on 50Mb
echo 50000000 > /var/qmail/control/databytes
#30 second timeout (until receiving a command)
echo 30 > /var/qmail/control/timeoutsmtpd