From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 20F911396D0 for ; Wed, 6 Sep 2017 13:28:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6B4A9E0DA4; Wed, 6 Sep 2017 13:28:06 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3B14FE0DA4 for ; Wed, 6 Sep 2017 13:28:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D91C833BEBE for ; Wed, 6 Sep 2017 13:28:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F02C98B8F for ; Wed, 6 Sep 2017 13:28:01 +0000 (UTC) From: "Michael Orlitzky" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Orlitzky" Message-ID: <1504704298.e8574b3cd2fbda95678d9f3c0bb8e11ded7ba0a5.mjo@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/amavis-logwatch/, net-mail/amavis-logwatch/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-mail/amavis-logwatch/amavis-logwatch-1.51.03-r1.ebuild net-mail/amavis-logwatch/amavis-logwatch-1.51.03-r2.ebuild net-mail/amavis-logwatch/files/unchecked-encrypted.patch X-VCS-Directories: net-mail/amavis-logwatch/files/ net-mail/amavis-logwatch/ X-VCS-Committer: mjo X-VCS-Committer-Name: Michael Orlitzky X-VCS-Revision: e8574b3cd2fbda95678d9f3c0bb8e11ded7ba0a5 X-VCS-Branch: master Date: Wed, 6 Sep 2017 13:28:01 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: cd07aa17-9503-447f-a390-19f160dce3e3 X-Archives-Hash: 199c894518dbb74d07732f29e9c98c5a commit: e8574b3cd2fbda95678d9f3c0bb8e11ded7ba0a5 Author: Michael Orlitzky gentoo org> AuthorDate: Wed Sep 6 13:24:34 2017 +0000 Commit: Michael Orlitzky gentoo org> CommitDate: Wed Sep 6 13:24:58 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8574b3c net-mail/amavis-logwatch: new revision with another bugfix patch. Package-Manager: Portage-2.3.6, Repoman-2.3.1 ...r1.ebuild => amavis-logwatch-1.51.03-r2.ebuild} | 1 + .../files/unchecked-encrypted.patch | 41 ++++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/net-mail/amavis-logwatch/amavis-logwatch-1.51.03-r1.ebuild b/net-mail/amavis-logwatch/amavis-logwatch-1.51.03-r2.ebuild similarity index 96% rename from net-mail/amavis-logwatch/amavis-logwatch-1.51.03-r1.ebuild rename to net-mail/amavis-logwatch/amavis-logwatch-1.51.03-r2.ebuild index 891d142b26f..3fa4278da7a 100644 --- a/net-mail/amavis-logwatch/amavis-logwatch-1.51.03-r1.ebuild +++ b/net-mail/amavis-logwatch/amavis-logwatch-1.51.03-r2.ebuild @@ -18,6 +18,7 @@ PATCHES=( "${FILESDIR}/redundant-argument-to-sprintf.patch" "${FILESDIR}/ignore-amavis-startup-notifications.patch" "${FILESDIR}/ignore-utf8smtp-lines.patch" + "${FILESDIR}/unchecked-encrypted.patch" ) src_prepare() { diff --git a/net-mail/amavis-logwatch/files/unchecked-encrypted.patch b/net-mail/amavis-logwatch/files/unchecked-encrypted.patch new file mode 100644 index 00000000000..33c2214a2d0 --- /dev/null +++ b/net-mail/amavis-logwatch/files/unchecked-encrypted.patch @@ -0,0 +1,41 @@ +From e9f83dde1b241ce449264db7a517124bb115dd99 Mon Sep 17 00:00:00 2001 +From: Michael Orlitzky +Date: Wed, 6 Sep 2017 09:19:42 -0400 +Subject: [PATCH 1/1] Catch mail that is passed UNCHECKED-ENCRYPTED. + +Some encrypted mail can pass through the system with a log line like, + + (01495-17) Passed UNCHECKED-ENCRYPTED {RelayedTaggedInbound}, ... + +These were unmatched, because the "-ENCRYPTED" suffix is new. One +regular expression and a dictionary have been updated to catch those +lines and dump them into the "unchecked" bin with the rest of the +UNCHECKED lines. +--- + amavis-logwatch | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/amavis-logwatch b/amavis-logwatch +index deb9146..448de3a 100644 +--- a/amavis-logwatch ++++ b/amavis-logwatch +@@ -1799,6 +1799,7 @@ my %ccatmajor_to_sectkey = ( + 'INFECTED' => 'malware', + 'BANNED' => 'bannedname', + 'UNCHECKED' => 'unchecked', ++ 'UNCHECKED-ENCRYPTED' => 'unchecked', + 'SPAM' => 'spam', + 'SPAMMY' => 'spammy', + 'BAD-HEADER' => 'badheader', +@@ -2295,7 +2296,7 @@ while (<>) { + #XXX elsif (($action, $key, $ip, $from, $to) = ( $p1 =~ /^(?:Virus found - quarantined|(?:(Passed|Blocked) )?INFECTED) \(([^\)]+)\),[A-Z .]*(?: \[($re_IP)\])?(?: \[$re_IP\])* [<(]([^>)]*)[>)] -> [(<]([^(<]+)[(>]/o )) + + # the first IP is the envelope sender. +- if ($p1 !~ /^(CLEAN|SPAM(?:MY)?|INFECTED \(.*?\)|BANNED \(.*?\)|BAD-HEADER(?:-\d)?|UNCHECKED|MTA-BLOCKED|OVERSIZED|OTHER|TEMPFAIL)(?: \{[^}]+})?, ([^[]+ )?(?:([^<]+) )?[<(](.*?)[>)] -> ([(<].*?[)>]), (?:.*Hits: ([-+.\d]+))(?:.* size: (\d+))?(?:.* autolearn=(\w+))?/) { ++ if ($p1 !~ /^(CLEAN|SPAM(?:MY)?|INFECTED \(.*?\)|BANNED \(.*?\)|BAD-HEADER(?:-\d)?|UNCHECKED|UNCHECKED-ENCRYPTED|MTA-BLOCKED|OVERSIZED|OTHER|TEMPFAIL)(?: \{[^}]+})?, ([^[]+ )?(?:([^<]+) )?[<(](.*?)[>)] -> ([(<].*?[)>]), (?:.*Hits: ([-+.\d]+))(?:.* size: (\d+))?(?:.* autolearn=(\w+))?/) { + inc_unmatched('passblock'); + next; + } +-- +2.13.0 +