void-packages/srcpkgs/sqmail/files/qmail-send/run

11 lines
266 B
Bash
Executable File

#!/bin/sh
exec 2>&1
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