Hi Paul,

I usually have at most two people using squirrelmail at once. It's a pretty 
low-traffic server. Here's my IMAP config. 

EFFECTIVE_USER=dbmail
EFFECTIVE_GROUP=dbmail
BINDIP=*
PORT=143
NCHILDREN=2
MAXCONNECTS=10000       
TIMEOUT=4000                      
RESOLVE_IP=yes                    
IMAP_BEFORE_SMTP=yes
TRACE_LEVEL=5



The unable to connect error only happens at login. Once a person is logged in, 
the session goes fine. Since I've upped the trace level, it's been working 
fine.. (Murphy's law..)

I have NCHILDREN = 2 on my pop server which gets 10 times the traffic of the 
IMAP server, and it always works fine. 


-Micah 

On Wednesday 19 May 2004 10:58 am, Paul J Stevens wrote:
> Micah wrote:
> > I'm using 1.2.7b and Squirrelmail can't connect to it periodically. A
> > IMAP restart fixes it.  I have been running a cron script that restarts
> > it once a day, which seems to work pretty good.
>
> Could be your imap server is running out of processes. What is your
> NCHILDREN setting. Also check MAXCONNECTS. If a process has handled
> MAXCONNECTS incoming connections, it shuts down. Immediately after, the
> master process restarts a new process. So if you see memory leaks (MEM
> usage is growing) set the MAXCONNECTS to something lower. Trial-n-error.
>
> > Does IMAP reject connections if it's not able to connect to the database?
>
> Yes, definitely, since that's required for just about everything.
>
> >>I still get the imap server losing the connection to the database.  It
> >>works after a restart...and will run most of the day, but it looks like
> >> if it goes unused for several hours it actually drops the connection.
> >>
> >>For example, I check my mail via IMAP at 11:00 pm and then when I get up
> >>in the morning around 7:00 am.  The server works all day (from 7 to 11)
> >>b/c I check it frequently throughout the day, but every morning when I
> >>wake up it says that the "_auth_query()" has lost it's connection
> >>(connection dropped).
>
> That's what the TIMEOUT option is for. Clients idle for more than
> TIMEOUT seconds are disconnected. I know mozilla/thunderbird handles
> this gracefully be logging in anew.

Reply via email to