Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

invalid_localhost test in helo plugin?

2 views
Skip to first unread message

salv...@gmx.ch

unread,
Jan 3, 2015, 5:15:03 PM1/3/15
to qps...@perl.org
How can this ever pass when receiving mail from the outside?

sub invalid_localhost {
my ($self, $host) = @_;
if ($self->is_localhost($self->qp->connection->remote_ip)) {
$self->log(LOGDEBUG, "pass, is localhost");
return;
}
if ($host && lc $host eq 'localhost') {
$self->log(LOGDEBUG, "pass, host is localhost");
return;
};

#$self->log( LOGINFO, "fail, not localhost" );
return "You are not localhost", "invalid localhost";
}

What is the relation between the helo and fcrdns plugins? Isn't helo doing everything and more than fcrdns does?
0 new messages