I don't honestly know the limits of courier imap. I do know that dovecot is much more efficient though. Have you considered running dovecot instead of courier? It's not very difficult to do. There has been discussion about it on this list. You might check the archives.

Dave Hallowell wrote:
List,
I am still getting complaints from users after bumping up MAXDAEMONS=50 and stop and start of qmail. I continued to use the script below to just log the number of imapd processes running. I commented out the line that killed all imapd processes. The greatest number of imapd processes I ever saw was 47 which is below the MAXDAEMONS setting. Again, if I would kill all the imapd processes when users experienced the timeouts, the problem would go away. Any suggestions?
Thanks,
Dave


Dave Hallowell wrote:
Michael / Eric,
I will stop and start qmail with only the MAXDAEMONS=40 bumped up to
MAXDAEMONS=50 and see if the problem comes back.
Thanks,
Dave

Eric Shubert wrote:
I don't believe so. Restarting qmail does not restart courier/imap.
You'd need to either stop qmail and start it again, or do the commands
that are in the qmail-spam and qmail-clamav scripts, except substitute
imap4 (and imap4-ssl).

Michael Colvin wrote:
Will restarting just Qmail pick up those changes?

**Michael J. Colvin**

**NorCal Internet Services**

**//www.norcalisp.com// <http://www.norcalisp.com/>**

<http://www.norcalisp.com/>

------------------------------------------------------------------------

*From:* Dave Hallowell [mailto:[email protected]]
*Sent:* Monday, March 01, 2010 12:37 PM
*To:* [email protected]
*Subject:* Re: [qmailtoaster] Re: squirrelmail/imap issue

So I bumped up the MAXDAEMONS=50 and restarted qmail.  About four
hours later, I have 43 imapd processes running and getting new mail
results in a timeout on thunderbird. I killall imapd processes, and
can get emails immediately. I noticed there is also a MAXPERIP=4 and
I bumped it up to MAXPERIP=6 and restarted qmail. See if that works.
Dave

Dave Hallowell wrote:

Jake,
Ah ha.  I see MAXDAEMONS=40. How'd I miss that? Okay, I'll bump it up
and see what happens. Any suggestions on the number or just trial and
error?
Thanks Jake.
Dave

Jake Vickers wrote:

On 03/01/2010 10:23 AM, Dave Hallowell wrote:

Helmut,
I recently ran into this problem with imap timing out.  I don't use
squirrelmail much, but I was getting timeouts using thunderbird when
trying to send and receive from imap email accounts.  I read a post
on this list about timeouts when the number of imap processes reached
a certain number.  In my case, when I had the smtp timeouts, I would
run from the command line
# ps -ef | grep imapd | wc -l
and it would always return 43 processes when I was having problems.
42 processes, everything ran fine. When I had 43 imapd processes
running and experiencing issues, I would run this from the command line.
# /usr/bin/killall -9 imapd
this would kill all the current imapd processes and sending and
receiving email resumed properly.
I am running Centos4.8 and I haven't done an update for several
months. Still running qmail-toaster-1.03-1.3.18.
I also analyzed, checked, and repaired my vpopmail database but this
did not solve this issue.
So until I can figure out what is really causing this, I wrote a
little script that runs from cron every 5 minutes and if there are
more than 42 imapd processes running, it kills them. Here is the
script if you wish to use it.
------ snip -----------
DT=`date`
KILLIT="/usr/bin/killall -9 imapd"
PID=`ps -ef | grep imapd | wc -l`
if [ $PID -gt 42 ]
then
#echo "too high"
echo $DT >> /oper/kill.log
echo $PID >> /oper/kill.log
$KILLIT > /dev/null 2>&1
fi
----- snip ---------



Have you looked at the imapd config and ensured the MAXDAEMONS is set
high enough?

---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group
(www.vickersconsulting.com <http://www.vickersconsulting.com>)
Vickers Consulting Group offers Qmailtoaster support and
installations. If you need professional help with your setup, contact
them today!
---------------------------------------------------------------------------------
Please visit qmailtoaster.com for the latest news, updates, and
packages. To unsubscribe, e-mail:
[email protected]
<mailto:[email protected]> For
additional commands, e-mail: [email protected]
<mailto:[email protected]>

---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group
(www.vickersconsulting.com) Vickers Consulting Group offers
Qmailtoaster support and installations. If you need professional help
with your setup, contact them today!
---------------------------------------------------------------------------------
Please visit qmailtoaster.com for the latest news, updates, and
packages. To unsubscribe, e-mail:
[email protected] For additional
commands, e-mail: [email protected]

---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
    Vickers Consulting Group offers Qmailtoaster support and installations.
      If you need professional help with your setup, contact them today!
---------------------------------------------------------------------------------
     Please visit qmailtoaster.com for the latest news, updates, and packages.
To unsubscribe, e-mail: [email protected]
     For additional commands, e-mail: [email protected]


--------------------------------------------------------------------------------- Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today!


--
-Eric 'shubes'


---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
   Vickers Consulting Group offers Qmailtoaster support and installations.
     If you need professional help with your setup, contact them today!
---------------------------------------------------------------------------------
    Please visit qmailtoaster.com for the latest news, updates, and packages.
To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]


Reply via email to