forked from smtpd/qpsmtpd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run
executable file
·38 lines (33 loc) · 944 Bytes
/
run
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/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`
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 smtp \
./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 25 \
# --limit-connections 15 \
# --max-from-ip 5 \
# --user $QPUSER
#"
# <end forkserver>