欢迎来到之路教程(on itroad-com)
在 RHEL 7 上安装 Postfix
使用 ssh 连接到 server1.onitroad.com,并使用 yum 命令安装 postfix。
[root@server1 ~]# yum install -y postfix
使用 postconf 命令配置后缀。
[root@server1 ~]# postconf -e 'relayhost=[192.168.1.5]' [root@server1 ~]# postconf -e 'inet_interfaces=loopback-only' [root@server1 ~]# postconf -e 'myoroirn=server1.onitroad.com' [root@server1 ~]# postconf -e 'mydestination=' [root@server1 ~]# postconf -e 'local_transport=error: local delivery disabled' [root@server1 ~]# postconf -e 'mynetworks=127.0.0.0/8,[::1]/128' [root@server1 ~]# systemctl start postfix.service ; systemctl enable postfix.service
我们在 RHEL 7 上的空客户端邮件服务器已成功配置。
空客户端是运行本地邮件服务器的客户端机器,该服务器将所有电子邮件转发到出站邮件中继服务器以进行传送。
空客户端不接受任何邮件的本地传递,它只能将它们发送到出站邮件中继服务器。
用户可以在空客户端上运行邮件客户端来阅读和发送邮件。
在 Red Hat Enterprise Linux (RHEL) 7 中,默认邮件服务器是 postfix(功能强大但易于配置的邮件服务器)。
在本文中,我们将使用 postfix 邮件服务器配置一个空客户端。
日期:2020-09-17 00:12:23 来源:oir作者:oir