#!/bin/sh # # You might want/need to to edit these settings QPUSER=smtpd # limit qpsmtpd to 150MB memory, should be several times what is needed. MAXRAM=150000000 BIN=/usr/local/bin PERL=/usr/bin/perl # You should not need to edit these. QMAILDUID=`id -u $QPUSER` NOFILESGID=`id -g $QPUSER` IP=`head -1 config/IP` PORT=25 LANG=C # Remove the comments between the and tags to choose a # deployment model. See also: http://wiki.qpsmtpd.org/deploy:start # exec $BIN/softlimit -m $MAXRAM \ $BIN/tcpserver -c 10 -v -R -p \ -u $QMAILDUID -g $NOFILESGID $IP $PORT \ ./qpsmtpd 2>&1 # # #exec 2>&1 \ #sh -c " # exec $BIN/softlimit -m $MAXRAM \ # $PERL -T ./qpsmtpd-forkserver \ # --listen-address $IP \ # --port $PORT \ # --limit-connections 15 \ # --max-from-ip 5 \ # --user $QPUSER #" #