Hi All,

I have a debian toaster box.
I have got a problem with stunnel 3 and pop3ds on Debian.

"openssl s_client -connect localhost:995" gives
----
CONNECTED(00000003)
4264:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake
failure:s23_lib.c:188:
---
Here is the qmail-pop3ds log :

2007-05-21 15:23:36.797643500 tcpserver: status: 1/40
2007-05-21 15:23:36.797649500 tcpserver: pid 4265 from 127.0.0.1
2007-05-21 15:23:36.797650500 tcpserver: ok 4265 0:127.0.0.1:995
:127.0.0.1::41406
2007-05-21 15:23:36.797652500 2007.05.21 15:23:36 LOG5[4265:3083716288]:
Using 'qmail-popup' as tcpwrapper service name
2007-05-21 15:23:36.797654500 2007.05.21 15:23:36 LOG5[4265:3083716288]:
Could not load DH parameters from /var/qmail/control/servercert.pem
2007-05-21 15:23:36.797657500 2007.05.21 15:23:36 LOG4[4265:3083716288]:
Diffie-Hellman initialization failed
2007-05-21 15:23:36.797716500 2007.05.21 15:23:36 LOG3[4265:3083716288]:
Error reading certificate file: /var/qmail/control/servercert.pem
2007-05-21 15:23:36.797719500 2007.05.21 15:23:36 LOG3[4265:3083716288]:
SSL_CTX_use_certificate_chain_file: error:0906D06C:PEM
routines:PEM_read_bio:no start line
2007-05-21 15:23:36.797722500 tcpserver: end 4265 status 256
2007-05-21 15:23:36.797723500 tcpserver: status: 0/40
------------

and here is my /service/qmail-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 -f -p /var/qmail/control/servercert.pem        \
            -l /var/qmail/bin/qmail-popup -- qmail-popup `hostname`  \
        /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 2>&1
----

any help is welcome,

Yalcin


Reply via email to