Article Title: postfix + dovecot + mysql + postfixadmin. Linux is a technology channel of the IT lab in China. Some basic categories, such as desktop applications, Linux system management, kernel research, embedded systems, and open-source systems, have been tested for postfix recently. It is found that postfix + dovecot is easy to configure, and dovecot is a rising star, next, let's take a look at how I set it up. Mai server System: ubuntu server 9.04 testing Domain Name: ludy. comIP address: 192.168.6.121 Testing Machine System: XP # Add MX ing on your DNS server: in mx 10 mail.ludy.com. the steps for installing mail in a 192.168.6.121 are as follows. You can omit the bind9 part because I am an internal test, so install the internal DNS. I. install the DNS server, bind9.shell I installed $> apt-get install bind9 ##### modify the domain name resolution main file ####### shell $> vim/etc/bind/named. conf. localzone "ludy.com "{
Type master;
File "/etc/bind/ludy.com ";
};####### Create a domain name resolution file ###### shell $> vim/etc/bind/ludy.com $ TTL 86400
$ ORIGIN ludy.com.
@ In soa ludy.com. root.ludy.com .(
2009072901;
68400;
86400;
3600000 ;;
36000 );
In ns ns.ludy.com.
In mx 10 mail.ludy.com.
Www in a 192.168.6.121
Mail in a 192.168.6.121
Ns in a 192.168.6.121 #### restart the DNS server for the configuration to take effect ####
Shell $>/etc/init. d/bind9 restart 2. install and configure apache + php + mysql #### I will save time using apt-get for installation. If you are a master, can compile custom installation ### shell $> apt-get install apache2 php5 php5-mysql php5-imap php5-mcrypt php5-cli mysql-server libmysqlclient15-dev ##### when installing mysql-server will prompt you to configure remember the mysql root Password ########### Add a postfix database #### shell $> mysql-u root-p ### enter the password ### enter password:
Welcome to the MySQL monitor. Commands end with; or \ g.
Your MySQL connection id is 58
Server version: 5.0.67-0ubuntu6 (Ubuntu) Type 'help; 'or' \ H' for help. type '\ C' to clear the buffer. ### Add a postfix database #### mysql> create database postfix;
Query OK, 1 row affected (0.00 sec)
Mysql> quitBye 3. install and configure postfixadmin1. download postfixadmin shell $> wget-c 'HTTP: // downloads.sourceforge.net/project/postfixadmin/postfixadmin/postfixadmin-2.2.1.1/postfixadmin-2.2.1.1.tar.gz? Use_mirror = jaist '2. install and configure postfixadminshell $> tar zxvf postfixadmin-2.2.1.1.tar.gzshell $> mv postfixadmin-2.2.1.1/var/www/postfixadminshell $> cd/var/www/postfixadminshell $> vim config. inc. php #### find $ CONF ['configured'] = false; ### change to $ CONF ['configured'] = true; ### search for $ CONF ['default _ language '] = 'en'; ## change to: $ CONF ['default _ language'] = 'cn '; #### find $ CONF ['database _ type'] = 'mysql ';
$ CONF ['database _ host'] = 'localhost ';
$ CONF ['database _ user'] = 'postfix ';
$ CONF ['database _ password'] = 'postfixadmin ';
$ CONF ['database _ name'] = 'postfix ';
$ CONF ['database _ prefix'] = ''; changed to: $ CONF ['database _ type'] = 'mysql ';
$ CONF ['database _ host'] = 'localhost ';
$ CONF ['database _ user'] = 'root ';
$ CONF ['database _ password'] = 'yourpassword ';
$ CONF ['database _ name'] = 'postfix ';
$ CONF ['database _ prefix'] = ''; 3. Install the postfixadmin data table.
##### I skipped this step by modifying the DNS of the test machine to 192.168.6.121. #### Open a browser and enter
Http://www.ludy.com/postfixadmin/setup
[1] [2] [3] Next page