/[smeserver]/rpms/qpsmtpd/sme9/qpsmtpd-0.96-bz10111-whitelist.patch
ViewVC logotype

Contents of /rpms/qpsmtpd/sme9/qpsmtpd-0.96-bz10111-whitelist.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Mon Feb 27 22:07:06 2017 UTC (7 years, 2 months ago) by unnilennium
Branch: MAIN
CVS Tags: qpsmtpd-0_96-10_el6_sme, qpsmtpd-0_96-8_el6_sme, qpsmtpd-0_96-9_el6_sme, qpsmtpd-0_96-11_el6_sme, HEAD
* Mon Feb 27 2017 Jean-Philipe Pialasse <tests@pialasse.com> -1.sme
- fix whitelist plugin to support helo with naughty rejecting at mail stage [SME: 10111]

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 }

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed