CentOS5 Mail Toaster Configuration Howto

A CentOS 5 Virtual Mail Server using Postfix, Dovecot, and MySQL

Get Started

Enable the centosplus repository
# vi /etc/yum.repos.d/CentOS-Base.repo
Under the [centosplus] section, change enabled=0 to enabled=1

Remove Sendmail
# yum erase sendmail
Make sure that apache and MySQL are installed and running
# yum install dovecot httpd postfix mysql-server php php-mysql php-mbstring
I like to edit /etc/my.cnf first, and make mysql listen just on localhost by adding this to the top [mysqld] section:
bind=127.0.0.1
Then start up apache and mysql
# /etc/init.d/httpd on
# /etc/init.d/mysqld on
# chkconfig httpd on
# chkconfig mysqld on
If you don't have a root password for mysql, you should do that now:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h <YOUR_IP_ADDRESS> password 'new-password'
Next - Configure postfixadmin