qpsmtpd/run

12 lines
322 B
Plaintext
Raw Normal View History

#!/bin/sh
QMAILDUID=`id -u smtpd`
NOFILESGID=`id -g smtpd`
LANG=C
# by default limit qpsmtpd to 150MB memory which should be several
# times what is needed.
exec /usr/local/bin/softlimit -m 150000000 \
/usr/local/bin/tcpserver -c 10 -v -R -p \
-u $QMAILDUID -g $NOFILESGID `head -1 config/IP` smtp \
./qpsmtpd 2>&1