位置:海鸟网 > IT > linux/Unix >

搭建Linux邮件网关与邮件系统

环境:vmware下RedHatEL3x3

ServerAip:192.168.0.231邮件网关serverDNSserver

ServerBip:192.168.0.232邮件系统server

ServerCip:192.168.0.233邮件系统server

实验域:

ServerB:wllhc.orgServerC:thiz.net

实验目的:

ServerB和ServerC下的邮件用户用自己的邮件服务器互相收发邮件并通过网关发送,通过ServerA解析对方IP

一、在ServerA上安装邮件网关,配置邮件服务器的DNS

1.安装网关

#wget

#tar-zxvfgw_3.6_050430.tar.gz

#cdgw_3.6

#./install.sh

搭建邮件网关与邮件系统

环境:vmware下RedHatEL3x3

ServerAip:192.168.0.231邮件网关serverDNSserver

ServerBip:192.168.0.232邮件系统server

ServerCip:192.168.0.233邮件系统server

实验域:

ServerB:wllhc.orgServerC:thiz.net

实验目的:

ServerB和ServerC下的邮件用户用自己的邮件服务器互相收发邮件并通过网关发送,通过ServerA解析对方IP

1.安装网关

#wget

#tar-zxvfgw_3.6_050430.tar.gz

#cdgw_3.6

#./install.sh

2.配置DNS

#vi/etc/named.conf

options{

directory"/var/named";

};

zone"."IN{

typehint;

file"named.root";

};

zone"localhost"IN{

typemaster;

file"localhost.zone";

allow-update{none;};

};

zone"0.0.127.in-addr.arpa"IN{

typemaster;

file"named.local";

allow-update{none;};

};

zone"wllhc.org"IN{

typemaster;

file"wllhc.zone";

allow-update{none;};

};

zone"0.168.192.in-addr.arpa"IN{

typemaster;

file"0.168.192";

allow-update{none;};

};

zone"thiz.net"IN{

typemaster;

file"thiz.zone";

allow-update{none;};

};

controls{

inet127.0.0.1port953

allow{127.0.0.1;}keys{"rndc-key";};

};

3,#vi/var/named/wllhc.zone

$TTL86400

@INSOAwllhc.org.root.wllhc.org.(

42;serial(d.adams)

3H;refresh

15M;retry

1W;expiry

1D);minimum

INNSwllhc.org.

INMX1mail.wllhc.org.

wwwINA192.168.0.232

mailINA192.168.0.232

@INA192.168.0.232

4,#vi/var/named/thiz.zone

$TTL86400

@INSOAthiz.net.root.thiz.net.(

42;serial(d.adams)

3H;refresh

15M;retry

1W;expiry

1D);minimum

INNSthiz.net.

INMX1mail.thiz.net.

wwwINA192.168.0.233

mailINA192.168.0.233

@INA192.168.0.233
二、在ServerB,ServerC上安装邮件系统并填加相应的域

1.首先要指定ServerB,ServerC的gw和dns为ServerA

ServerB#vi/etc/resolv.conf

nameserver192.168.0.231

ServerB#vi/etc/sysconfig

NETWORKING=yes

HOSTNAME=localhost.localdomain

GATEWAY=192.168.0.231

ServerC#vi/etc/resolv.conf

nameserver192.168.0.231

ServerC#vi/etc/sysconfig

NETWORKING=yes

HOSTNAME=localhost.localdomain

GATEWAY=192.168.0.231

2.安装邮件系统

ServerB#wget

ServerB#tar-zxvf/opt/linux_binary_installer-4.1.0.tar.gz

ServerB#cd/opt/linux_binary

ServerB#./install.sh

StartInstalling……

:InstallingBASEPKG……

:InstallingHTDOCS……

:InstallingBINPKG……

:UPDATELIBCONFIG……

:InitialtheWEBMAIL……

:InitialMySQL……

:InstalledConfigfile……

:ConfigEyouSMTPD……

NowSettingEyouMailSystem,PleaseInputtheRIGHTValue

:me:wllhc.org#我们提供邮件服务的默认域

:hostname:localhost.localdomain#主机名

:usernums:200#最大用户数

:time:2005/06/14#此系统创建时间

:module:calendar_bookmark_voice_storage#此系统的功能模块

:ip:127.0.0.1#此邮件系统的ip地址

:license:NULL#邮件系统序列号

:o_value:localhost.localdomain#

:StartEyouMailSystem……

:InitialLDAP……

:InitialMYSQL……

InstallFinished

ServerB#mozillamail.wllhc.org/admin/ #用管理员身份在此邮件系统中添加wllhc.org这个域

ServerC#wget

ServerC#tar-zxvf/opt/linux_binary_installer-4.1.0.tar.gz

ServerC#cd/opt/linux_binary

ServerC#./install.sh

:InstallingBASEPKG……

:InstallingHTDOCS……

:InstallingBINPKG……

:UPDATELIBCONFIG……

:InitialtheWEBMAIL……

:InitialMySQL……

:InstalledConfigfile……

:ConfigEyouSMTPD……