Hello everybody I got a problem with stunnel 4 and pop3ds (on Debian etch). But it works well with imap and smtp.
openssl s_client -connect localhost:995 this command show : CONNECTED(00000003) write:errno=104 Here is the qmail-pop3ds log : ok 18836 0:127.0.0.1:995 :127.0.0.1::44336 2007-05-01 03:39:14.575979500 2007.05.01 03:39:14 LOG3[18836:3083192000]: Error reading certificate file: /etc/stunnel/stunnel.pem 2007-05-01 03:39:14.576023500 2007.05.01 03:39:14 LOG3[18836:3083192000]: error stack: 140DC002 : error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib 2007-05-01 03:39:14.576044500 2007.05.01 03:39:14 LOG3[18836:3083192000]: error stack: 20074002 : error:20074002:BIO routines:FILE_CTRL:system lib 2007-05-01 03:39:14.576063500 2007.05.01 03:39:14 LOG3[18836:3083192000]: SSL_CTX_use_certificate_chain_file: 200100D: error:0200100D:system library:fopen:Permission denied and here is my pop3ds/run : #!/bin/sh VPOPMAILUID=`id -u vpopmail` VPOPMAILGID=`id -g vpopmail` exec /usr/local/bin/tcpserver -l 0 -R -H -v \ -u"$VPOPMAILUID" -g"$VPOPMAILGID" 0 995 \ /usr/bin/stunnel /service/qmail-pop3ds/stunnel.conf 2>&1 finally here is my qmail-pop3ds/stunnel.conf ( changed domain.com with mine but it does not change anything) cert = /var/qmail/control/servercert.pem exec = /var/qmail/bin/qmail-popup execargs = qmail-popup crecep.net /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir I hope someone could could help and I apologize if I made english faults. Laƫtitia