On Feb 18, 2008, at 8:25 PM, Sam Varshavchik <[EMAIL PROTECTED]>
wrote:
Greg Earle writes:
Is there any chance of implementing a MAXPERUID variable
of some sort, to limit the total number of running "imapd"
processes under a particular uid?
This is a system function. On Linux, this can be set with 'ulimit -
u'. Note that this affects all non-root processes, so it is going
to apply to all non-root processes. ulimit -u needs to be set in
the script that runs Courier-IMAP's startup script.
Note that a separate process, couriertls, exists in encrypted
connections, so a ulimit of 10 processes may actually permit a
maximum of 5 encrypted connections at the same time.
The mail server is a Solaris 9 system, which does not implement
"ulimit -u".
-------
BTW, this is the behavior I am seeing (if we switch SSL off so
I can watch the traffic) in "tcpflow":
XXX.XXX.XXX.XXX.50286-NNN.NNN.NNN.NNN.00143: 3 SELECT INBOX
NNN.NNN.NNN.NNN.00143-XXX.XXX.XXX.XXX.50286: * FLAGS (JunkRecorded
Junk $NotJunk $Forwarded NotJunk Redirected Forwarded \Draft
\Answered \Flagged \Deleted \Seen \Recent)
* OK [PERMANENTFLAGS (JunkRecorded Junk $NotJunk $Forwarded NotJunk
Redirected Forwarded \* \Draft \Answered \Flagged \Deleted \Seen)]
Limited
* 11323 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1122474517] Ok
* OK [MYRIGHTS "acdilrsw"] ACL
3 OK [READ-WRITE] Ok
XXX.XXX.XXX.XXX.50286-NNN.NNN.NNN.NNN.00143: 4 UID SEARCH UID 26995:*
[long pause with no network activity while "imapd" reads every message
in his INBOX]
XXX.XXX.XXX.XXX.50284-NNN.NNN.NNN.NNN.00143: 5 LOGOUT
NNN.NNN.NNN.NNN.00143-XXX.XXX.XXX.XXX.50284: * BYE Courier-IMAP
server shutting down
5 OK LOGOUT completed
NNN.NNN.NNN.NNN.00143-XXX.XXX.XXX.XXX.50274: * SEARCH 26995 26996
26997 26998
4 OK SEARCH done.
His Apple Mail.app client repeatedly asks for this same UID SEARCH
UID 26995:*
search and times out (and logs out) - before Courier returns the
results back.
Is the only way out of this for him to find a way to drastically reduce
the size of his INBOX so that these SEARCHes will take less time to
complete and return the results? Will it help if he sets the client's
delay time between logins to a much longer time interval?
Also, why is each "imapd" reading every single message in the INBOX
folder
before finally returning the
* SEARCH 26995 26996 26997 26998 4 OK SEARCH done.
result? Are there any applicable knobs in ${COURIER}/etc to twiddle?
Thanks,
- Greg
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users