RedHat 7.2, Qmail 1.03+patches-18, VMailMgr 0.96.9, Courier-imap 1.4.3
RedHat 6.2, Linux 2.2.14, Qmail 1.03+patches-12, VMailMgr 0.96.6, Courier-imap 0.31
Mandrake 7.0, Linux 2.2.13, Qmail 1.03+patches-12, VMailMgr 0.96.6, Courier-imap 0.31
Debian Potato, Qmail 1.03, VMailMgr 0.96.9, Courier-imap 1.4.3
The newest version of this can be found on my homepage http://www.clearrivertech.com/linux/HOWTO as SGML source, as HTML and as TEXT. Other versions may be found in different formats at the LDP homepage http://www.linuxdoc.org/.
Comments on this HOWTO may be directed to the author Dan Kuykendall (dan@kuykendall.org).
ucspi-tcp-0.88-1.src.rpm - http://untroubled.org/rpms/ucspi-tcp/
ucspi-unix-0.34-1.src.rpm - http://untroubled.org/ucspi-unix/
daemontools-0.70-3.src.rpm - http://untroubled.org/rpms/daemontools/
supervise-scripts-3.3-1.src.rpm - http://untroubled.org/supervise-scripts/
qmail-1.03+patches-18.src.rpm - http://untroubled.org/qmail+patches/current/
vmailmgr-0.96.9-1.src.rpm - http://www.vmailmgr.org/current/
courier-imap-1.4.3.tar.gz - http://www.inter7.com/courierimap/
Courier-imap does not come in binary form, unless you want to use the one I built. If you want mine, visit http://www.clearrivertech.com/linux/HOWTO/supportfiles/.
VMailMgr does not come in binary form that supports Courier-imap, unless you want to use the one I built. If you want mine, email me, and I will send it.
ucspi-tcp-0.88-1.i386.rpm - http://untroubled.org/rpms/ucspi-tcp/
ucspi-unix-0.34-1.i386.rpm - http://untroubled.org/ucspi-unix/
daemontools-0.70-1.i386.rpm - http://untroubled.org/rpms/daemontools/
supervise-scripts-3.3-1.noarch.rpm - http://untroubled.org/supervise-scripts/
qmail-1.03+patches-18.src.rpm - http://untroubled.org/qmail+patches/current/(*)
vmailmgr-0.96.9-2.i386.rpm - http://www.vmailmgr.org/current/
vmailmgr-courier-imap-0.96.9-2.i386.rpm - http://www.vmailmgr.org/current/
courier-imap-1.4.3.tar.gz - http://www.inter7.com/courierimap/ (**)
You can get them in the following locations:
http://www.tet.dk/ - by Ole Barnkob Kaas admin@tet.dk
http://smarden.org/pape/Debian/ - by Gerrit Pape pape@smarden.org
You will need:
ucspi-tcp_0.88-3_i386.deb - http://bagic.net/~billy/debs/ucspi-tcp/0.88-3/
ucspi-unix_0.34-1_i386.deb - http://bagic.net/~billy/debs/ucspi-unix/
The latest daemontools from - http://smarden.org/pape/Debian/daemontools.html
supervise-scripts_3.3-6_i386.deb - http://share.runtime-collective.com/~berkan/debian/dists/woody/misc/binary-i386/
qmail_1.03-17_i386.deb - http://bagic.net/~billy/debs/qmail/1.03-17/(*)
vmailmgr_0.96.9-3_i386.deb - http://bagic.net/~billy/debs/vmailmgr/
courier-imap - apt-get courier-imap
If your system does not have, or you do not use RPMS, you can install from source.
ucspi-unix-0.34.tar.gz - http://untroubled.org/ucspi-unix/
daemontools-0.70.tar.gz - http://cr.yp.to/daemontools
supervise-scripts-3.3.tar.gz - http://untroubled.org/supervise-scripts/
(qmail) release-18.tar.gz - http://untroubled.org/qmail+patches/current/ (*)
vmailmgr-0.96.9.tar.gz - http://www.vmailmgr.org/current/
courier-imap-1.4.3.tar.gz - http://www.inter7.com/courierimap/
(*) There may be minor differences in these instructions due to the use of the standard Qmail package. Please review the documentation for Qmail and VMailMgr if any of the files deviates from my instructions. |
Simply run the following command for each package rpm --rebuild <package.src.rpm> -Example-
rpm --rebuild ucspi-tcp-0.88-1.src.rpm rpm --rebuild ucspi-unix-0.34-1.src.rpm rpm --rebuild daemontools-0.70-3.src.rpm rpm --rebuild supervise-scripts-3.3-1.src.rpm |
Simply run the following command for each package rpm -ivh <location>/<package.i386.rpm>
rpm -ivh /usr/src/redhat/RPMS/i386/ucspi-tcp-0.88-1.i386.rpm rpm -ivh /usr/src/redhat/RPMS/i386/ucspi-unix-0.34-1.i386.rpm rpm -ivh /usr/src/redhat/RPMS/i386/daemontools-0.70-3.i386.rpm rpm -ivh /usr/src/redhat/RPMS/i386/supervise-scripts-3.3-1.i386.rpm |
Run the following commands for each package (as root) dpkg -i <package.deb>
dpkg -i ucspi-tcp_0.88-3_i386.deb dpkg -i ucspi-unix_0.34-1_i386.deb dpkg -i daemontools_0.70-1_i386.deb dpkg -i supervise-scripts_3.3-6_i386.deb |
(As non-root user) tar zxf supervise-scripts-2.4.tar.gz cd supervise-scripts-2.4 ./configure make (As root) make setup check or make install |
rpm --rebuild qmail-1.03+patches-18.src.rpm |
Simply run the following command for the qmail package rpm -ivh <location>/<package.i386.rpm>
rpm -ivh /usr/src/redhat/RPMS/i386/qmail-1.03+patches-18.i386.rpm |
Run the following commands for each package (as root) dpkg -i <package.deb>
dpkg -i qmail_1.03-17_i386.deb |
(As non-root user) tar zxf release-18.tar.gz cd release-1.03 vi INSTALL (Read and follow steps) |
Build the courier-imap rpms from the tar file rpm -ta courier-imap-1.4.3.tar.gz
* I will mention again, that I have built the binaries, and you can get them at * * http://www.clearrivertech.com/linux/HOWTO/supportfiles/. *
Simply run the following command for each package rpm -ivh <location>/<package.i386.rpm>
rpm -ivh /usr/src/redhat/RPMS/i386/courier-imap-1.4.3.i386.rpm |
Run the following commands for each package (as root) apt-get <package.deb>
apt-get courier-imap |
(As non-root user) tar zxf courier-imap-1.4.3.tar.gz cd courier-imap-1.4.3 ./configure make (As root) make install |
lib/misc/exec.cc lib/misc/keystrlist.cc lib/misc/strlist.cc lib/mystring/append.cc authenticate/authvmailmgr.cc |
authenticate/vauthenticate.cc authenticate/checkvpw.cc |
Simply run the following command rpm --rebuild <package.src.rpm> -Example-
rpm --rebuild vmailmgr-0.96.9-1.src.rpm |
Simply run the following command for each package rpm -ivh <location>/<package.i386.rpm>
rpm -ivh /usr/src/redhat/RPMS/i386/vmailmgr-0.96.9-1.i386.rpm rpm -ivh /usr/src/redhat/RPMS/i386/VMailMgr-daemon-0.96.6-1.i386.rpm rpm -ivh /usr/src/redhat/RPMS/i386/vmailmgr-courier-imap-0.96.9-2.i386.rpm |
Run the following commands for each package (as root) dpkg -i <package.deb>
dpkg -i vmailmgr_0.96.9-3_i386.deb |
lib/misc/exec.cc lib/misc/keystrlist.cc lib/misc/strlist.cc lib/mystring/append.cc authenticate/authvmailmgr.cc |
authenticate/vauthenticate.cc authenticate/checkvpw.cc |
Run the following commands (As non-root user) tar zxf <package.tar.gz> cd <newly created dir> ./configure make (As root) make install -Example-
(As non-root user) tar zxf vmailmgr-0.96.9.tar.gz cd vmailmgr-0.96.9 ./configure make (As root) make setup check or make install |
You will need to add your domains to the /var/qmail/control/virtualdomains file in the following format as is normal with qmail and VMailMgr. domain1.com:user1 For more detailed setup and config documentation visit the Qmail website http://www.qmail.org and the VMailMgr website http://www.vmailmgr.org
cp /usr/bin/authvmailmgr /usr/lib/courier-imap/libexec/authlib/ |
Edit /usr/lib/courier-imap/etc/imapd and add authvmailmgr as the only entry in AUTHMODULES
For more detailed setup and config documentation visit the Courier-imap website http://www.inter7.com/courierimap/
With the user account that will be managing the domain go to their home dir and type:
vsetup |
vadduser emailuser |
For more detailed setup and config documentation visit the VMailMgr website http://www.vmailmgr.org
Starting the Qmail daemon. Qmail installs itself to autostart by some mysterious (to me) way. If you like init scripts you can get Larry Doolittle's (ldoolitta@ajlab.org) init.d script at http://qmail.area.com/init.d-script If you have the Larry's init.d script just do this.
/etc/rc.d/init.d/qmail start |
Start VMailMgr daemon
/etc/rc.d/init.d/vmailmgrd start |
Start Courier-imap damon
/etc/rc.d/init.d/courier-imap start |
Qmail and the Maildirs may cause some email apps that run locally to not work. Visit the Qmail website http://www.qmail.org for details on email apps that have been patched to work with Maildirs.
Courier-imap is not as widely used as Cyrus or UWash imap servers. As such, you may suffer from minor incompatibilities. Courier-imap is extremely well written, and tries to comply with the imap definition even if it means some imap clients wont work well. For details visit the Courier-imap website http://www.inter7.com/courierimap/.
I would like to suggest that you also checkout phpGroupWare at http://www.phpgroupware.org. I have built in support for vmailmgr into it already and it can give you an end result of a full Groupware solution to fend of MS Exchange/Outlook or Lotus Domino.
If you decide to use a web based mail client, you will probably want to adjust courier-imaps MAXPERIP setting. By default it is 4, which is a bit low. Bump it up to something more sensible, like 10 - 50. Otherwise our webmail users will have problems connecting. This setting is in /usr/lib/courier-imap/etc/imapd.