On Wed, Apr 22, 2020 at 01:40:32PM +0300, Henrik K wrote: > > Actually I found the problem, looking at my locally patched amavisd.. > > The patch is missing one call. > > Look for string > > # load policy banks from the 'client_ipaddr_policy' lookup > > ... there's two of those > > But this first one was missing the $msginfo->originating call... this is > inside the check_ampdp_policy function which I think is used with > amavisd-milter > > # load policy banks from the 'client_ipaddr_policy' lookup > Amavis::load_policy_bank($_,$msginfo) for @bank_names_cl; > $msginfo->originating(c('originating')); > # additional banks from the request > Amavis::load_policy_bank(untaint($_),$msginfo) for @$bank_names_ref; > > I'll investigate a bit more how to do this the most clean way, but adding > that $msginfo->originating(c('originating')); will make it work..
Bug filed: https://gitlab.com/amavis/amavis/-/issues/61