* TLDR;如果您遇到连接问题,不仅要确保已将所需的规则添加到防火墙中,还要确保 ( $ iptables -L -v) 规则的顺序正确!*
现在已经几天了,我不明白为什么我的 IMAP 设置(在端口 993 上)拒绝工作(使用 Dovecot,版本 2.2.22)。连接不成功,由于某种原因我看不到。
对与 openssl 的连接进行故障排除:在端口 993 上连接不起作用:
$ openssl s_client -connect my-domain.com:993
Run Code Online (Sandbox Code Playgroud)
返回:
connect: Connection timed out
connect:errno=110
Run Code Online (Sandbox Code Playgroud)
但是使用的端口(993)似乎是开放的:
$ ufw status
Run Code Online (Sandbox Code Playgroud)
返回:
Status: active
To Action From
-- ------ ----
22/tcp ALLOW Anywhere
80/tcp ALLOW Anywhere
443/tcp ALLOW Anywhere
25/tcp ALLOW Anywhere
587/tcp ALLOW Anywhere
993/tcp ALLOW Anywhere
143/tcp ALLOW Anywhere
465/tcp ALLOW Anywhere
110/tcp ALLOW Anywhere
995/tcp ALLOW Anywhere
22/tcp (v6) ALLOW Anywhere …Run Code Online (Sandbox Code Playgroud)