Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Member WeMasterz5's Avatar
    Join Date
    Feb 2003
    Location
    Miami
    Posts
    361

    Default imap started ok

    but.... (hehe always a but eh? )

    I dont use outlook type email systems but I have some clients that do...one asked about using imap...I have read most of the post dated 2002 here in these forums with a search for imap settings..I have done just about all that everyone suggested...I tried using outlook set to imap and it would not connect...pop3 works fine...

    can someone suggest something to maybe help me get this going

    were on WHM 6.2.0 Cpanel 6.4.1-E31 RedHat 8.0

    thanks

  2. #2
    Member
    Join Date
    Apr 2003
    Posts
    20

    Default

    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

  3. #3
    Member WeMasterz5's Avatar
    Join Date
    Feb 2003
    Location
    Miami
    Posts
    361

    Default

    Thanks


    vi /etc/sysconfig/iptables
    I dont see that...

    /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

  4. #4
    Member
    Join Date
    Apr 2003
    Posts
    20

    Default

    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

  5. #5
    Member WeMasterz5's Avatar
    Join Date
    Feb 2003
    Location
    Miami
    Posts
    361

    Default

    You need to recover that file for the firewall to work
    and how is this done?


    Thanks

  6. #6
    Member
    Join Date
    Apr 2003
    Posts
    20

    Default

    well, I suggest you create a new file and paste that content in.

    ML

  7. #7
    Member WeMasterz5's Avatar
    Join Date
    Feb 2003
    Location
    Miami
    Posts
    361

    Default

    ok...kinda worried about doing this...have never messed with the iptables...all the normal ports are open now...so putting this does what?


    thanks

  8. #8
    Member
    Join Date
    Apr 2003
    Posts
    20

    Default

    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

  9. #9
    Member WeMasterz5's Avatar
    Join Date
    Feb 2003
    Location
    Miami
    Posts
    361

    Default

    * OK [capability imap4rev1 login-refeffals auth=login] bliss.####.net imap4rev1 2002.235-cpanel at todays date and time

  10. #10
    Member
    Join Date
    Apr 2003
    Posts
    20

    Default

    if you can telnet to your server port 143 FROM OUTSIDE then you don't need to change anything.

    ML

  11. #11
    Member WeMasterz5's Avatar
    Join Date
    Feb 2003
    Location
    Miami
    Posts
    361

    Default


Similar Threads & Tags
Similar threads

  1. Replies: 5
    Last Post: 02-05-2011, 05:14 PM
  2. convert2maildir did its job, courier-imap (imap & pop) are causing problems
    By hariskhan in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-05-2006, 07:13 AM
  3. I switch back from courier imap and now imap wont start
    By BianchiDude in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-23-2006, 06:58 PM
  4. IMAP Server can not be started
    By xp2u in forum cPanel and WHM Discussions
    Replies: 16
    Last Post: 07-04-2005, 05:57 PM
  5. Getting Started
    By drshelm2001 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-21-2004, 04:37 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube