return 500 rather than 521 for DENY in the unrecognized_command hook
git-svn-id: https://svn.perl.org/qpsmtpd/trunk@478 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
7711e5a024
commit
254b4fd2b2
4
Changes
4
Changes
@ -14,8 +14,8 @@
|
|||||||
when disconncting with a temporary failure, return 421 rather than
|
when disconncting with a temporary failure, return 421 rather than
|
||||||
450 or 451. (Peter J. Holzer)
|
450 or 451. (Peter J. Holzer)
|
||||||
|
|
||||||
The unrecognized_command hook now understands the DENY_DISCONNECT return
|
The unrecognized_command hook now uses DENY_DISCONNECT return
|
||||||
and the DENY return is deprecated.
|
for disconnecting the user.
|
||||||
|
|
||||||
Updated documentation
|
Updated documentation
|
||||||
|
|
||||||
|
@ -190,7 +190,7 @@ Works like the "connect" hook.
|
|||||||
Called when we get a command that isn't recognized.
|
Called when we get a command that isn't recognized.
|
||||||
|
|
||||||
DENY_DISCONNECT - Return 521 and disconnect the client
|
DENY_DISCONNECT - Return 521 and disconnect the client
|
||||||
DENY - Return 521
|
DENY - Return 500
|
||||||
DONE - Qpsmtpd won't do anything; the plugin responded
|
DONE - Qpsmtpd won't do anything; the plugin responded
|
||||||
Anything else - Return '500 Unrecognized command'
|
Anything else - Return '500 Unrecognized command'
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ sub dispatch {
|
|||||||
$self->disconnect;
|
$self->disconnect;
|
||||||
}
|
}
|
||||||
elsif ($rc == DENY) {
|
elsif ($rc == DENY) {
|
||||||
$self->respond(521, $msg);
|
$self->respond(500, $msg);
|
||||||
}
|
}
|
||||||
elsif ($rc == DONE) {
|
elsif ($rc == DONE) {
|
||||||
1;
|
1;
|
||||||
|
Loading…
Reference in New Issue
Block a user