/[smeserver]/rpms/qpsmtpd/sme8/qpsmtpd-0.84-make-dnsbl-more-whitelist_soft-aware.patch
ViewVC logotype

Contents of /rpms/qpsmtpd/sme8/qpsmtpd-0.84-make-dnsbl-more-whitelist_soft-aware.patch

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


Revision 1.1 - (show annotations) (download)
Fri Dec 26 14:23:15 2014 UTC (9 years, 11 months ago) by stephdl
Branch: MAIN
CVS Tags: qpsmtpd-0_84-9_el5_sme, HEAD
* Fri Dec 26 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 0.84-9.sme
- Modify whitelist_soft transaction to interact with dnsbl filter [SME: 8327]
- by John Crisp <jcrisp@safeandsoundit.co.uk>

1 diff -Nur qpsmtpd-0.84.old/plugins/dnsbl qpsmtpd-0.84.bz8327/plugins/dnsbl
2 --- qpsmtpd-0.84.old/plugins/dnsbl 2014-12-26 14:51:29.018215638 +0100
3 +++ qpsmtpd-0.84.bz8327/plugins/dnsbl 2014-12-26 15:13:01.032091806 +0100
4 @@ -179,6 +179,27 @@
5 }
6
7 my $note = $self->process_sockets;
8 +
9 +# Check for whitelisthelo from whitelist_soft
10 + my $whitehelo = $connection->notes('whitelisthelo');
11 + if ($whitehelo) {
12 + $self->log(LOGINFO, "Whitelisthelo found $whitehelo");
13 + return OK;
14 + }
15 + else {
16 + $self->log(LOGINFO, "Whitelisthelo not found");
17 + }
18 +
19 +# Check for whitelistsender from whitelist_soft
20 + my $whitesender = $transaction->notes('whitelistsender');
21 + if ($whitesender) {
22 + $self->log(LOGINFO, "Whitelistsender found $whitesender");
23 + return OK;
24 + }
25 + else {
26 + $self->log(LOGINFO, "Whitelistsender not found");
27 + }
28 +
29 my $whitelist = $connection->notes('whitelisthost');
30 if ( $note ) {
31 if ( $rcpt->user =~ /^(?:postmaster|abuse|mailer-daemon|root)$/i ) {

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