/[smeserver]/rpms/qpsmtpd/sme10/qpsmtpd-0.96-bz10112-whitelist.patch
ViewVC logotype

Annotation of /rpms/qpsmtpd/sme10/qpsmtpd-0.96-bz10112-whitelist.patch

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


Revision 1.1 - (hide annotations) (download)
Mon Feb 27 22:11:30 2017 UTC (7 years, 8 months ago) by unnilennium
Branch: MAIN
CVS Tags: qpsmtpd-0_96-21_el7_sme, qpsmtpd-0_96-19_el7_sme, qpsmtpd-0_96-23_el7_sme, qpsmtpd-0_96-20_el7_sme, qpsmtpd-0_96-22_el7_sme, qpsmtpd-0_96-16_el7_sme, qpsmtpd-0_96-17_el7_sme, qpsmtpd-0_96-18_el7_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: 10112]

1 unnilennium 1.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