在Fedora上建立自己的郵件服務器(1)_Mail服務器教程
A.檢查你的系統(tǒng)是否已安裝了以下軟件
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是取驗證碼用的。
二、mysql數(shù)據(jù)庫和表的建立
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 |
- 相關鏈接:
- 教程說明:
Mail服務器教程-在Fedora上建立自己的郵件服務器(1)
。