Merge pull request #243 from priyadi/master

Should only reject if host is not localhost but HELO claims to be one
This commit is contained in:
Matt Simerson 2015-12-17 10:17:59 -08:00
commit 00343a48ac

View File

@ -345,7 +345,7 @@ sub invalid_localhost {
$self->log(LOGDEBUG, "pass, is localhost"); $self->log(LOGDEBUG, "pass, is localhost");
return; return;
} }
if ($host && lc $host eq 'localhost') { if ($host && lc $host ne 'localhost') {
$self->log(LOGDEBUG, "pass, host is localhost"); $self->log(LOGDEBUG, "pass, host is localhost");
return; return;
}; };