qpsmtpd/run.forkserver
Matt Simerson 791237841b 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-08-05 15:05:37 -07:00

24 lines
487 B
Bash
Executable File

#!/bin/sh
#
QPUSER=smtpd
# limit qpsmtpd to 300MB memory
MAXRAM=300000000
BIN=/usr/local/bin
PERL=/usr/bin/perl
IP=0.0.0.0
LANG=C
# See also: http://wiki.qpsmtpd.org/deploy:start
exec 2>&1 \
sh -c "
exec $BIN/softlimit -m $MAXRAM \
$PERL -T ./bin/qpsmtpd-forkserver \
--listen-address $IP \
--port 25 \
--port 587 \
--limit-connections 15 \
--max-from-ip 5 \
--user $QPUSER
"