Can't connect to webmail

Discussion in 'General' started by leiw3248, Oct 26, 2010.

  1. leiw3248

    Joined:
    Apr 21, 2008
    Messages:
    476
    Likes Received:
    0
    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 !
     
  2. Lee Sharp

    Joined:
    Sep 28, 2010
    Messages:
    332
    Likes Received:
    0
    The ports for imap are 143 and 993 for secure imap. You will also need 80 and 443 for web...
     
  3. leiw3248

    Joined:
    Apr 21, 2008
    Messages:
    476
    Likes Received:
    0
    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 !
     
  4. Lee Sharp

    Joined:
    Sep 28, 2010
    Messages:
    332
    Likes Received:
    0
    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.
     

Share This Page