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:
parent
f9399950f3
commit
33d8825ecf
@ -162,7 +162,8 @@ sub helo_respond {
|
|||||||
my ($self, $rc, $msg, $args) = @_;
|
my ($self, $rc, $msg, $args) = @_;
|
||||||
my ($hello_host) = @$args;
|
my ($hello_host) = @$args;
|
||||||
if ($rc == DONE) {
|
if ($rc == DONE) {
|
||||||
# do nothing
|
# do nothing:
|
||||||
|
1;
|
||||||
} elsif ($rc == DENY) {
|
} elsif ($rc == DENY) {
|
||||||
$self->respond(550, @$msg);
|
$self->respond(550, @$msg);
|
||||||
} elsif ($rc == DENYSOFT) {
|
} elsif ($rc == DENYSOFT) {
|
||||||
@ -198,7 +199,8 @@ sub ehlo_respond {
|
|||||||
my ($self, $rc, $msg, $args) = @_;
|
my ($self, $rc, $msg, $args) = @_;
|
||||||
my ($hello_host) = @$args;
|
my ($hello_host) = @$args;
|
||||||
if ($rc == DONE) {
|
if ($rc == DONE) {
|
||||||
# do nothing
|
# do nothing:
|
||||||
|
1;
|
||||||
} elsif ($rc == DENY) {
|
} elsif ($rc == DENY) {
|
||||||
$self->respond(550, @$msg);
|
$self->respond(550, @$msg);
|
||||||
} elsif ($rc == DENYSOFT) {
|
} elsif ($rc == DENYSOFT) {
|
||||||
|
Loading…
Reference in New Issue
Block a user