Qmail rocks
From Noah.org
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.vinylinteractive.com Your fully qualified host name is mail.vinylinteractive.com. Putting mail.vinylinteractive.com into control/me... Putting vinylinteractive.com into control/defaultdomain... Putting vinylinteractive.com into control/plusdomain... Putting mail.vinylinteractive.com into control/locals... Putting mail.vinylinteractive.com into control/rcpthosts... Now qmail will refuse to accept SMTP messages except to mail.vinylinteractive.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.