[Rspamd-Users] multimap rule priority

d tbsky tbskyd at gmail.com
Thu Mar 17 02:48:01 UTC 2022


Alexander Moisseev via Users <users at lists.rspamd.com>
>
> On 16.03.2022 19:41, d tbsky wrote:
> > Hi:
> >      I try to use multimap to setup some white-list and black-list.  I
> > want to use pre-filter mode so I can define "action accept"  for my
> > white-list and "action reject" for my black-list. but I found there is
> > situations which apply to both rules. can I make sure which rule has
> > higher priority? can I use "weight" at the symbol or some kind of
> > method?
> >
> >       thanks a lot for your help.
>
> You can use conditional maps[1].
>
> SYMBOL_BLACK {
>      require_symbols = "!SYMBOL_WHITE";
>      ...
> }

thanks for the hint!
I have seen this but not sure if it will work under pre-filter mode. I
made my bl and wl list like document example, so I have three bl and
three wl.
can I aggregate them to one big black list and one white list for
condition? or should I set condition one by one like:

  SYMBOL_BLACK_1 {
     require_symbols = "!SYMBOL_WHITE_1 & !SYMBOL_WHITE_2 & !SYMBOL_WHITE_3" ;
}

 BTW when I test the possibility, I got a feeling that the rule
priority is related to symbol name. it seems last order will got
higher priority. but maybe it is not true.


More information about the Users mailing list