Build a Linux Mail Gateway and a Mail System

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.