[stunnel-users] Stunnel not working with Qmail
paulswainson at erpimplementers.com
Thu Nov 4 13:31:51 CET 2004
Hi to all list members, I will try to as descriptive as possible about the
problem. I have a qmail install and I had used courier for imap, imapssl &
pop3dssl. I wanted to implement smtp ssl. I have gone through the stuff at
stunnel.org but I don't think its my qmail config that's the problem.
This is the first time I have used stunnel, I compiled no probs and before
doing so I installed open ssl 0.9.7e
I have created a conf for stunnel and here it is:
cert = /usr/local/etc/stunnel/stunnel.pem
exec = /var/qmail/bin/qmail-smtpd
execargs = /var/qmail/bin/qmail-smtpd mydomain.com /home/vpopmail/bin/vchkpw
client = yes
foreground = yes
in the qmail run (smtpsd) script I have amended it to read
QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" export QMAILQUEUE
QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
LOCAL=`head -1 /var/qmail/control/me`
if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ];
echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
if [ ! -f /var/qmail/control/rcpthosts ]; then
echo "No /var/qmail/control/rcpthosts!"
echo "Refusing to start SMTP listener because it'll create an open relay"
exec /usr/local/bin/softlimit -m 40000000 \
/usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c
-u "$QMAILDUID" -g "$NOFILESGID" 0 465 \
Execargs has in the stunnel conf is the line from smtpd run script, when it
runs I don't have any output to the log so I can only assume stunnel is
dying before it starts the session.
Has anyone got this working? I know that it can but a lot of examples are
for pop3ds. If I type stunnel /usr/local/etc/stunnel/smtpsd.conf I get the
following error: Unable to open "/dev/cryptonet"
Any help on this would be much appreciated, Thanks
More information about the stunnel-users