On Thursday 04 May 2006 20:06, Alex Dean wrote:
> On May 4, 2006, at 11:49 AM, Ingo Claro wrote:

<snip>
> -rw-r----- 1 vpopmail qmail 2197 2006-05-04 10:28 /var/qmail/control/
> servercert.pem
> ###############################################
>
> Is it correct that clientcert.pem should be a symlink to
> servercert.pem?  stunnel.conf is then using the same file for 'cert'
> and 'key'.  I admit I don't know much about SSL, but it seems like
> the certificate and key should be different files.

.pem files contain both
-----BEGIN RSA PRIVATE KEY-----
....
.... lots of stuff....
....
-----END RSA PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
....
.... lots of stuff....
....
-----END CERTIFICATE-----

clientcert.pem -> /var/qmail/control/servercert.pem
is correct. Yours looks about the same size as the ones I have
and the permissions look right

I also have ciphers

this is how to make them
#!/bin/sh

/usr/bin/openssl ciphers > /var/qmail/control/tlsserverciphers

cd /var/qmail/control
ln -s tlsserverciphers tlsclientciphers

perhaps that's what is missing, it's a while back but I seem to remember that 
the ciphers helped get securepop/securesmtpd going.

This is my run file
#!/bin/sh

VPOPMAILUID=`id -u vpopmail`
VPOPMAILGID=`id -g vpopmail`
HOST=`hostname -f`

readdefault() {
        var=$1; shift
        file=$1; shift
        if [ -s /var/qmail/control/$file ]; then
                export $var="`cat /var/qmail/control/$file`"
        else
                export $var="$*"
        fi
}

readdefault SOFTLIMIT pop3ssoftlimit 4000000
readdefault MAXCONNECT concurrencypops 30

exec /usr/local/bin/softlimit -m $SOFTLIMIT \
        /usr/local/bin/tcpserver -v -H -R -l 0 \
        -c $MAXCONNECT \
        -u $VPOPMAILUID -g $VPOPMAILGID 0 995 \
        /usr/sbin/stunnel -f -p /var/qmail/control/servercert.pem \
        -l /var/qmail/bin/qmail-popup -- qmail-popup $HOST \
        /home/vpopmail/bin/vchkpw \
        /var/qmail/bin/qmail-pop3d Maildir 2>&1

## eof ##

stunnel is version 3
# stunnel -V

stunnel 3.26 on i386-pc-linux-gnu PTHREAD+LIBWRAP with OpenSSL 0.9.7e 25 Oct 
2004

All this is on a Debian box

netstat -atn
should show
tcp        0      0 0.0.0.0:995             0.0.0.0:*               LISTEN
....

Hopefully there is enough for you to find what is wrong.

HTH
-- 
-----------------
Bob Hutchinson
Midwales dot com
-----------------

Reply via email to