-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: https://svn.perl.org/qpsmtpd/trunk@910 958fd67b-6ff1-0310-b445-bb7760255be9
- Loading branch information
Showing
5 changed files
with
7 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,5 +1,5 @@ | |||
#! /bin/sh | #! /bin/sh | ||
export LOGDIR=./main | export LOGDIR=./main | ||
mkdir -p $LOGDIR | mkdir -p $LOGDIR | ||
exec multilog t s10000000 n40 $LOGDIR | exec multilog t s1000000 n20 $LOGDIR | ||
|
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,42 +1,8 @@ | |||
#!/bin/sh | #!/bin/sh | ||
QMAILDUID=`id -u smtpd` | QMAILDUID=`id -u smtpd` | ||
NOFILESGID=`id -g smtpd` | NOFILESGID=`id -g smtpd` | ||
|
|||
export SLOWROOT=/home/smtpd/slowforward | |||
|
|||
method=forkserver | |||
|
|||
# robert bumped up max-from-ip to 5 to make postfix on x6 happier. dropped connections to 40 from 90 | |||
|
|||
if [ ${method} = "forkserver" ]; then | |||
|
|||
exec /usr/local/bin/softlimit -m 25000000 \ | |||
/pkg/bin/perl -T ./qpsmtpd-forkserver \ | |||
--port 25 \ | |||
--limit-connections 40 \ | |||
--user smtpd \ | |||
--listen-address `head -1 config/IP` \ | |||
--max-from-ip 5 \ | |||
2>&1 | |||
|
|||
elif [ ${method} = "prefork" ]; then | |||
|
|||
exec /usr/local/bin/softlimit -m 25000000 \ | |||
/pkg/bin/perl -T ./qpsmtpd-prefork \ | |||
--port 25 \ | |||
--user smtpd \ | |||
--interface `head -1 config/IP` \ | |||
--max-from-ip 3 \ | |||
--children 90 \ | |||
--idle-children 10 \ | |||
--pretty-child \ | |||
2>&1 | |||
|
|||
else | |||
|
|||
exec /usr/local/bin/softlimit -m 25000000 \ | exec /usr/local/bin/softlimit -m 25000000 \ | ||
/usr/local/bin/tcpserver -c 10 -v -R -p \ | /usr/local/bin/tcpserver -c 10 -v -R -p \ | ||
-u $QMAILDUID -g $NOFILESGID `head -1 config/IP` smtp \ | -u $QMAILDUID -g $NOFILESGID `head -1 config/IP` smtp \ | ||
./qpsmtpd 2>&1 | ./qpsmtpd 2>&1 | ||
|
|
||
fi |