Hi Sam

Am 10.05.2006 um 23:31 schrieb Sam Varshavchik:

We are using courier-0.47 on Debian sarge.

Actually, this is a prehistoric version of Courier where this is still possible, but nobody really cares about spending time on this ancient dinosaur any more; and, in any case, you will need to recompile it.

Ok. We compiled courier-0.53.1 and courier-authlib-0.58. Great job. What a pleasure to debug this version with much better debug and error statements.

By debugging the stacktrace of courierauthtest we found exactly the missing requets. They all produced: connect(3, {sa_family=AF_FILE, path="/var/run/courier/authdaemon/ socket"}, 110) = -1 EAGAIN (Resource temporarily unavailable)

You have exceeded the maximum limits of your kernel configuration.

Well, we increased the local port range but the errors are still there (it did not even get worser when I decreased the range):

"ERR: authdaemon: s_connect() failed: Resource temporarily unavailable"

So am I right that all imap and pop daemons communicate through one single UNIX Socket with the authdaemon processes? If we increase the number of authdaemons, we can read faster from the socket and it is free for more imap/pop daemons to connect and write.

Increasing the number of authdaemons only helps until a certain critical number has reached (as you mentioned with the kernel configuration), but we still do not know what.

We already tried a little workaround by modifing the code of the function s_connect in authdaemonlib.c by adding a sleep loop. If we get a EAGAIN error, the daemon will sleep for short period and then tries x-times to connect to the socket again. We still got some failures but there are less of them. Of course, the authentication time was sometimes longer than normal but it did not interrupted the login procedure (and ask for passwords again and again). But I think this is not the standard procedure to solve this problem and maybe there are more sideeffects. What do you think?

Does anyone has an experience what are acceptable values MAXDAEMONS of imap, MAXDAEMONS of pop and MAXDAEMONS of authdaemond? We are currently starting 200 IMAP and 200 POP daemons and are running 15 Authdaemons. What kind of configuration is used successfully?

Thanks and kind regards,

Norbert

- --
_____________________________
University of Berne
IT-Services Departement

Norbert Kottmann

Gesellschaftsstrasse 6
CH-3012 Bern





-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to