德阳企业网站建设公司-在Fedora上建立自己的邮件

2021-04-14 01:40 admin
--------

德阳企业网站建设公司

------- 一、手机软件的提前准备

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.[]# 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 pletion 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
- 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'',
create_time time NOT NULL default'',
change_date date NOT NULL default'',
change_time time NOT NULL default'',
ess 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########################

[]# mysql postfix /work/postfix.sql

---------

德阳企业网站建设公司

------------