Please note: usage of this information is at your own risk. If you
don't like the last statement just follow the instructions at the
excellent website
http://lifewithqmail.org.
This is what I based the script on anyway.
Note: qmail works on unix like machines not window$ at all. If you need
a server for window$ you will have to look elsewhere sorry!
Thanks to
D.J Bernstein for
rocking good software.
Setting up qmail is time consuming and error prone. I set up my server
using
http://lifewithqmail.org.
Including the pop3d install also with checkpassword and safecat.
After the first time (which took me a long time, too embarrassed to
admit how long) I decided to use a script to automate the process
somewhat. Here it is, hope it helps you.
What you need:
This script:
qmailsetup.sh (make it executable i.e.
chmod 755 qmailsetup.sh )
qmail source code (
http://cr.yp.to/qmail.html).
daemontools source code. (
http://cr.yp.to/daemontools.html )
ucspi-tcp source code (
http://cr.yp.to/ucspi-tcp.html ).
safecat source code (
http://jeenyus.net/~budney/linux/software/safecat.html ).
checkpasswd source code (
http://cr.yp.to/checkpwd.html ).
Patches for errno:
Download the four patches by Mate Wierdl from qmail.org
here
FOR: qmail, daemontools, ucspi-tcp and checkpasswd
Put all the source code packages and patches in the same directory as qmailsetup.sh
open up the script in a text editor and check the variables for the
package names are correct. Near the top of the script they are marked:
# PACKAGE VARIABLES
and
# PATCHES by Mate Wierdl
respectively
In the form
qmailver=qmail-1.03
make sure the names match the downloaded packages minus the .tar.gz
extension.
i.e. if the package is named
qmail-1.234.tar.gz
then the line for that package should read
qmailver=qmail-1.234
At the top of the script there are also variables for:
SMARTHOST Default Smarthost
hname Name of the local server
DEFAULTDOMAIN i.e. localdomain
POSTMASTERMAIL
ROOTMAIL Aliases for postmaster and root
RELAYADDRESS An extra address that the server will relay
at first setup (it will setup the localhost
to allow relaying by default)
e.g. if your internal net is a class C address 192.168.0 set
this variable to equal 192.168.0. (note the dot at the end to
denote the whole 192.168.0 network) to relay any mail on this network to
your smarthost.
Stop your mail server. e.g.
/etc/init.d/sendmail stop
redhatesque
chkconfig sendmail off
debianesque
update-rc.d exim remove
Refer to your system documentation of your distibution.
The server maybe run from
xinetd so look in
/etc/xinetd.conf or
/etc/xinetd.d or wherever its configuration goes.
Note: if you are not root the script will try and
su to root.
now run
./qmailsetup.sh at the command line.
When you are done type
qmailctl at the command prompt for
options to the qmail control command line program.
email
D.J Bernstein to let
him know qmail is working for you (see INSTALL in the unpacked qmail
source directory).
Please note on newer systems the qmail source will have to be patched for
errno. The qmail site references this with links to the patches so if you get errors on compilation with regard to this check
qmail.org.
Sorry if it didn't work for you. If not let me know what
server OS you are using what error you are getting and mail it to me: