Fix logging back to constants again
git-svn-id: https://svn.perl.org/qpsmtpd/trunk@231 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
bbc36670f7
commit
1bf1ba83a8
@ -13,14 +13,14 @@ sub connect_handler {
|
||||
# perform RBLSMTPD checks to mimic Dan Bernstein's rblsmtpd
|
||||
if (defined($ENV{'RBLSMTPD'})) {
|
||||
if ($ENV{'RBLSMTPD'} ne '') {
|
||||
$self->log(1, "RBLSMTPD=\"$ENV{'RBLSMTPD'}\" for $remote_ip");
|
||||
$self->log(LOGINFO, "RBLSMTPD=\"$ENV{'RBLSMTPD'}\" for $remote_ip");
|
||||
return DECLINED;
|
||||
} else {
|
||||
$self->log(1, "RBLSMTPD set, but empty for $remote_ip");
|
||||
$self->log(LOGINFO, "RBLSMTPD set, but empty for $remote_ip");
|
||||
return DECLINED;
|
||||
}
|
||||
} else {
|
||||
$self->log(1, "RBLSMTPD not set for $remote_ip");
|
||||
$self->log(LOGDEBUG, "RBLSMTPD not set for $remote_ip");
|
||||
}
|
||||
|
||||
my $allow = grep { s/\.?$/./; $_ eq substr($remote_ip . '.', 0, length $_) } $self->qp->config('dnsbl_allow');
|
||||
|
Loading…
Reference in New Issue
Block a user