Validate bounce_classifier.toml

Hello there !

I searched on the documentation and here, but didnt found anything relating to my issue.

I wanted to know if there is a way to validate bounce_classifier.toml before pushing my file on testing / staging.

I’m seeking for something that can tell if the syntax is wrong somewhere, or if it will broke Kumo.

Thanks !

My developper seems to say that it goes only for the shaping, and can’t validate my .toml

Ohhh… sorry assumed it was shaping, that’s the usual question.

Ohh, sorry ^^’ Yeah, its really about validating that my bounce_classifier.toml will be accepted

There’s not a utility for that currently, so it’s more a matter of a QA box.

You can use something like https://www.toml-lint.com/ for checking that it’s valid TOML.

As for the regexes, that’s a challenge since we don’t really know what bounces it will classify, you’d really have to build out a test harness for that kind of thing if it’s a concern, where it takes a list of bounces and runs them against the file, then lets you know which bounces didn’t get classified and which rules didn’t get hit.

Ultimately I’d say you validate the TOML, load it in on one KumoMTA node, check that your unclassified bounces in the logs aren’t excessive after a while, and load it to the rest of the nodes.

Yeah, already checked that
Then my option will be to push in staging and pray !

… and then contribute your new rules back to the community file. :wink:

sure thing !

I’ll do Mike :slightly_smiling_face:

Good way to give back.

(other than sponsorship of course ;p)

(hahaha)

Should I create a branch on Kumo’s Git or just give the file to you when its tested and validated ?

Ideally fork the repo, change the community file, do a pull request.

I’ll check this out then, thanks !