Thanks to Vsevolod and Andrew for pointing out the finer details of changing rspam behavior using settings module. I have tested to show it works good.
When move same configuration to HTTP service, Rspamd acts unpredictably. Same configuration of threshold override sometimes loads and process correctly, sometime thresholds are ignored. I can't find what is the cause after many experiments changing thresholds (but always keep them in order/relative) and reloading rspamd.
I can see when custom threshold scoring is working because I see my reject threshold in log:
default: F (no action): [1.05/7.00]
Then after test change *only* the thresholds (and reload), its ignored, I see default reject threshold:
default: F (no action): [2.85/15.00]
I change back to the custom threshold scoring that worked above (and reload), but still ignored!
Confirmed loaded settings after reload:
#27201(controller) <4ud1gp>; lua; settings.lua:533: loaded 2 elements of settings
Also tried full rspamd restart, doesn't help
rspamadm configdump cannot help because it only shows URL of HTTP service. Is there another way to see parsed config loaded from HTTP service?
I saw this once before when using /etc/rspamd/rspamd.conf.local but I thought it was a configuration mistake, now I think rspamd workers or something is acting strange
Example of HTTP service content:
test_setting {
priority = high;
rcpt = "user";
symbols [
"TEST_SETTING"
]
apply "default" {
actions {
reject = 7.00;
"add header" = 5.00;
greylist = 3.00;
}
}
}