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/
This commit is contained in:
parent
f7b00fa677
commit
791237841b
40
run
40
run
@ -1,40 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# You might want/need to to edit these settings
|
||||
QPUSER=smtpd
|
||||
# limit qpsmtpd to 300MB memory
|
||||
MAXRAM=300000000
|
||||
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 <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 \
|
||||
-u $QMAILDUID -g $NOFILESGID $IP $PORT \
|
||||
./qpsmtpd 2>&1
|
||||
# <end tcpserver>
|
||||
|
||||
|
||||
# <start forkserver>
|
||||
#exec 2>&1 \
|
||||
#sh -c "
|
||||
# exec $BIN/softlimit -m $MAXRAM \
|
||||
# $PERL -T ./qpsmtpd-forkserver \
|
||||
# --listen-address $IP \
|
||||
# --port $PORT \
|
||||
# --port 587 \
|
||||
# --limit-connections 15 \
|
||||
# --max-from-ip 5 \
|
||||
# --user $QPUSER
|
||||
#"
|
||||
# <end forkserver>
|
23
run.forkserver
Executable file
23
run.forkserver
Executable file
@ -0,0 +1,23 @@
|
||||
#!/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
|
||||
"
|
24
run.tcpserver
Executable file
24
run.tcpserver
Executable file
@ -0,0 +1,24 @@
|
||||
#!/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>
|
||||
|
Loading…
Reference in New Issue
Block a user