1 |
--- qpsmtpd-0.96.old/plugins/whitelist 2017-02-22 23:45:00.000000000 +0100 |
2 |
+++ qpsmtpd-0.96/plugins/whitelist 2017-02-24 02:16:08.000000000 +0100 |
3 |
@@ -175,6 +175,8 @@ |
4 |
for my $h ($self->qp->config('whitelisthelo', $config_arg)) { |
5 |
if ($helo and lc $h eq lc $helo) { |
6 |
$self->qp->connection->notes('whitelisthelo', 1); |
7 |
+ $self->is_naughty(0); # see plugins/naughty |
8 |
+ $self->adjust_karma(5); |
9 |
$self->log(2, "helo host $helo in whitelisthelo"); |
10 |
return OK; |
11 |
} |
12 |
@@ -202,6 +204,8 @@ |
13 |
|
14 |
if ($addr eq $h or $host eq $h) { |
15 |
$transaction->notes('whitelistsender', 1); |
16 |
+ $self->is_naughty(0); # see plugins/naughty |
17 |
+ $self->adjust_karma(5); |
18 |
$self->log(2, "envelope sender $addr in whitelistsenders"); |
19 |
return OK; |
20 |
} |
21 |
@@ -223,6 +227,8 @@ |
22 |
if ($addr eq $h or $host eq $h) { |
23 |
my $note = $transaction->notes('whitelistrcpt'); |
24 |
$transaction->notes('whitelistrcpt', ++$note); |
25 |
+ $self->is_naughty(0); # see plugins/naughty |
26 |
+ $self->adjust_karma(5); |
27 |
$self->log(2, "recipient $addr in whitelistrcpt"); |
28 |
return OK; |
29 |
} |