Edit shaping.toml | [["default".automation]]

Hi i have a question for shaping.toml

We are trying to import records for [[“default”.automation]] that we have on other sending systems. In some cases we have an example:
rejected for *reputation

is a separator, is it possible to put it in KumoMTA the same research configuration?
Thx
Erik

Can you show a full sample pls?

Sure:
=>block_patterns

5.7.1
blacklist
block
list
blocked
dnsbl
ip is rejected
policy rejection
ratelimit
rejected due to
reputation
sender denied
spamrl
uceprotect

This is the list of errors for Block

black*list

rate*limit

rejected due to * reputation

And the desired action?

we need to detect the string with:
“string” * “string”

and after we block with the actions

You would use https://docs.kumomta.com/userguide/configuration/trafficshapingautomation to configure automated actions.

That lets you define regexes and actions.

Yes we use this, but we need to find string with cut in the middle

So what regex to use?

Start with black and finish with list

black.*list

.*

string_start.*string_end
correct?

Yeah, in regex it means match any number of any character.

Thanks a lot @yearning-hyena !

You’re welcome!