1 |
commit: e8574b3cd2fbda95678d9f3c0bb8e11ded7ba0a5 |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 6 13:24:34 2017 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 6 13:24:58 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8574b3c |
7 |
|
8 |
net-mail/amavis-logwatch: new revision with another bugfix patch. |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.1 |
11 |
|
12 |
...r1.ebuild => amavis-logwatch-1.51.03-r2.ebuild} | 1 + |
13 |
.../files/unchecked-encrypted.patch | 41 ++++++++++++++++++++++ |
14 |
2 files changed, 42 insertions(+) |
15 |
|
16 |
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 |
17 |
similarity index 96% |
18 |
rename from net-mail/amavis-logwatch/amavis-logwatch-1.51.03-r1.ebuild |
19 |
rename to net-mail/amavis-logwatch/amavis-logwatch-1.51.03-r2.ebuild |
20 |
index 891d142b26f..3fa4278da7a 100644 |
21 |
--- a/net-mail/amavis-logwatch/amavis-logwatch-1.51.03-r1.ebuild |
22 |
+++ b/net-mail/amavis-logwatch/amavis-logwatch-1.51.03-r2.ebuild |
23 |
@@ -18,6 +18,7 @@ PATCHES=( |
24 |
"${FILESDIR}/redundant-argument-to-sprintf.patch" |
25 |
"${FILESDIR}/ignore-amavis-startup-notifications.patch" |
26 |
"${FILESDIR}/ignore-utf8smtp-lines.patch" |
27 |
+ "${FILESDIR}/unchecked-encrypted.patch" |
28 |
) |
29 |
|
30 |
src_prepare() { |
31 |
|
32 |
diff --git a/net-mail/amavis-logwatch/files/unchecked-encrypted.patch b/net-mail/amavis-logwatch/files/unchecked-encrypted.patch |
33 |
new file mode 100644 |
34 |
index 00000000000..33c2214a2d0 |
35 |
--- /dev/null |
36 |
+++ b/net-mail/amavis-logwatch/files/unchecked-encrypted.patch |
37 |
@@ -0,0 +1,41 @@ |
38 |
+From e9f83dde1b241ce449264db7a517124bb115dd99 Mon Sep 17 00:00:00 2001 |
39 |
+From: Michael Orlitzky <michael@××××××××.com> |
40 |
+Date: Wed, 6 Sep 2017 09:19:42 -0400 |
41 |
+Subject: [PATCH 1/1] Catch mail that is passed UNCHECKED-ENCRYPTED. |
42 |
+ |
43 |
+Some encrypted mail can pass through the system with a log line like, |
44 |
+ |
45 |
+ (01495-17) Passed UNCHECKED-ENCRYPTED {RelayedTaggedInbound}, ... |
46 |
+ |
47 |
+These were unmatched, because the "-ENCRYPTED" suffix is new. One |
48 |
+regular expression and a dictionary have been updated to catch those |
49 |
+lines and dump them into the "unchecked" bin with the rest of the |
50 |
+UNCHECKED lines. |
51 |
+--- |
52 |
+ amavis-logwatch | 3 ++- |
53 |
+ 1 file changed, 2 insertions(+), 1 deletion(-) |
54 |
+ |
55 |
+diff --git a/amavis-logwatch b/amavis-logwatch |
56 |
+index deb9146..448de3a 100644 |
57 |
+--- a/amavis-logwatch |
58 |
++++ b/amavis-logwatch |
59 |
+@@ -1799,6 +1799,7 @@ my %ccatmajor_to_sectkey = ( |
60 |
+ 'INFECTED' => 'malware', |
61 |
+ 'BANNED' => 'bannedname', |
62 |
+ 'UNCHECKED' => 'unchecked', |
63 |
++ 'UNCHECKED-ENCRYPTED' => 'unchecked', |
64 |
+ 'SPAM' => 'spam', |
65 |
+ 'SPAMMY' => 'spammy', |
66 |
+ 'BAD-HEADER' => 'badheader', |
67 |
+@@ -2295,7 +2296,7 @@ while (<>) { |
68 |
+ #XXX elsif (($action, $key, $ip, $from, $to) = ( $p1 =~ /^(?:Virus found - quarantined|(?:(Passed|Blocked) )?INFECTED) \(([^\)]+)\),[A-Z .]*(?: \[($re_IP)\])?(?: \[$re_IP\])* [<(]([^>)]*)[>)] -> [(<]([^(<]+)[(>]/o )) |
69 |
+ |
70 |
+ # the first IP is the envelope sender. |
71 |
+- if ($p1 !~ /^(CLEAN|SPAM(?:MY)?|INFECTED \(.*?\)|BANNED \(.*?\)|BAD-HEADER(?:-\d)?|UNCHECKED|MTA-BLOCKED|OVERSIZED|OTHER|TEMPFAIL)(?: \{[^}]+})?, ([^[]+ )?(?:([^<]+) )?[<(](.*?)[>)] -> ([(<].*?[)>]), (?:.*Hits: ([-+.\d]+))(?:.* size: (\d+))?(?:.* autolearn=(\w+))?/) { |
72 |
++ if ($p1 !~ /^(CLEAN|SPAM(?:MY)?|INFECTED \(.*?\)|BANNED \(.*?\)|BAD-HEADER(?:-\d)?|UNCHECKED|UNCHECKED-ENCRYPTED|MTA-BLOCKED|OVERSIZED|OTHER|TEMPFAIL)(?: \{[^}]+})?, ([^[]+ )?(?:([^<]+) )?[<(](.*?)[>)] -> ([(<].*?[)>]), (?:.*Hits: ([-+.\d]+))(?:.* size: (\d+))?(?:.* autolearn=(\w+))?/) { |
73 |
+ inc_unmatched('passblock'); |
74 |
+ next; |
75 |
+ } |
76 |
+-- |
77 |
+2.13.0 |
78 |
+ |