[Rspamd-Users] Map loadable composite style rules?

Michelle Sullivan michelle at isux.com
Mon Apr 6 12:18:11 UTC 2026


Not quite what I was thinking but possibly completely adaptable or encompasses what I was thinking…

To be a little more explicit .. I have a bunch of multimap configurations with various tokens+scores in each some overlapping some unique.. for example I have well over a thousand matches that will return ‘COMPROMISED_ACCOUNTS’ with most scores being 10.0, but some are 12 some are 25 etc..  I could create a composite rule of ‘COMPROMISED_ACCOUNTS & CLOUDMARK_NOT_SPAM’ give that combo an additional 10.0.. or ’(SUB_KEY_002 | HF_KEY_010) & ! (ES_KEY_392 & WHITELIST_DMARC_SPF_DKIM)’ scores 25.0 where that basically says subject or header from contains ‘flybuys’ but it doesn’t come from a flybuys known and authenticated domain.

SUB_KEY*, HF_KEY*, ES_KEY* are all within multimap map files.  The whitelist (predictably) in the whitelist config and appropriate mapfile.

I asked a number of code examining AIs and they all said ’not possible’ but they also might not have access to all code.

Regards,

Michelle

PS: Thanks for the super fast response Andrew!

> On 6 Apr 2026, at 21:39, Andrew Lewis via Users <users at lists.rspamd.com> wrote:
> 
> Hi Michelle,
> 
> On Mon, 2026-04-06 at 20:31 +1000, Michelle Sullivan wrote:
>> Might have asked this before, but is there any way (or any plans on
>> doing) a composite type ruleset that can be dynamically loadable (eg
>> like loadable via a map) …?
> 
> Something along these lines was added recently:
> https://docs.rspamd.com/modules/multimap/#spamassassin-like-rules
> 
> Best,
> -AL.
> -- 
> Users mailing list
> Users at lists.rspamd.com
> https://lists.rspamd.com/mailman/listinfo/users



More information about the Users mailing list