Can't connect to webmail

leiw3248

Joined
Apr 21, 2008
Messages
476
Likes
0
Points
0
#1
Hello

I'm configurating internal iptables and opened 25 / 110 / 143 ports for email, but after that I can't login into webmail, "Conntections to IMAP server failed".

Thanks !
 

Lee Sharp

Joined
Sep 28, 2010
Messages
332
Likes
0
Points
0
#2
The ports for imap are 143 and 993 for secure imap. You will also need 80 and 443 for web...
 

leiw3248

Joined
Apr 21, 2008
Messages
476
Likes
0
Points
0
#3
Lee Sharp said:
The ports for imap are 143 and 993 for secure imap. You will also need 80 and 443 for web...
Hello

I still cannot login to webmail by your ports setting on iptalbes,
the following is my iptables rules:

[root@test ~]# iptables-save
# Generated by iptables-save v1.3.5 on Thu Oct 28 08:56:18 2010
*filter
:INPUT DROP [78]
:FORWARD ACCEPT [0]
:OUTPUT ACCEPT [196394500]
-A INPUT -s 64.30.224.118 -i eth0 -p tcp -m tcp --dport 25 -j DROP
-A INPUT -i eth0 -p tcp -m tcp --dport 8642 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -i eth0 -p udp -m udp --dport 5060 -j ACCEPT
-A INPUT -i eth0 -p udp -m udp --dport 10000:20000 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 993 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 143 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 110 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 25 -j ACCEPT
COMMIT


Thanks !
 

Lee Sharp

Joined
Sep 28, 2010
Messages
332
Likes
0
Points
0
#4
I an not a master at iptables. That said, generally firewalls process things in order. So you port 25 drop before your port 25 accept should mean it drops. Now it looks like a global drop at the top. But webmail may be trying to connect on 127.0.0.1. I am not sure, but you may have iptables dropping everything on the lo interface.
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,886
Members
17,563
Latest member
dineshr
Top