qpsmtpd/run
2012-04-29 02:01:14 -07:00

12 lines
322 B
Bash
Executable File

#!/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