Difference between revisions of "Qmail rocks"

From Noah.org
Jump to navigationJump to search
m
Line 15: Line 15:
 
If you need other virtual hosts then you must edit your rcpthosts file.
 
If you need other virtual hosts then you must edit your rcpthosts file.
 
<pre>
 
<pre>
# ./config-fast mail.vinylinteractive.com
+
# ./config-fast mail.example.com
Your fully qualified host name is mail.vinylinteractive.com.
+
Your fully qualified host name is mail.example.com.
Putting mail.vinylinteractive.com into control/me...
+
Putting mail.example.com into control/me...
Putting vinylinteractive.com into control/defaultdomain...
+
Putting example.com into control/defaultdomain...
Putting vinylinteractive.com into control/plusdomain...
+
Putting example.com into control/plusdomain...
Putting mail.vinylinteractive.com into control/locals...
+
Putting mail.example.com into control/locals...
Putting mail.vinylinteractive.com into control/rcpthosts...
+
Putting mail.example.com into control/rcpthosts...
Now qmail will refuse to accept SMTP messages except to mail.vinylinteractive.com.
+
Now qmail will refuse to accept SMTP messages except to mail.example.com.
 
Make sure to change rcpthosts if you add hosts to locals or virtualdomains!
 
Make sure to change rcpthosts if you add hosts to locals or virtualdomains!
 
</pre>
 
</pre>

Revision as of 18:20, 7 November 2006

Qmail Rocks on Ubuntu

A stock Ubuntu server install will need a few additional packages to support Qmail Rocks.

apt-get install openssh-server
apt-get install build-essential
apt-get install libssl-dev
apt-get install openssl
apt-get install mysql-server # For Vpopmail MYSQL support

Virtual Hosts

When you run config-fast you set your main STMP host. If you need other virtual hosts then you must edit your rcpthosts file.

# ./config-fast mail.example.com
Your fully qualified host name is mail.example.com.
Putting mail.example.com into control/me...
Putting example.com into control/defaultdomain...
Putting example.com into control/plusdomain...
Putting mail.example.com into control/locals...
Putting mail.example.com into control/rcpthosts...
Now qmail will refuse to accept SMTP messages except to mail.example.com.
Make sure to change rcpthosts if you add hosts to locals or virtualdomains!

Install all script

Be sure to edit the few shell script variables at the top of this script. You will also need to have Apache installed under /var/www/usr/local/apache2.

#!/bin/sh
FQDN="mail.example.com"
CGI_BIN_PATH=/var/www/usr/local/apache2/cgi-bin
HTDOC_PATH=/var/www/usr/local/apache2/htdocs

apt-get install openssh-server
apt-get install build-essential
apt-get install libssl-dev
apt-get install openssl

mkdir /downloads
cd /downloads
wget http://www.qmailrocks.org/downloads/qmailrocks.tar.gz
tar zxvf qmailrocks.tar.gz
/downloads/qmailrocks/scripts/util/qmail_big_patches.script
cd /usr/src/qmail/qmail-1.03
make man && make setup check
./config-fast $FQDN
make cert
chown -R vpopmail:qmail /var/qmail/control/clientcert.pem /var/qmail/control/servercert.pem
# TCP tools
cd /usr/src/qmail/ucspi-tcp-0.88/
patch < /downloads/qmailrocks/patches/ucspi-tcp-0.88.errno.patch
make && make setup check
# Daemon tools
cd /package/admin/daemontools-0.76/src
patch < /downloads/qmailrocks/patches/daemontools-0.76.errno.patch
cd /package/admin/daemontools-0.76
package/install
# EZmlm
cd /downloads/qmailrocks/
tar zxvf ezmlm-0.53-idx-0.41.tar.gz
cd ezmlm-0.53-idx-0.41
make && make setup
# Autoresponder
cd /downloads/qmailrocks
tar zxvf autorespond-2.0.5.tar.gz
cd autorespond-2.0.5
make && make install
# VPOPMail
cd /downloads/qmailrocks
tar zxvf vpopmail-5.4.13.tar.gz
cd vpopmail-5.4.13
./configure --enable-logging=p
make && make install-strip
# Vqadmin
cd /downloads/qmailrocks
tar zxvf vqadmin-2.3.6.tar.gz
cd vqadmin-2.3.6
./configure --enable-cgibindir=$CGI_BIN_PATH --enable-htmldir=$HTDOC_PATH