You can use stunnel to encapsulate qmail-pop3d withing SSL.
Find out more about it at http://www.stunnel.org  I use it
with my own certificates generated by OpenSSL.  I also use
it with the vpopmail software on top of qmail, so not
straight qmail, but it works either way.  My script is
based on the vpopmail software but you should be able to
adopt it to just qmail, I think it would just need to have
the vchkpw program replaced with qmail-pop3d's password
checker.

Dave


#!/bin/sh
#
# spop3d        This script starts and stops the SSL wrapped POP3 daemon.
#               Start the daemon after qmail.
# 
# chkconfig: 2345 89 11
# description: SSL-wrapped POP3 Daemon
# processname: stunnel-spop3
#
# selected stunnel options
#       -p pem_file
#       -D debug level, default 5 (0=emerg,...,5=notice,...,7=debug) 
#       -N servicename to be used by tcp wrappers
#       -P /var/run/stunnel-spop3.pid
#       -d [host:]port
#
case "$1" in
  start)
        # Start daemons.
        echo -n "Starting the Secure POP3 daemon: "
        /usr/sbin/stunnel \
                -p /etc/stunnel.key/spop3.pem \
                -D 5 \
                -N spop3 \
                -P /var/run/stunnel.pid \
                -d 995 \
                -s vpopmail -g vchkpw \
                -l /var/qmail/bin/qmail-popup -- qmail-popup
secure.mypop3server.com \
                /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir
2>&1 | \
                /var/qmail/bin/splogger spop3 20 &
        echo "Done."
        ;;
  stop)
        # Stop daemons.
        echo -n "Shutting down the Secure POP3 daemon: "
        kill `cat /var/run/stunnel.pid`
        echo "Done."
        ;;
  restart)
        $0 stop
        $0 start
        ;;
  *)
        echo "Usage: named {start|stop|restart}"
        exit 1
esac

exit 0

-----Original Message-----
From: Vinko Vrsalovic [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 22, 2000 4:47 PM
To: [EMAIL PROTECTED]
Subject: SSL POP3



Is there a SSL based POP3 server for qmail?

-- 
Vinko Vrsalovic B.           +++++++++++++++++++++++++++++++++++++++++
[EMAIL PROTECTED]                       ++  Perche' la tua lingua e mia!, MIA! ++
ICQ: 9299103                 ++              (Mr B.)                ++
Geek code will never         +++++++++++++++++++++++++++++++++++++++++
be available... :-)          [Today's mode:  PSB (Power Saving Brain)] 

Reply via email to