On Tue, Jan 17, 2006 at 04:40:22PM +0100, Jochen Tuchbreiter wrote: > Hello, > > this is a patch against qmail-ldap-20050401a to make auth_pop and auth_imap > work with tcpserver+ssl (patch from > http://www.nrg4u.com/qmail/ucspi-tcp-ssl-20050405.patch.gz) > > It changes the function copyloop so that it uses to fds for the connection > to the {POP3|IMAP}-Client instead of one. One is used exclusively for reads > (stdin), one is used exclusively for writes (stdout). I think this is > necessary because of the way the tcpserver+ssl patch works: chained programs > get pipes instead of sockets for communication. > > For me this causes the connection forwarding of auth_pop/auth_imap in > following scenario to work > > User <---spop3---> cluster_member <---pop3--> mailbox_server > > Previously the scenario above resulted in abortion of the connection as soon > the password was sent from the user. >
Hmm. I switched from two pipes to a single socketpair in the tcpserver-ssl patch because of this problem. I will have a closer look at your diff but I think I will include it in the upcomming release. It is better to poll on stdin and stdout separatly. -- :wq Claudio
