Postfix is our favorite mail server. We find it's easy to configure and performs really well. When asked at a recent conference talk, Eric Allman the creator of Sendmail, said he would use Postfix if starting today.
Many people ask us if there is an easier way to setup and manage email address and aliases, especially when managing several domains. We have found PostfixAdmin does the job nicely. It's a bit of work to setup the database and integrate it in with all the other mail related programs. Here at Rimuhosting, we have spent some time recently to create a script to install and integrate these applications:
This script was engineered to start with a fresh Debian Squeeze VPS, and set it up with a complete mail hosting solution which Includes Postfix, Dovecot, SpamAssassin, and Roundcube.
The script has some options, so if you don't want to install everything you don't have to. Check the "-help" option for more info:
bash installpfa-squeeze.sh -help Usage: installpfa-squeeze.sh [OPTION...] installpfa-squeeze.sh will attempt to install all configurations for postfixadmin by default, assumes that the current postfix and dovecot configurations are the base ones in Debian Squeeze. It will use default settings for usernames and database names. It will generate random passwords and the relevant ones will be informed. Options: -a <email> email address to used as admin user in postfixadmin. DEFAULT: email@example.com -p <password> password to be setup for the admin user in postixadmin. DEFAULT: RANDOM -j <dbuser> postfixadmin mysql database username to be setup. DEFAULT: postfixadmin -k <dbpass> postfixadmin mysql password to be assigned to the mysql database user. DEFAULT: RANDOM -d <dbname> postfixadmin mysql database name. DEFAULT: postfixadmin -q <dbuser> roundcube mysql database username to be setup. DEFAULT: roundcube -w <dbpass> roundcube mysql password to be assigned to the mysql database user. DEFAULT: RANDOM -e <dbname> roundcube mysql database name. DEFAULT: roundcube -v <user> name of the unix user that will hold the mailboxes. DEFAULT: vmail -f force the install, prompts in error/warnings are disabled. export MYSQL_ROOT_PASS=password can be used with this setting for unattended installs. -h this Help Advanced Options: -t <task1,task2> Comma separated of tasks to execute manually, may depend on the above options. DEFAULT: all Possible Tasks: install_deps installs postfixadmin dependencies install_pfadmin downloads and installs postfixadmin package configure_pfa_database configures postfixadmin database configure_pfadmin configures postfixadmin add_pfa_admin_user adds admin user to postfixadmin configure_dovecot configures dovecot configure_spamassassin configures spamassassin configure_postfix configures postfix install_roundcube installs roundcube configure_roundcube configures roundcube </task1,task2></user></dbname></dbpass></dbuser></dbname></dbpass></dbuser></password></email>
There is also an script that is designed to be non-distribution specific, but due the nature and complexity of the current script it will likely be unmaintained, and also lacks some features. For those interested it is located at:
If your looking to setup some mail hosting, especially if your managing multiple domains, order a new Squeeze VPS, and just let us know you would like PostfixAdmin setup, and we will go do that for you.