1.安装网关 #wget http://192.168.0.11/pkg/mail_gw/1026/gw_3.6_050430.tar.gz /opt #tar -zxvf gw_3.6_050430.tar.gz #cd gw_3.6 #./install.sh 2.配置DNS #vi /etc/named.conf options { directory "/var/named". }. zone "." IN { type hint. file "named.root". }. zone "localhost" IN { type master. file "localhost.zone". allow-0update { none. }. }. zone "0.0.127.in-addr.arpa" IN { type master. file "named.local". allow-0update { none. }. }. zone "wllhc.org" IN { type master. file "wllhc.zone". allow-0update { none. }. }. zone "0.168.192.in-addr.arpa" IN { type master. file "0.168.192". allow-0update { none. }. }. zone "thiz.net" IN { type master. file "thiz.zone". allow-0update { none. }. }. controls { inet 127.0.0.1 port 953 allow { 127.0.0.1. } keys { "rndc-key". }. }. 3,#vi /var/named/wllhc.zone $TTL 86400 @ IN SOA wllhc.org. root.wllhc.org.( 42 .serial(d. adams) 3H .refresh 15M .retry 1W .expiry 1D) .minimum IN NS wllhc.org. IN MX 1 mail.wllhc.org. www IN A 192.168.0.232 mail IN A 192.168.0.232 @ IN A 192.168.0.232 4,#vi /var/named/thiz.zone $TTL 86400 @ IN SOA thiz.net. root.thiz.net.( 42 .serial(d. adams) 3H .refresh 15M .retry 1W .expiry 1D) .minimum IN NS thiz.net. IN MX 1 mail.thiz.net. www IN A 192.168.0.233 mail IN A 192.168.0.233 @ IN A 192.168.0.233 src="/linux/js/wxgg_linux.js">