Stunnel.org  
   
Home
About
News
Faq
Examples
Download
Patches
Support
Related
<Examples>

Setting up Stunnel for vpopmail with DJB's tcpserver

From: "Arne Banger" <cpax@ad.wox.org>

I managed to solve the startup script for tcpserver and vpopmail.
It should look like this and nothing else.  (All in one line)

  #!/bin/sh
  exec env - PATH="/var/qmail/bin:$PATH" /usr/local/bin/tcpserver -R -H -D -c
  100 -v -u vpopmail -g vchkpw 0 pop3s \
  /usr/local/sbin/stunnel -T pop3s -p /etc/stunnel.pem -l
  /home/qmail/bin/qmail-popup example.com /home/vpopmail/bin/vchkpw \
  /home/qmail/bin/qmail-pop3d Maildir 2>&1



Works fine in olexpress and ol2k. Some hints if it doesent work, check
settings under internet explorer, under the advanced tab check under
security settings, should be both 'Use SSL' options, and NOT tls.

I have it running, but i believe it is not in daemon mode, it produces
al lot of overhead.  Is there a way to get stunnel in daemon mode with
less overhead but started by tcpserver?

Cheers AB


From: Technion <Technion@wiretapped.net> I found the example [above] on using stunnel with tcpserver didn't work at all when adapted to checkpasswd. Here is an appropriate version I found on about page 90 of a google search in an obscure mailing list post about something else: exec /opt/daemontools/softlimit -m 10000000 /usr/local/bin/tcpserver \ -DRHv -l 0 0 995 /usr/sbin/stunnel -f -p /etc/stunnel.pem \ -l /var/qmail/bin/qmail-popup -- qmail-popup gash.playsch00l.com \ /bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir 2>&1 I have no idea why that -- makes it work... if anybody does I'd be interested to hear it.