来自 127.0.0.1 的 fsockopen() 不起作用
我正在尝试从本地计算机 (127.0.0.1) 连接到 SMTP 服务器。我能够连接到其他 SMTP 服务器,但这个服务器无法从我的本地计算机进行连接,但它可以从我测试过的 4 个其他远程服务器进行连接。
我尝试从本地计算机连接时收到以下错误:
消息:fsockopen()[function.fsockopen]:无法连接到mail.domain.com:25(连接尝试失败,因为连接方在一段时间后没有正确响应,或者由于连接而建立的连接失败主机未能响应。
有人知道什么可能导致服务器不允许来自 127.0.0.1 的连接,它不在防火墙后面,并且 postfix 接受所有网络。
谢谢你!
I'm trying to connect to an SMTP server from my local machine (127.0.0.1). I'm able to connect to other SMTP servers, but this one in particular will not connect from my local machine, it will connect however from 4 other remote servers I have tested on.
I receive the following error trying to connect from my local machine:
Message: fsockopen() [function.fsockopen]: unable to connect to mail.domain.com:25 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. )
Would anyone know what may cause the server to not allow connections from 127.0.0.1, It's not behind a firewall and postfix is accepting all networks.
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我猜测 SMTP 服务器未绑定到环回设备。检查其配置。您通常通过指定地址
0.0.0.0
(对于 IPv6 可能有所不同)来表示您希望它侦听所有接口。I'd guess the SMTP server is not bound to the loop-back device. Check its configuration. You usually signal you want it to listen to all interfaces by specifying the address
0.0.0.0
(may be different for IPv6).这是 ISP 问题,阻塞了端口 25。
This was an ISP issue, which blocked port 25.