9.配置postfix空客户端

Posted 秋阳Linux笔记

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了9.配置postfix空客户端相关的知识,希望对你有一定的参考价值。

将本地邮件服务器配置充当为控客户端,已将所有邮件都转发到中央服务器以进行发送

1.postconf -e "relayhost=[mail.example.com]" 邮件被路由到的服务器。
2.postconf -e "inet_interfaces=loopback-omly" 邮件服务器只侦听回环街口上的邮件
3.postconf -e "mynetworks=127.0.0.0/8 [::1]/128"空客户端将来自于mynetworks=127.0.0.0/8和 [::1]/128的邮件发送到中继主机
4.postconf -e "myorigin=example.com" 地址重写
5.postconf -e "mydestination=" 不发送到本地,而空客户端将所有邮件发送到中继器
6.postconf -e "local_transport=error: local delivery disabled" 空客户端拒绝接收任何邮件

7.systemctl enable postfix && systemctl restart postfix
8.mail -s "test" [email protected]
test ok!
.

EOT

以上是关于9.配置postfix空客户端的主要内容,如果未能解决你的问题,请参考以下文章

Postfix邮件

RHCE 系列:如何使用无客户端配置 Postfix

Linux中Postfix邮件认证配置

Postfix,dovecot邮件系统

postfix-企业邮件服务器搭建完整版

Postfix邮件服务系统