From: "Japheth Cleaver" Subject: Stunnel tip for qmail-{pop3d,smtpd}-ssl Date: Mon, 05 Dec 2005 09:01:28 -0800 After searching for a way to easily bring up SSL-enabled versions of these services without messing up my existing means of configuration too much, I came upon a rather simple solution for stunnel (which seems to give people fits sometimes). Simply create a wrapper script named qmail-stunnel-wrapper.sh like so: --- snip --- #!/bin/ash SSLCERT=$1; shift exec /usr/sbin/stunnel -fd 3 3<&1 7>&1 This way you can keep your existing configuration in the same exec-pipeline method of the run files -- like the qmail-pop3d-wrapper and FD7 redirect -- without having to make a separate stunnel config file for each SSL service. Plus your qmail-smtpd-ssl service can be run using the same wrapper. Note that you need stunnel v4.05 or higher for this to work. Hope this is useful for someone! Regards, Japheth Cleaver cleaver rohan.sdsu.edu / cleaver redwire.net