[svn:qpsmtpd] rev 478 - in trunk: . lib/Qpsmtpd
[email protected] 6 Jul 2005 22:22:29 -0000
| Newsgroups | perl.cvs.qpsmtpd |
|---|---|
| Message-ID | <[email protected]> |
Author: ask
Date: Wed Jul 6 15:22:29 2005
New Revision: 478
Modified:
trunk/Changes
trunk/README.plugins
trunk/lib/Qpsmtpd/SMTP.pm
Log:
return 500 rather than 521 for DENY in the unrecognized_command hook
Modified: trunk/Changes
==============================================================================
--- trunk/Changes (original)
+++ trunk/Changes Wed Jul 6 15:22:29 2005
@@ -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
Modified: trunk/README.plugins
==============================================================================
--- trunk/README.plugins (original)
+++ trunk/README.plugins Wed Jul 6 15:22:29 2005
@@ -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'
Modified: trunk/lib/Qpsmtpd/SMTP.pm
==============================================================================
--- trunk/lib/Qpsmtpd/SMTP.pm (original)
+++ trunk/lib/Qpsmtpd/SMTP.pm Wed Jul 6 15:22:29 2005
@@ -57,7 +57,7 @@ sub dispatch {
$self->disconnect;
}
elsif ($rc == DENY) {
- $self->respond(521, $msg);
+ $self->respond(500, $msg);
}
elsif ($rc == DONE) {
1;