加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux – 无法连接到SMTP服务器

发布时间:2020-12-13 17:06:14 所属栏目:Linux 来源:网络整理
导读:我无法从PC连接到SMTP服务器. 我使用Debian sid. telnet mail.example.com 25Trying 12.23.34.45...telnet: Unable to connect to remote host: Connection timed out 来自我网络外部的另一台Debian PC: telnet mail.example.com 25Trying 12.23.34.45...Co
我无法从PC连接到SMTP服务器.
我使用Debian sid.
telnet mail.example.com 25
Trying 12.23.34.45...
telnet: Unable to connect to remote host: Connection timed out

来自我网络外部的另一台Debian PC:

telnet mail.example.com 25
Trying 12.23.34.45...
Connected to mail.example.com.
Escape character is '^]'.
220 mail.example.com ESMTP Exim 4.63 Mon,02 Apr 2012 22:14:09 +0200

ping也永远挂起,当我按下Ctrl C时它会说“100%丢包”.
最后,traceroute充满了星号:

traceroute mail.example.com
traceroute to mail.example.com (12.23.34.45),30 hops max,60 byte packets
1  * * *
2  * * *
3  * * *
...
27  * * *
28  * * *
29  * * *
30  * * *

当我对服务器端口25运行nmap时:

nmap mail.example.com -p25

Starting Nmap 5.21 ( http://nmap.org ) at 2012-04-02 23:08 EEST
Nmap scan report for mail.example.com (12.23.34.45)
Host is up (0.090s latency).
PORT   STATE    SERVICE
25/tcp filtered smtp

Nmap done: 1 IP address (1 host up) scanned in 0.88 seconds

最后我的iptables:

iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

有任何想法吗?
非常感谢您的帮助.

解决方法

为了进行健全性检查,我会运行一些快速端口检查服务,例如:

> http://www.mxtoolbox.com/diagnostic.aspx
> http://www.yougetsignal.com/tools/open-ports/

一旦你确信只有你的Debian PC出现问题,请尝试连接其他一些知名的邮件提供商(如gmail,yahoo等).这将有助于缩小问题的范围.如果您无法连接到其中任何一个但仍具有端到端连接,那么混合中似乎可能存在阻塞的端口/服务.

如果你可以连接其中的一些,那么我会考虑收集一个数据包捕获(从两侧),以确认某些数据包没有完全一直.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读