1

我在 Centos 5.5 服务器上有 Postfix 2.3。我按照这个如何http://wiki.centos.org/HowTos/postfix_sasl将 Postfix 配置为仅接受 TLS 连接并拒绝普通身份验证。似乎它可以工作,但只能从本地计算机(Postfix 服务器本身)如果我尝试从 LAN 外部“远程登录”邮件服务器,它会在建立后立即关闭。

telnet mail.some-server.com 25
Trying aaa.bbb.ccc.ddd...
Connected to mail.some-server.com (aaa.bbb.ccc.ddd).
Escape character is '^]'.
Connection closed by foreign host.

我花了一整天的时间阅读 Postfix 手册并尝试设置许可模式,但没有更接近解决方案。请帮忙。

4

2 回答 2

4

我的问题出在inet_interfaces的 Postfix 配置中,该配置限制 Postfix 仅在localhost上侦听。

解决方法:编辑文件/etc/postfix/main.cf中的inet_interfaces

# Listen to all interfaces rather than strict to localhost
inet_interfaces = all

重新加载 Postfix 配置:

postfix reload
于 2011-08-31T12:19:31.907 回答
0
  1. 使用“后缀检查”
  2. 使用 'tailf /var/log/mail.warn',或将 'tailf' 替换为 'tail -n 100' 以查看日志的最后 100 行。

关键是,设置中有问题,因此服务器无法正确处理请求。记得重新加载后缀。

于 2011-05-29T23:49:50.843 回答