[Rspamd-Users] Q: adjusting Subject header
Gerald Galster
list+rspamd at gcore.biz
Sun Jun 25 14:48:16 UTC 2023
> I try to find a way to adjust header of messages that came from particular
> IP address.
For multiple ips you could define a multimap, create a symbol and work
with that using force_actions.
https://www.rspamd.com/doc/modules/force_actions.html (e.g. the DCC_BULK example)
https://www.rspamd.com/doc/modules/multimap.html
> I set up "local.d/settings.conf" with code:
>
> test_rule {
> id = "test_rule";
> priority = high;
> ip = "172.31.111.111";
> score = 15
> apply {
> R_DUMMY = 999.0;
> actions {
> action = "rewrite subject";
>
> add_header = 0
Try to be consistent with semicolons ^^^
> subject = "*** 111 test *** %s";
> }
> }
> }
Try:
test_rule {
...
apply {
subject = "*** 111 test *** %s";
actions {
"add header" = 0.01;
"rewrite subject" = 0.02;
}
}
}
Best regards,
Gerald
More information about the Users
mailing list