qpsmtpd/run.tcpserver
Matt Simerson 1e3136a0d0 revert movement of qp bins to bin/
plugin dir, config dir, spool dir, all have different logic about where/how to find their config. The logic needs some untangling and unification before attempting this again.
2013-08-05 15:05:37 -07:00

25 lines
424 B
Bash
Executable File

#!/bin/sh
#
QPUSER=smtpd
# limit qpsmtpd to 300MB memory
MAXRAM=300000000
BIN=/usr/local/bin
PERL=/usr/bin/perl
IP=`head -1 config/IP`
PORT=25
LANG=C
QMAILDUID=`id -u $QPUSER`
NOFILESGID=`id -g $QPUSER`
# See also: http://wiki.qpsmtpd.org/deploy:start
# <start tcpserver>
exec $BIN/softlimit -m $MAXRAM \
$BIN/tcpserver -c 10 -v -R -p \
-u $QMAILDUID -g $NOFILESGID $IP $PORT \
./qpsmtpd 2>&1
# <end tcpserver>