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.
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
I reported this upstream now that we have a real bug tracker. See $URL.
This has been fixed in Gentoo for a while (with a patch), and should be fixed in the next upstream release of amavis too.