大雀软件园

首页 软件下载 安卓市场 苹果市场 电脑游戏 安卓游戏 文章资讯 驱动下载
技术开发 网页设计 图形图象 数据库 网络媒体 网络安全 站长CLUB 操作系统 媒体动画 安卓相关
当前位置: 首页 -> 网络安全 -> 服务器 -> 在Fedora上建立自己的邮件服务器(1)

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

时间: 2021-07-31 作者:daque

一、软硬件的筹备   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

  

热门阅览

最新排行

Copyright © 2019-2021 大雀软件园(www.daque.cn) All Rights Reserved.