Note: As I now use jms1's combined patch I no longer use this method, but it might be useful someday.

Summary

How to set up an SMTPAUTH submission daemon based on the firewall version of mini-qmail.

This procedure will result in a mini-qmail firewall based installation (hearafter known as miniq) on the same server as a full qmail installation (hearafter known as qmail). Messages submitted by authenticated users go straight to the qmail-queue program of the qmail.

Assumptions

Purpose

Procedure

#!/bin/sh
# qmail-smtpd-smtps/run
MAXCONN=$(cat /var/qmail/control/concurrencyincoming)
IP=[IP ADDRESS]
PORT=465

exec 2>&1
exec chpst -m3000000 \
    sslsvd \
        -vvh \
        -l local-host-name \
        -U qmaild \
        -Z ./cert.pem \
        -c $MAXCONN \
        -C '10:421 Per host concurrency limit reached\r\n' \
        $IP $PORT \
        /var/qmail-auth/bin/qmail-smtpd
            /usr/sbin/some-checkpassword-implementation true