除“curl”外,所有客户端的连接均被拒绝

除“curl”外,所有客户端的连接均被拒绝

我一直在尝试将客户端设置为 imap 服务器。我使用了本机 Java 客户端和 imap 的 Apache Camel 组件。总是连接被拒绝。
当我尝试使用“curl”连接到完全相同的 IP 时,我得到了预期的文本横幅,证明服务器可用,并在 143 上监听。尝试使用“openssl”连接总是失败,但在其他网段中,我看到其他人成功了。
我尝试了一些“tcpdump”监控,结果如下。
运行 openssl 时,捕获了以下内容

[root@CMMDEVINTHUB02 cpetty]# tcpdump -n -vvv host 10.237.103.30 and port 143
tcpdump: listening on eth3, link-type EN10MB (Ethernet), capture size 65535 bytes
12:26:49.884552 IP (tos 0x0, ttl 64, id 8763, offset 0, flags [DF], proto TCP (6), length 60)
    172.17.81.0.60869 > 10.237.103.30.imap: Flags [S], cksum 0x7a47 (correct), seq 3319911815, win 14600, options [mss 1460,sackOK,TS val 2753099708 ecr 0,nop,wscale 7], length 0

12:26:49.884692 IP (tos 0x0, ttl 254, id 55004, offset 0, flags [none], proto TCP (6), length 40) 10.237.103.30.imap > 172.17.81.0.60869: Flags [R.], cksum 0x7dec (correct), seq 0, ack 3319911816, win 14600, length 0
:

这似乎显示了一个普通的“连接被拒绝”,好像没有监听器。(这是一致的,所以我确定与套接字池无关)

但是,当运行“curl”时,我从 imap 收到以下提示:

[root@CMMDEVINTHUB02 prime]# curl 10.237.103.30:143
* OK The Microsoft Exchange IMAP4 service is ready.
GET BAD Command Error. 12
Via: BAD Command Error. 12
User-Agent: BAD Command Error. 12
* BYE Connection closed. 14

但是,TCPDUMP 中什么也没有显示。我不明白这是怎么回事。有人知道吗?谢谢 Clint

相关内容