Article Title: Build a Linux Mail Gateway and mail system. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Environment: vmware RedHat EL3 x 3
ServerA ip: 192.168.0.231 Mail Gateway server DNS server
ServerB ip: 192.168.0.20.email system server
ServerC ip: 192.168.0.233 email system server
Lab domain:
ServerB: wllhc.org ServerC: thiz.net
Purpose:
The email users in ServerB and ServerC send and receive emails from each other using their own email servers and send them through the gateway, and use ServerA to resolve the recipient's IP address
1. Install the Mail Gateway on ServerA and configure the DNS of the Mail Server
1. Install the Gateway
# Wget http: // 192.168.0.11/pkg/mail_gw/1026/gw_3.6_0502.16.tar.gz/opt
# Tar-zxvf gw_3.6_0502.16.tar.gz
# Cd gw_3.6
#./Install. sh
Build a Mail Gateway and a Mail System
Environment: vmware RedHat EL3 x 3
ServerA ip: 192.168.0.231 Mail Gateway server DNS server
ServerB ip: 192.168.0.20.email system server
ServerC ip: 192.168.0.233 email system server
Lab domain:
ServerB: wllhc.org ServerC: thiz.net
Purpose:
The email users in ServerB and ServerC send and receive emails from each other using their own email servers and send them through the gateway, and use ServerA to resolve the recipient's IP address
1. Install the Gateway
# Wget http: // 192.168.0.11/pkg/mail_gw/1026/gw_3.6_0502.16.tar.gz/opt
# Tar-zxvf gw_3.6_0502.16.tar.gz
# Cd gw_3.6
#./Install. sh
2. Configure 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-update {none ;};
};
Zone "0.0.127.in-addr. arpa" IN {
Type master;
File "named. local ";
Allow-update {none ;};
};
Zone "wllhc.org" IN {
Type master;
File "wllhc. zone ";
Allow-update {none ;};
};
Zone "0.168.192.in-addr. arpa" IN {
Type master;
File "0.168.192 ";
Allow-update {none ;};
};
Zone "thiz.net" IN {
Type master;
File "thiz. zone ";
Allow-update {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)
3 H; refresh
15 M; retry
1 W; expiry
1D); minimum
In ns wllhc.org.
In mx 1 mail.wllhc.org.
Www in a 192.168.0.20.
Mail in a 192.168.0.20.
@ In a 192.168.0.20.
4, # vi/var/named/thiz. zone
$ TTL 86400
@ In soa thiz.net. root.thiz.net .(
42; serial (d. adams)
3 H; refresh
15 M; retry
1 W; 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
[1] [2] Next page