2002-02-08 12:02:19 +01:00
|
|
|
#!/bin/sh
|
2012-05-11 07:50:05 +02:00
|
|
|
#
|
|
|
|
# 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`
|
2012-06-30 02:30:06 +02:00
|
|
|
PORT=25
|
2009-02-28 04:14:17 +01:00
|
|
|
LANG=C
|
2012-05-11 07:50:05 +02:00
|
|
|
|
|
|
|
# Remove the comments between the <start> and <end> tags to choose a
|
|
|
|
# deployment model. See also: http://wiki.qpsmtpd.org/deploy:start
|
|
|
|
|
|
|
|
# <start tcpserver>
|
|
|
|
exec $BIN/softlimit -m $MAXRAM \
|
|
|
|
$BIN/tcpserver -c 10 -v -R -p \
|
2012-06-30 02:30:06 +02:00
|
|
|
-u $QMAILDUID -g $NOFILESGID $IP $PORT \
|
2002-02-08 12:02:19 +01:00
|
|
|
./qpsmtpd 2>&1
|
2012-05-11 07:50:05 +02:00
|
|
|
# <end tcpserver>
|
|
|
|
|
2002-02-08 12:02:19 +01:00
|
|
|
|
2012-05-11 07:50:05 +02:00
|
|
|
# <start forkserver>
|
|
|
|
#exec 2>&1 \
|
|
|
|
#sh -c "
|
|
|
|
# exec $BIN/softlimit -m $MAXRAM \
|
|
|
|
# $PERL -T ./qpsmtpd-forkserver \
|
|
|
|
# --listen-address $IP \
|
2012-06-30 02:30:06 +02:00
|
|
|
# --port $PORT \
|
2012-11-19 06:09:08 +01:00
|
|
|
# --port 587 \
|
2012-05-11 07:50:05 +02:00
|
|
|
# --limit-connections 15 \
|
|
|
|
# --max-from-ip 5 \
|
|
|
|
# --user $QPUSER
|
|
|
|
#"
|
|
|
|
# <end forkserver>
|