Difference between revisions of "Qmail rocks"

From Noah.org
Jump to navigationJump to search
 
(17 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 -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
 
</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 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" />

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" />