Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 656606 - mail-filter/amavisd-new-2.11.0 - bug in handling logging of email direction when using policy bank
Summary: mail-filter/amavisd-new-2.11.0 - bug in handling logging of email direction w...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Antivirus Team
URL: https://gitlab.com/amavis/amavis/issu...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2018-05-27 06:08 UTC by Alexander Hoogerhuis
Modified: 2019-07-04 13:57 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Hoogerhuis 2018-05-27 06:08:10 UTC
Basically amamvisd-new-2.11.0 has a bug in handling logging of email direction when using policy bank. It has been extensively discussed on the lists related to amavisd-new, but there seems to be little response from the developers.

There is a one line patch in the second post in this thread:
https://lists.amavis.org/pipermail/amavis-users/2018-February/005292.html

--- amavisd.orig	Tue Apr 26 21:24:33 2016
+++ amavisd	Fri Jul  1 01:03:15 2016
@@ -34338,6 +34329,7 @@ sub collect_some_dkim_info($) {
     $sig_ind++;
   }
   Amavis::load_policy_bank($_,$msginfo) for @bank_names;
+  $msginfo->originating(c('originating'));
   $msginfo->dkim_signatures_valid(\@signatures_valid)  if
@signatures_valid;
 # if (ll(5) && $sig_ind > 0) {
 #   # show whichheader fields are covered by which signature

This solves the issue. Please consider making an -r4 and adding this oneliner.
Comment 1 Ralf Glauberman 2018-10-03 15:54:48 UTC
Same bug/root cause as Bug #603582.

There is an improved patch available at https://lists.amavis.org/pipermail/amavis-users/2018-February/005297.html
Comment 2 Michael Orlitzky gentoo-dev 2018-11-15 17:18:02 UTC
I reported this upstream now that we have a real bug tracker. See $URL.
Comment 3 Michael Orlitzky gentoo-dev 2019-07-04 13:57:40 UTC
This has been fixed in Gentoo for a while (with a patch), and should be fixed in the next upstream release of amavis too.