#!/bin/sh
if [ -f /var/qmail/control/defaultdelivery ]; then
defaultdelivery=$(cat /var/qmail/control/defaultdelivery)
else
defaultdelivery=./Maildir/
fi
exec env - PATH="/var/qmail/bin:$PATH" \
chpst -m 50000000 \
qmail-start $defaultdelivery