Skip to content

Commit

Permalink
Fix for plugins returning DONE from HELO/EHLO
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vetinari committed Mar 11, 2009
1 parent 6b14b38 commit 25b5cef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Qpsmtpd/SMTP.pm
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 25b5cef

Please sign in to comment.