Mini howto’s about putting ssl on Vpopmail.
My Qmail is running after this guide:
http://www.pipeline.com.au/staff/mbowe/isp/webmail-server.htm
apt-get install stunnel4
mkdir -p /var/log/qmail/pop3d-ssl/
chown -R qmaill.nofiles /var/log/qmail/pop3d-ssl/
mkdir -p /var/qmail/supervise/qmail-pop3d-ssl
mkdir -p /var/qmail/supervise/qmail-pop3d-ssl/log
/var/qmail/supervise/qmail-pop3-ssl/run
#!/bin/sh
exec /usr/local/bin/softlimit -m 4000000
/usr/local/bin/tcpserver -H -R -v -l annsofie.dumdidum.dk -c100 0 995
/usr/sbin/stunnel4 /var/qmail/control/pop3s.conf 2>&1
/var/qmail/supervise/qmail-pop3d-ssl/log/run
#!/bin/sh
# Keep 30 logs of max 10Mb each
# They will get rotated when they reach 10Mb in size,
# or at midnight when our crontab script fires (whichever event comes 1st)
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t s10000000 n30 /var/log/qmail/pop3d-ssl
/var/qmail/control/pop3s.conf
debug = 1
output = /var/log/qmail/stunnel.log
cert = /var/qmail/control/servercert.pem
exec = /var/qmail/bin/qmail-popup
execargs = /var/qmail/bin/qmail-popup annsofie.dumdidum.dk /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir
cd /var/qmail/control/
openssl req -new -x509 -nodes -out servercert.pem -days 3650 -keyout servercert.pem
ln -s /var/qmail/supervise/qmail-pop3d-ssl/ /service/
svc -u /service//qmail-pop3d-ssl