Hi,

   I followed the Method 2 and it works. The run script looks like :

#!/bin/sh
QMAILDUID=`id -u smtpd`
NOFILESGID=`id -g smtpd`

BASEDIR=`pwd`;
echo "starting smtp-ssl service with tcpserver and qpsmtpd basedir '$BASEDIR'"

exec /usr/local/bin/softlimit -m 25000000 \
       /usr/local/bin/tcpserver -c 50 -v -R -p \
       -H -x/var/qmail/control/qmail-smtpd.cdb \
       -u $QMAILDUID -g $NOFILESGID `head -1 $BASEDIR/config/IP` \
       smtps /usr/sbin/stunnel /etc/stunnel/stunnel.conf 2>&1

and the stunnel.conf :


foreground = no
setuid = smtpd
setgid = smtpd
pid =
debug = debug
CAfile = /usr/share/ssl/private/server_ca.crt
cert = /usr/share/ssl/private/qpsmtpd-stunnel.crt

[smtps]
accept = smtps
connect = smtp


Thanks,

Abhilash.S


On 5/28/07, frank <[EMAIL PROTECTED]> wrote:
On Mon, 28 May 2007, abhilash s wrote:

> Date: Mon, 28 May 2007 10:38:19 -0400
> From: abhilash s <[EMAIL PROTECTED]>
> To: [email protected]
> Subject: How to configure stunnel Ver. 4
>
> Hi,
>
>  I would like to setup the smtps using qpsmtpd : I have followed the
> steps of Method 1 in the following link :
>
> http://wiki.qpsmtpd.org/config:smtps
>
> I am using stunnel version stunnel-4.05-3 . so that it shows errors .
> I have modified the run script as follows

Step 2 on the page you reference clearly states:

2 - Install stunnel, version 3 (not 4, which uses a different syntax!)

The verion of stunnel-4 that I have installed includes a perl wrapper
called "stunnel3". See if you have that and change your run script to use
that instead. You should fix your last line to look more like (ie.
reinstate the -f -p and -l options):

ssmtp /usr/sbin/stunnel3 -f -p /etc/courier/mail.pem -l $BASEDIR/qpsmtpd 2>&1


-f

Reply via email to