如何配置Postfix以接受来自局域网外多个主机的连接



我在Centos 5.5服务器上有Postfix 2.3。我按照http://wiki.centos.org/HowTos/postfix_sasl的方法配置Postfix,使其只接受TLS连接,拒绝普通身份验证。似乎它的工作,但只能从本地机器(后缀服务器本身),如果我试图"telnet"邮件服务器从外部的局域网连接立即关闭后,它建立。

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.

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

我的问题是在inet_interfaces的Postfix配置中限制了Postfix仅侦听localhost

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

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

重载后缀配置:

postfix reload
  1. 使用'后缀检查'
  2. 使用'tail/var/log/mail。警告',或者将'tail '替换为'tail -n 100',以查看日志的最后100行。

关键是,设置中的某些东西是错误的,因此服务器不能正确处理请求。请记住重新加载后缀

最新更新