qpsmtpd/qpsmtpd-0.96-bz10112-whitelist.patch

30 lines
1.2 KiB
Diff

--- qpsmtpd-0.96.old/plugins/whitelist 2017-02-22 23:45:00.000000000 +0100
+++ qpsmtpd-0.96/plugins/whitelist 2017-02-24 02:16:08.000000000 +0100
@@ -175,6 +175,8 @@
for my $h ($self->qp->config('whitelisthelo', $config_arg)) {
if ($helo and lc $h eq lc $helo) {
$self->qp->connection->notes('whitelisthelo', 1);
+ $self->is_naughty(0); # see plugins/naughty
+ $self->adjust_karma(5);
$self->log(2, "helo host $helo in whitelisthelo");
return OK;
}
@@ -202,6 +204,8 @@
if ($addr eq $h or $host eq $h) {
$transaction->notes('whitelistsender', 1);
+ $self->is_naughty(0); # see plugins/naughty
+ $self->adjust_karma(5);
$self->log(2, "envelope sender $addr in whitelistsenders");
return OK;
}
@@ -223,6 +227,8 @@
if ($addr eq $h or $host eq $h) {
my $note = $transaction->notes('whitelistrcpt');
$transaction->notes('whitelistrcpt', ++$note);
+ $self->is_naughty(0); # see plugins/naughty
+ $self->adjust_karma(5);
$self->log(2, "recipient $addr in whitelistrcpt");
return OK;
}