spam_kill_level_maps

Mark Martinec Mark.Martinec+amavis at ijs.si
Tue Apr 26 19:52:59 CEST 2016


On 2016-04-26 00:28, Per olof Ljungmark wrote:
> We would like to have a different kill level for a couple of users, not
> sure how to do that properly.
> 
> Tried
> 
> $sa_kill_level_deflt = 5.2; # triggers spam evasive actions
> 
> @spam_kill_level_maps = (
>  {
>    'adress1 at example.com'   => 4.0,
>    'adress2 at example.com'   => 4.0,
>    'adress3 at example.com'   => 4.0,
>    '.'   => \$sa_kill_level_deflt,
>  }
> );
> 
> But that did not work as expected, default kill level became
> kill=34453251368
> 
> Anyone has a hint please?
> Thanks!


The hash-type lookup does not support delayed dereferencing.
You should use one of the following two variants:

  @spam_kill_level_maps = (
   {
     'adress1 at example.com'   => 4.0,
     'adress2 at example.com'   => 4.0,
     'adress3 at example.com'   => 4.0,
     '.' => $sa_tag_level_deflt,
   },
  );

or (functionally equivalent, but uses a 'constant' lookup
table as a fallback):

  @spam_kill_level_maps = (
   {
     'adress1 at example.com'   => 4.0,
     'adress2 at example.com'   => 4.0,
     'adress3 at example.com'   => 4.0,
   },
   \$sa_kill_level_deflt,
  );


Mark


More information about the amavis-users mailing list