[Rspamd-Users] Q: adjusting Subject header
Piotr Klaban
post at klaban.torun.pl
Sun Jul 2 19:50:48 UTC 2023
Hi Gerald,
Thank you for the reply. I tested that, but by looking at the milter
connection between rspamd and postfix, no subject is part of communication.
I would not dig deeper, till I will understand how to correcly use rspamd
in milter communication.
Best regards,
Piotr
On Sun, Jun 25, 2023 at 4:49 PM Gerald Galster <list+rspamd at gcore.biz>
wrote:
> > 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
> --
> Users mailing list
> Users at lists.rspamd.com
> https://lists.rspamd.com/mailman/listinfo/users
>
More information about the Users
mailing list