一、软件的准备
a.检查你的系统是否已安装了以下软件
1.pam
2.pam-devel
3.mysql
4.mysql-servel
5.mysql-devel
6.imap-devel
7.sharutils
b.下载以下软件
1.metamail*.i386.rpm
2.pam-mysql
3.cyrus-sasl-2.1.15
4.postfix-2.0.16
5.courier-imap
c.说明
mysql-devel在第3个盘。我忘了装,结果pam-mysql和postfix的编译过不了。metamail和sharutils是取验证码用的。
a.[root@localhost root]# mysql
| welcome to the mysql monitor. commands end with ; or \g. your mysql connection id is 3 to server version: 3.23.58 type 'help;' or '\h' for help. type '\c' to clear the buffer. mysql> use mysql reading table information for completion of table and column names you can turn off this feature to get a quicker startup with -a database changed mysql> insert into db (host,db,user,select_priv)values('localhost','postfix','postfix','y'); query ok, 1 row affected (0.00 sec) mysql> create database postfix; query ok, 1 row affected (0.00 sec) mysql> grant all on postfix.* to postfix@localhost -> identified by "postfix"; query ok, 0 rows affected (0.00 sec) mysql> flush privileges; query ok, 0 rows affected (0.00 sec) mysql> quit bye |
b.把下列文字复制存为postfix.sql
| ########potfix_sql########bigin################## create table alias ( username varchar(255) not null default'', goto text not null, domain varchar(255) not null default'', primary key (username) ) type=myisam; create table domain ( create table mailbox ( [root@localhost root]# mysql postfix < /work/postfix.sql |
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器