其实在过去的一个星期,我试图用iptables在我的邮件服务器上打开imap端口。 我尝试了很多东西,但仍然没有打开。 我正在尝试configuration与IMAP端口143进化邮件客户端,但它显示错误
扫描“IMAP server 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:命令未find
它看起来并不像你的防火墙在做什么,所有的策略都是接受的,所有的规则都是接受的。
尝试禁用防火墙,看看会发生什么。
你看到的错误信息说Connection refused这一般意味着在相关的端口上没有任何东西在收听。 检查您的服务正在运行,并检查它是否configuration为侦听正确的接口和端口。