无法连接到SMTP服务器

我无法从我的电脑连接到SMTP服务器。 我使用Debian sid。

telnet mail.example.com 25 Trying 12.23.34.45... telnet: Unable to connect to remote host: Connection timed out 

而从我的networking之外的另一台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 

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

为了一个健全的检查,我会跑几个快速端口检查服务,如:

一旦你确信只有你的Debian电脑有问题,试着连接到其他一些众所周知的邮件提供商(如Gmail,雅虎等)。 这将有助于缩小问题的范围。 如果你不能连接到它们中的任何一个,但仍然具有端到端的连接性,那么混合中可能存在阻塞的端口/服务。

如果你可以连接到它们中的一些,那么我会考虑收集一个数据包捕获(从双方),以确认某些数据包不是完整的。

我认为你有一个networking掩码不匹配。 检查您的计算机,路由器和邮件服务器的路由表。