[Rspamd-Users] Multimap combined rules not working

Gerald Galster list+rspamd at gcore.biz
Mon Jan 22 14:13:16 UTC 2024


> I'm trying to set a Combined rule (From+Rcpt) in Multimap, but I'm receiving this error message:
> 
> ...
> 
> # Jan 21 11:14:29 MyHostname docker_rspamd[935]: 2024-01-21 11:14:29 #1(main) <i1wecq>; lua; lua_maps_expressions.lua:126: cannot add maps combination for module multimap: required elements are missing
> # Jan 21 11:14:29 MyHostname docker_rspamd[935]: 2024-01-21 11:14:29 #1(main) <i1wecq>; lua; multimap.lua:1211: cannot add combined map for COMB_FROM_RCPT
> # Jan 21 11:14:29 MyHostname docker_rspamd[935]: 2024-01-21 11:14:29 #1(main) <i1wecq>; lua; multimap.lua:1334: cannot add rule: "COMB_FROM_RCPT"
> 
> ...
> 
> 
> Do I have to enable some module o something like that?

You should check your config. From lua code:

   if not obj or not obj.rules or not obj.expression then
   rspamd_logger.errx(cfg, 'cannot add maps combination for module %s: required elements are missing',

So any of object, rule or expression is missing.

See examples: https://rspamd.com/doc/modules/multimap.html#combined-maps
and the hint "Combined maps support merely selectors syntax, not general multimap rules".

As an alternative you can use force_actions to combine symbols:
https://rspamd.com/doc/modules/force_actions.html

Best regards,
Gerald


More information about the Users mailing list