2013-04-26 01:55:35 +02:00
|
|
|
#!/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 \
|
2013-04-26 03:31:07 +02:00
|
|
|
$PERL -T ./qpsmtpd-forkserver \
|
2013-04-26 01:55:35 +02:00
|
|
|
--listen-address $IP \
|
|
|
|
--port 25 \
|
|
|
|
--port 587 \
|
|
|
|
--limit-connections 15 \
|
|
|
|
--max-from-ip 5 \
|
|
|
|
--user $QPUSER
|
|
|
|
"
|