From: Jim Winstead
Subject: default port for qpsmtpd-forkserver Date: Sun, 28 Nov 2004 10:14:20 -0800 Message-ID: <20041128181420.GA17602@trainedmonkey.com> it's a minor thing, but the default port for qpsmtpd-forkserver is 2525 in the code, but it claims to be 25 in the usage text. also, the $MAXCONNIP was not settable from the command line. git-svn-id: https://svn.perl.org/qpsmtpd/trunk@354 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
ddc945f8f6
commit
22a1d99981
@ -27,9 +27,10 @@ sub usage {
|
|||||||
print <<"EOT";
|
print <<"EOT";
|
||||||
usage: qpsmtpd-forkserver [ options ]
|
usage: qpsmtpd-forkserver [ options ]
|
||||||
-l, --listen-address addr : listen on a specific address; default 0.0.0.0
|
-l, --listen-address addr : listen on a specific address; default 0.0.0.0
|
||||||
-p, --port P : listen on a specific port; default 25
|
-p, --port P : listen on a specific port; default 2525
|
||||||
-c, --limit-connections N : limit concurrent connections to N; default 15
|
-c, --limit-connections N : limit concurrent connections to N; default 15
|
||||||
-u, --user U : run as a particular user (defualt 'smtpd')
|
-u, --user U : run as a particular user (defualt 'smtpd')
|
||||||
|
-m, --max-from-ip M : limit connections from a single IP; default 5
|
||||||
EOT
|
EOT
|
||||||
exit 0;
|
exit 0;
|
||||||
}
|
}
|
||||||
@ -37,6 +38,7 @@ EOT
|
|||||||
GetOptions('h|help' => \&usage,
|
GetOptions('h|help' => \&usage,
|
||||||
'l|listen-address=s' => \$LOCALADDR,
|
'l|listen-address=s' => \$LOCALADDR,
|
||||||
'c|limit-connections=i' => \$MAXCONN,
|
'c|limit-connections=i' => \$MAXCONN,
|
||||||
|
'm|max-from-ip=i' => \$MAXCONNIP,
|
||||||
'p|port=i' => \$PORT,
|
'p|port=i' => \$PORT,
|
||||||
'u|user=s' => \$USER) || &usage;
|
'u|user=s' => \$USER) || &usage;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user