Difference between revisions of "Qmail rocks"

From Noah.org
Jump to navigationJump to search
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
[[Category:Engineering]]
 +
[[Category:mail]]
 
== Qmail Rocks on Ubuntu ==
 
== Qmail Rocks on Ubuntu ==
  
Line 4: Line 6:
 
to support Qmail Rocks.
 
to support Qmail Rocks.
 
<pre>
 
<pre>
apt-get install openssh-server
+
apt-get -q -y install build-essential sed flex bison autoconf
apt-get install build-essential
+
apt-get -q -y install libssl-dev
apt-get install libssl-dev
+
apt-get -q -y install openssl
apt-get install openssl
+
apt-get -q -y install openssh-server
apt-get install mysql-server # For Vpopmail MYSQL support
+
apt-get -q -y install csh
 +
apt-get -q -y install expect
 +
apt-get -q -y install libgdbm-dev
 +
apt-get -q -y install libltdl3 libltdl3-dev
 +
apt-get -q -y install mysql-server libmysqlclient15-dev # For Vpopmail MYSQL support
 
</pre>
 
</pre>
  
 
=== Virtual Hosts ===
 
=== Virtual Hosts ===
 +
 
When you run config-fast you set your main STMP host.
 
When you run config-fast you set your main STMP host.
 
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>
  
=== Install all script ===
+
=== Install qmail rocks 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.
 
<pre>
 
#!/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
+
Be sure to edit the few shell script variables at the top of this script. This assumes that you have Apache installed under /var/www/usr/local/apache2. If Apache is somewhere else then you will need to modify the CONFIGURATION OPTIONS section of the script.
apt-get install build-essential
 
apt-get install libssl-dev
 
apt-get install openssl
 
  
mkdir /downloads
+
<include svncat src="file:///home/svn/src/shell/qmail_rocks_install/qmail_rocks_install.sh" />
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
 
</pre>
 

Latest revision as of 12:05, 16 August 2008

Qmail Rocks on Ubuntu

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

apt-get -q -y install build-essential sed flex bison autoconf
apt-get -q -y install libssl-dev
apt-get -q -y install openssl
apt-get -q -y install openssh-server
apt-get -q -y install csh
apt-get -q -y install expect
apt-get -q -y install libgdbm-dev
apt-get -q -y install libltdl3 libltdl3-dev
apt-get -q -y install mysql-server libmysqlclient15-dev # 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 qmail rocks script

Be sure to edit the few shell script variables at the top of this script. This assumes that you have Apache installed under /var/www/usr/local/apache2. If Apache is somewhere else then you will need to modify the CONFIGURATION OPTIONS section of the script.

<include svncat src="file:///home/svn/src/shell/qmail_rocks_install/qmail_rocks_install.sh" />