From michelle at isux.com Mon Apr 6 10:31:12 2026 From: michelle at isux.com (Michelle Sullivan) Date: Mon, 06 Apr 2026 20:31:12 +1000 Subject: [Rspamd-Users] Map loadable composite style rules? Message-ID: <12122A42-C7D1-47C6-AFD8-1923A4C27A69@isux.com> 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) ?? I understand this would make it a late operating module and therefore you might not want it ?mapable? and there could be operational issues such as subscribing to tokens etc, but I could see it being very useful to those who want to adjust a ruleset on the fly without a deploy+reload etc. Me for example, I have a whole load of rules on who can use certain keywords in from headers, subjects and bodies - would be nice to be able to write some composites that can be dynamically changed/loaded. Regards, Michelle From rspamd-users at judo.za.org Mon Apr 6 11:39:36 2026 From: rspamd-users at judo.za.org (Andrew Lewis) Date: Mon, 06 Apr 2026 13:39:36 +0200 Subject: [Rspamd-Users] Map loadable composite style rules? In-Reply-To: <12122A42-C7D1-47C6-AFD8-1923A4C27A69@isux.com> References: <12122A42-C7D1-47C6-AFD8-1923A4C27A69@isux.com> Message-ID: <53f5b6cef4532881dbe48677c738ad0480969098.camel@judo.za.org> 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. From michelle at isux.com Mon Apr 6 12:18:11 2026 From: michelle at isux.com (Michelle Sullivan) Date: Mon, 06 Apr 2026 22:18:11 +1000 Subject: [Rspamd-Users] Map loadable composite style rules? In-Reply-To: <53f5b6cef4532881dbe48677c738ad0480969098.camel@judo.za.org> References: <12122A42-C7D1-47C6-AFD8-1923A4C27A69@isux.com> <53f5b6cef4532881dbe48677c738ad0480969098.camel@judo.za.org> Message-ID: 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 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