当前位置:首页 > 服务器类 > Mail服务器 > > 在Fedora上建立自己的邮件服务器(1)

在Fedora上建立自己的邮件服务器(1)

点击次数:41 次 发布日期:2008-11-22 09:30:58 作者:源代码网
源代码网推荐

源代码网整理以下一、软件的准备

源代码网整理以下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是取验证码用的。

源代码网整理以下二、mysql数据库和表的建立

源代码网整理以下

以下为引用的内容:

源代码网整理以下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 (
 domain varchar(255) NOT NULL default"",
 description varchar(255) NOT NULL default"",
 PRIMARY KEY (domain)
) TYPE=MyISAM;

源代码网整理以下CREATE TABLE mailbox (
  userid char(20) binary NOT NULL default"",
  username varchar(255) NOT NULL default"",
  password varchar(255) NOT NULL default"",
  home varchar(255) NOT NULL default"",
  maildir varchar(255) NOT NULL default"",
  name varchar(255) NOT NULL default"",
  uid smallint(5) unsigned NOT NULL default"12345",
  gid smallint(5) unsigned NOT NULL default"12345",
  quota varchar(255) NOT NULL default"",
  domain varchar(255) NOT NULL default"",
  create_date date NOT NULL default"0000-00-00",
  create_time time NOT NULL default"00:00:00",
  change_date date NOT NULL default"0000-00-00",
  change_time time NOT NULL default"00:00:00",
  last_access int(10) unsigned NOT NULL default"0",
  passwd_lastchanged int(10) unsigned NOT NULL default"0",
  status tinyint(4) NOT NULL default"1",
  PRIMARY KEY (username),
  KEY status (status)
) TYPE=MyISAM;
#####################end########################

源代码网整理以下[root@localhost root]# mysql postfix < /work/postfix.sql
 
 


源代码网供稿.
网友评论 (0)
会员中心
服务器类
本站推荐
服务器类之精华