qpsmtpd/run.tcpserver
Matt Simerson 0b8e4f5ca3 replace run with separate run for the 2 common
deployment methods. Rather than having to edit the run file, it's much easier to rename the run file.
Moved qpsmtpd* into bin/
2013-04-25 19:55:35 -04:00

25 lines
428 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 \
./bin/qpsmtpd 2>&1
# <end tcpserver>