实际上,在过去的一周里,我一直在尝试使用 iptables 打开邮件服务器中的 imap 端口。我尝试了很多方法,但仍然没有打开。我尝试使用 imap 端口 143 配置 evolution 邮件客户端,但它显示错误
扫描“IMAP 服务器 comingbackservername”中的文件夹时出错
无法连接到incomingservername:连接被拒绝”
希望有人能帮助我,提前谢谢。
Chain INPUT (policy ACCEPT 6461K packets, 869M bytes)
pkts bytes target prot opt in out source destination
40 2290 ACCEPT all -- any any localhost.localdomain anywhere
12999 3431K ACCEPT tcp -- any any anywhere anywhere tcp dpt:http
0 0 ACCEPT tcp -- any any anywhere 10.0.0.0 tcp spts:1024:65535 dpt:imap state NEW,ESTABLISHED
0 0 ACCEPT udp -- any any anywhere anywhere udp spt:imap dpts:1024:65535 state NEW,ESTABLISHED
0 0 ACCEPT udp -- any any anywhere anywhere udp spts:1024:65535 dpt:imap state NEW,ESTABLISHED
0 0 ACCEPT tcp -- any any anywhere 10.0.0.0 tcp spt:imap dpts:1024:65535 state ESTABLISHED
0 0 ACCEPT tcp -- any any anywhere 10.0.0.0 tcp spts:1024:65535 dpt:smtp state NEW,ESTABLISHED
120 10016 ACCEPT tcp -- any any anywhere anywhere tcp spt:smtp dpts:1024:65535 state ESTABLISHED
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 216K packets, 61M bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT tcp -- any any 10.0.0.0 anywhere tcp spt:imap dpts:1024:65535 state ESTABLISHED
0 0 ACCEPT tcp -- any any 10.0.0.0 anywhere tcp spts:1024:65535 dpt:imap state NEW,ESTABLISHED
0 0 ACCEPT tcp -- any any 10.0.0.0 anywhere tcp spt:smtp dpts:1024:65535 state ESTABLISHED
127 68842 ACCEPT tcp -- any any anywhere anywhere tcp spts:1024:65535 dpt:smtp state NEW,ESTABLISHED
netstat -an|grep 143 没有结果!!!!!!!!!!!!!!!1:-(
sudo ufw 禁用 sudo:ufw:未找到命令
答案1
看起来您的防火墙没有执行任何操作,所有策略都是接受,所有规则都是接受。
尝试禁用防火墙并观察会发生什么。
您看到的错误消息表明Connection refused
这通常意味着相关端口上没有任何内容在监听。检查您的服务是否正在运行,并检查它是否配置为监听正确的接口和端口。