Fix for plugins returning DONE from HELO/EHLO

We have to return something true, else the client gets an additional
 451 Internal error - try again later - command 'helo' failed unexpectedly
after the plugin's ->respond() message.
This commit is contained in:
Hanno Hecker 2009-03-11 14:18:21 +08:00 committed by Ask Bjørn Hansen
parent f9399950f3
commit 33d8825ecf

View File

@ -162,7 +162,8 @@ sub helo_respond {
my ($self, $rc, $msg, $args) = @_;
my ($hello_host) = @$args;
if ($rc == DONE) {
# do nothing
# do nothing:
1;
} elsif ($rc == DENY) {
$self->respond(550, @$msg);
} elsif ($rc == DENYSOFT) {
@ -198,7 +199,8 @@ sub ehlo_respond {
my ($self, $rc, $msg, $args) = @_;
my ($hello_host) = @$args;
if ($rc == DONE) {
# do nothing
# do nothing:
1;
} elsif ($rc == DENY) {
$self->respond(550, @$msg);
} elsif ($rc == DENYSOFT) {