On Mon, Jul 30, 2001 at 09:16:22AM -0400, Dave Sill wrote:
> "Per-fredrik Pollnow (EPK)" <[EMAIL PROTECTED]>
> wrote:
>
> >I have been trying this in some desperate moments to get it to work(and some other
>things) :=) :
> >
> >#!/bin/sh
> >QMAILDUID=`id -u qmaild`
> >NOFILESGID=`id -g qmaild`
> >MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
> >exec /usr/local/bin/softlimit -m 2000000 \
> > /usr/local/bin/tcpserver -v -R -l 0 -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \
> > -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /usr/local/sbin/stunnel -p
>/etc/pem/smtp.pem -l /var/qmail/bin/qmail-smtpd 2>&1
>
> Try something like:
>
> #!/bin/sh
> exec /usr/local/sbin/stunnel -f -p /usr/local/etc/stunnel.pem -d 465 \
> -r 25 2>&1
>
> It proxies the existing SMTP service, so you automatically get
> softlimit, a connection limit, and the qmail-smtpd processes running
> with the right UID/GID. The only problem is that it'll make
> connections look like they came from the local host, so selective
> relaying, et al, won't work.
This is no smart solution IMHO. It is a bit tricky to get stunnel running
under tcpserver, but once set up it is a fine solution. Markus Stumpf (maex)
posted a script for pop3 a few days ago similar to the one I'm using, works
like a charm.
The preferred method for SMTP is via STARTTLS imho, there a patches for that
- spend a few seconds on qmail.org.
--
* Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de *
* Roedingsmarkt 14, 20459 Hamburg, Germany *
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)