"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.
-Dave