I was looking for a solution to the port 993/immediate disconnect
problem and found a log of the mailing list messages.
Shortly thereafter I fixed the problem on my home server.
Basis for solution:
When you run courier-imap in ssl mode, couriertcpd tries to run
$BASE/bin/couriertls
If this file does not exist, the immediate disconnect problem occurs.
It may not compile the file if your ssl includes/libraries are not
somewhere where the default compiler/linker can find them.
Here is how I fixed it:
cd to the source directory
CFLAGS=-I/usr/local/ssl/include LDFLAGS=-L/usr/local/ssl/lib ./configure
cd tcpd
make couriertls
cd ..
make install
[(re)start the imap-ssl server]
Replace /usr/local/ssl with the location of your ssl base directory.
Note: I had already compiled on this source tree.
couriertls would not automatically compile for me, even after I did the
new configure under root. It may compile couriertls from fresh source with
the modified configure command.
Also make sure that in your $BASE/etc/imapd-ssl.conf
you either set
IMAPDSSLSTART=NO, IMAPDSTARTTPS=YES, IMAP_TLS_REQUIRED=1 or
IMAPDSSLSTART=YES, IMAPDSTARTTLS=NO, comment out IMAP_TLS_REQUIRED=1
Otherwise netscape will complain when you try to connect.
Paul