Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Set up postfix for mail server

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Mail experiment

Three virtual machines (preferably basic service installation, to avoid errors due to too few rpm packages)

192.168.115.199-DNS

192.168.115.198-163.com

192.168.115.196-sina.com

1. Configure DNS

1.1.Configuring local yum source and installing domain name software bind

Yum-y install bind

1.2.Modification of domain name configuration file vi / etc/named.conf

Copy cp-a named.localhost 163.file

Forward parsing file of Mail.163.com

Cp-a 163.file sina.file

Forward parsing file of Mail.sina.com

Configure the network card and modify the domain name resolution file / etc/resolv.conf

Restart the domain name service service named restart

Restart the network card service service network restart

2. Configure the post office MTA of mail.163.com, on the 198client

Because postfix is installed by default, it can be configured directly

2.1.Configuring the network card and adding the IP of DNS

Restart the network service to see if it can be parsed properly

2.2. Modify the mail transfer profile

/ etc/postfix/main.cf

Configuration completed, service restart service postfix restart

The configuration of mail.sina.com client 196 is the same as that of mail.163.com for 198 client.

3. Send email test

Mail.sina.com client local yum source installation yum-y install telnet

Mail.163.com client local yum source installation yum-y install telnet

Send an email

Mail.sina.com client sends messages

Mail.163.com client receives mail

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report