【问题标题】:How to configure Postfix to accept connections from several hosts outside LAN? [closed]如何配置 Postfix 以接受来自局域网外多个主机的连接? [关闭]
【发布时间】:2011-08-16 12:44:08
【问题描述】:

我在 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 手册并尝试设置许可模式,但没有更接近解决方案。 请帮忙。

【问题讨论】:

标签: postfix-mta ssl sasl


【解决方案1】:

我的问题在于 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

【讨论】:

  • 这也为我解决了:)
【解决方案2】:
  1. 使用“后缀检查”
  2. 使用“tailf /var/log/mail.warn”,或将“tailf”替换为“tail -n 100”,以查看日志的最后 100 行。

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

【讨论】:

  • 哦,谢谢!因为我发现了问题,所以我忘记了我的帖子。我的 Postfix 被配置为仅在 localhost 上侦听。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2011-02-14
  • 1970-01-01
  • 1970-01-01
  • 2016-06-20
  • 2022-01-21
  • 1970-01-01
  • 2012-05-30
相关资源
最近更新 更多