IMAP timeout from external ip

Discussion in 'Installation/Configuration' started by farao, Feb 27, 2008.

  1. farao

    farao New Member

    Hi All,

    I've got a strange problem: IMAP works on my local lan, but not from outside my 10.0.0.X network. There are no problems with POP3 from outside. IMAP won't work, no matter what. It is running (I checked with netstat -tap), and all ports (143) are correctly forwarded in my router.
    DNS is correctly configured (ping reveals the correct IP), FTP and HTTP work flawlessly.
    Webmail works perfectly through Squirrelmail also.

    Please help...
    Thanks,
    Farao
     
  2. jnsc

    jnsc rotaredoM Moderator

    did you enable port 143 in the firewall?

    what's the output of
    Code:
    iptables -L
    ?
     
  3. farao

    farao New Member

    Hi,

    iptables says accepted anywhere imap2 on tcp and udp
    Code:
    Chain INBOUND (1 references)
    target     prot opt source               destination
    ACCEPT     tcp  --  anywhere             anywhere            state RELATED,ESTABLISHED
    ACCEPT     udp  --  anywhere             anywhere            state RELATED,ESTABLISHED
    ACCEPT     tcp  --  anywhere             anywhere            tcp dpts:ftp-data:ftp
    ACCEPT     udp  --  anywhere             anywhere            udp dpts:20:fsp
    ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:www
    ACCEPT     udp  --  anywhere             anywhere            udp dpt:www
    ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:imap2
    ACCEPT     udp  --  anywhere             anywhere            udp dpt:imap2
    ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:pop3
    ACCEPT     udp  --  anywhere             anywhere            udp dpt:pop3
    ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:ssh
    ACCEPT     udp  --  anywhere             anywhere            udp dpt:ssh
    ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:smtp
    ACCEPT     udp  --  anywhere             anywhere            udp dpt:25
    ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:81
    ACCEPT     udp  --  anywhere             anywhere            udp dpt:81
    ACCEPT     tcp  --  anywhere             anywhere            tcp dpts:netbios-ns:netbios-ssn
    ACCEPT     udp  --  anywhere             anywhere            udp dpts:netbios-ns:netbios-ssn
    ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:microsoft-ds
    ACCEPT     udp  --  anywhere             anywhere            udp dpt:microsoft-ds
    LSI        all  --  anywhere             anywhere
    In my adsl-router I have 143 open as well, i'm baffled. Pop3 works, web works, just imap fails.
    Thanks for your help so far.
     
  4. jnsc

    jnsc rotaredoM Moderator

    can you try this from the outside?
    Code:
    tenlet EXTERNAL_IP 143
    If you don't get a prompt then it's a connection problem (maybe NAT).
     
  5. farao

    farao New Member

    SOLVED - Crap. As it turns out, there's a firewallrule in my office that won't allow port 143 (though all others are wide open...). Other external ip's worked fine, so it wasn't my server...
    Thanks for thinking wih me.
    Farao
     

Share This Page