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:
Ask Bjørn Hansen 2005-07-06 22:22:29 +00:00
parent 7711e5a024
commit 254b4fd2b2
3 changed files with 4 additions and 4 deletions

View File

@ -14,8 +14,8 @@
when disconncting with a temporary failure, return 421 rather than
450 or 451. (Peter J. Holzer)
The unrecognized_command hook now understands the DENY_DISCONNECT return
and the DENY return is deprecated.
The unrecognized_command hook now uses DENY_DISCONNECT return
for disconnecting the user.
Updated documentation

View File

@ -190,7 +190,7 @@ Works like the "connect" hook.
Called when we get a command that isn't recognized.
DENY_DISCONNECT - Return 521 and disconnect the client
DENY - Return 521
DENY - Return 500
DONE - Qpsmtpd won't do anything; the plugin responded
Anything else - Return '500 Unrecognized command'

View File

@ -57,7 +57,7 @@ sub dispatch {
$self->disconnect;
}
elsif ($rc == DENY) {
$self->respond(521, $msg);
$self->respond(500, $msg);
}
elsif ($rc == DONE) {
1;