Stunnel.org  
   
Home
About
News
Faq
Examples
Download
Patches
Support
Related
<Examples>
Scott Gifford has a detailed description of his Qmail/Stunnel setup, including patches, available at http://www.suspectclass.com/~sgifford/stunnel-tlsproxy/stunnel-tlsproxy.html.







From: Pawe? Foremski 
Subject: Stunnel 4 + tcpserver + qmail + relay_ctrl config


I had a trouble setting up stunnel 4 with tcpserver, qmail-pop3d and relay-ctrl.
After about one-week searching for a valid conf, I found it. So I think that
you can put it on your site to help the others.

Paul Foremski

P.S. Sorry for my english ;).

*************************************************************************
--- /usr/local/etc/stunnel/pop3s.conf START ---
# Sample qmail-pop3d with relay-ctrl config file
# Paul Foremski ( pavcio(at)users.sf.net )

cert = /usr/local/etc/stunnel/stunnel.pem

#debug = 7
#output = /var/log/stunnel.log

#####
client = no
foreground = no

exec = /var/qmail/bin/qmail-popup
execargs = /var/qmail/bin/qmail-popup HOSTNAME /bin/checkpassword
/usr/local/bin/relay-ctrl-allow /var/qmail/bin/qmail-pop3d Maildir 2>&1
--- /usr/local/etc/stunnel/pop3s.conf END ---
***************************************************************************
--- /var/qmail/supervise/pop3ds/run START ---
#!/bin/sh

exec /usr/local/bin/envdir /etc/relay-ctrl \
    /usr/local/bin/relay-ctrl-chdir \
    /usr/local/bin/softlimit -m 3000000 \
    /usr/local/bin/tcpserver -R -H 0 995 \
    /usr/local/sbin/stunnel /usr/local/etc/stunnel/pop3s.conf
--- /var/qmail/supervise/pop3ds/run END ---