|
|||
|
It's likely that port port 143 is not open for imap connections.
vi /etc/sysconfig/iptables add the line to ACCEPT connections on port 143 (you'll know what line to add when you're there) , remember it's udp not tcp protocol, udp does not use --syn either. then: /etc/init.d/iptables restart ML |
|
||||
|
Thanks
Quote:
/etc/sysconfig/.iptables.swp is what I see there when running that..I get E325: ATTENTION Found a swap file by the name "/etc/sysconfig/.iptables.swp" owned by: root dated: Thu May 8 17:22:27 2003 file name: /etc/sysconfig/iptables modified: no user name: root host name: bliss.cyberwirecafe.net process ID: 15576 (still running) While opening file "/etc/sysconfig/iptables" (1) Another program may be editing the same file. If this is the case, be careful not to end up with two different instances of the same file when making changes. Quit, or continue with caution. (2) An edit session for this file crashed. If this is the case, use ":recover" or "vim -r /etc/sysconfig/iptables" to recover the changes (see ":help recovery"). If you did this already, delete the swap file "/etc/sysconfig/.iptables.swp" to avoid this message. "/etc/sysconfig/iptables" [New File] Hit ENTER or type command to continue |
|
|||
|
It's the swap file when you vi iptables the last time and got disconnected (quit without closing the file)
You need to recover that file for the firewall to work. this is what /etc/iptables should have: -------------------- # Firewall configuration written by lokkit # Manual customization of this file is not recommended. # Note: ifup-post will punch the current nameservers through the # firewall; such entries will *not* be listed here. *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] :RH-Lokkit-0-50-INPUT - [0:0] -A INPUT -j RH-Lokkit-0-50-INPUT -A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 25 --syn -j ACCEPT -A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 80 --syn -j ACCEPT -A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 21 --syn -j ACCEPT -A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 22 --syn -j ACCEPT -A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 23 --syn -j ACCEPT -A RH-Lokkit-0-50-INPUT -p udp -m udp --dport 53 -j ACCEPT -A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 110 --syn -j ACCEPT -A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 143 --syn -j ACCEPT -A RH-Lokkit-0-50-INPUT -p udp -m udp --dport 27015 -j ACCEPT -A RH-Lokkit-0-50-INPUT -i lo -j ACCEPT -A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 0:1023 --syn -j REJECT -A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 2049 --syn -j REJECT -A RH-Lokkit-0-50-INPUT -p udp -m udp --dport 0:1023 -j REJECT -A RH-Lokkit-0-50-INPUT -p udp -m udp --dport 2049 -j REJECT -A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 6000:6009 --syn -j REJECT -A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 7100 --syn -j REJECT COMMIT ---------------- nevermind, imap uses tcp protocol. ![]() ML |
|
|||
|
It will open port 143 to accept connections for imap server.
Right now, on your box try : telnet localhost 143 If you see something, try FROM HOME: telnet <your IP> 143 see if you have the same. If not work, it's because you don't have port 143 open (it's NOT open by default by cpanel). You can try /etc/init.d/iptables stop and telnet (FROM HOME) again. If it works, you can turn iptables back on and fix the config file. then restart iptables. ML |
![]() |
| Thread Tools | |
| Display Modes | |
|
|