Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Mar 2004
    Posts
    859

    Default Server constantly loaded down with IMAP connects. Can I set a timeout value for IMAP?

    Our server is constantly loaded down with a large number of IMAP connections. I believe this is due to folks opening their webmail page, and just letting the inbox just sit there self-refreshing around the clock, 24 hours a day.

    Question - How can we set a timeout value for IMAP in general, or baring that, for Horde, Squirrelmail and Roundcube in particular?

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Server constantly loaded down with IMAP connects. Can I set a timeout value for I

    Hello,

    You could change the maximum allowed connections per IP in WHM > Mailserver Configuration area to reduce the number of connections that each IP can use to the server. There are several other settings there that can be configured as well to reduce the number of processes, so it's up to you which you'd prefer to reduce.

    Thanks!
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #3
    Member
    Join Date
    Mar 2004
    Posts
    859

    Default Re: Server constantly loaded down with IMAP connects. Can I set a timeout value for I

    Thanks for the quick reply. Yes, I have already been reducing numbers in there, only to receive complaints that some folks can not connect to their IMAP services at all, i.e. because they are being crowded out by the others.

    So simply limiting the number of connections will not help in this case. Reducing how long any particular IP can stay connected to IMAP services however WILL certainly help. I am hoping there is a solution to this one.

  4. #4
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Server constantly loaded down with IMAP connects. Can I set a timeout value for I

    I would still encourage reducing the maximum number of connections per IP as there is little reason for one user on an IP to connect more than 5-10 times to IMAP. They might want to setup forwarding for all their email accounts to one box and connect to it only if they are using more than 5-10 connections for a single IP.

    There is not a timeout connection value available for the configuration and I'm not aware of an option to handle that, but I'll look into it to see if I can find anything further. Otherwise, it could always be a feature request for that to be implemented in the future in the configuration.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  5. #5
    Member
    Join Date
    Mar 2004
    Posts
    859

    Default Re: Server constantly loaded down with IMAP connects. Can I set a timeout value for I

    Thanks for looking into this.

    Reducing IMAP to 5-10 times would also be very difficult because we offer dozens of email accounts per hosting account. As such, if there are many computers accessing via the the same office router... well I'm sure you see what I mean.

  6. #6
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    742

    Default Re: Server constantly loaded down with IMAP connects. Can I set a timeout value for I

    Quote Originally Posted by cPanelTristan View Post
    Hello,

    You could change the maximum allowed connections per IP in WHM > Mailserver Configuration area to reduce the number of connections that each IP can use to the server. There are several other settings there that can be configured as well to reduce the number of processes, so it's up to you which you'd prefer to reduce.

    Thanks!
    If you do that you will get compliants too many smart phones out there.

    Quote Originally Posted by jols View Post
    Our server is constantly loaded down with a large number of IMAP connections. I believe this is due to folks opening their webmail page, and just letting the inbox just sit there self-refreshing around the clock, 24 hours a day.

    Question - How can we set a timeout value for IMAP in general, or baring that, for Horde, Squirrelmail and Roundcube in particular?
    We have a ton Imap connects but I do not see a load issue. We have around 60 Imap connections right now and have a server load of 0.32 and it is not a super beefy server, just a duo core with 4 gigs of memory. Does Imap connect to Horde, Squirrelmail and Roundcube? You could recommend they use POP3 to check the mail, most phones support that as well then it is not a cosistent connection, or prehaps if you use csf you could set a to kill a process that last longer than a certain lengh of time but that might just restart imap and not kill individual users, but I bet the connection comes right back. Are you using courier or dovecot? We are using dovecot. If you are using courier you might switch.
    Regards,
    Randy
    Affordable Web Hosting
    _________________________

Similar Threads & Tags
Similar threads

  1. IMAP down constantly on DNS-ONLY system?
    By mbreitba in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-20-2010, 11:49 AM
  2. imap and exim constantly fails on the latest release 11.25 help?
    By sharmaine001 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 12-24-2009, 06:02 PM
  3. Courier imap timeout
    By linuxdude in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 09-26-2006, 04:12 PM
  4. 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
  5. 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
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube