Load 2 shaping.toml file

Please help me to use 2 different shaping.toml file which I have created for my own purpose.

Hey there @youthful-zorse, thanks for posting. To ensure the fastest resolution to your issue, please review the following and follow all the steps:

below is config I am using to load the 2 files.

kumo.on('get_egress_path_config', shaping:setup({'/opt/kumomta/etc/shaping.toml','/opt/kumomta/etc/shaping_1.toml'}))

What is wrog with it? Are you receiving an error of some kind?

nothing it’s loading only shaping-1 toml file only

From the docs:

You can load multiple override files too if you wish, by adding each file name to that table:

– load the community shaping.toml + local settings
kumo.on(
‘get_egress_path_config’,
shaping:setup {
‘/opt/kumomta/etc/shaping.toml’,
‘/opt/kumomta/etc/shaping-generated.json’,
}
)

It looks like you have extra parenthesis there

@faithful-ostrich I have removed extra parenthesis but the our is same

Does your current config look like the one above? And am did you stop and start the process?

yes

kumo.on('get_egress_path_config', shaping:setup{'/opt/kumomta/etc/shaping.toml','/opt/kumomta/etc/shaping_1.toml'})

OK, so a few questions.

  • how do you know only the last file loaded? Do you have a trace or a test of some kind to show that?
  • do you have any Journal logging that shows a loading failure or some debugging to show values from both files?
  • Can you please also post the exact Kumo and Linux versions?

ok

@faithful-ostrich in both the file i have 2 creds and the domain are different for both file when i am sending the mail last config domain is sending the mail

i will share the response soon

give me half an hour

Please also share the actual files you are using. Having your full config would be useful.

okk

@faithful-ostrich please find the files in the link below
https://gist.github.com/anshukla60/a4fd937c0298adec88bbcf2e52580798

Am I to understand from this example, that both domain stanzas are identical, they both target the same destination domain?