Please do let me know in how much time init.lua file get refresh, as there is a scenario where I changed the log_dir in th init.lua and didn’t restart the kumomta assuming that it will restart auto and look for new config but it’s not happeing.
Hey there @youthful-zorse, thanks for posting. Please read the “Troubleshooting” and “How to Ask for Help” buttons below. If you would like a 1:1 support session from the KumoMTA team, details are at the “Book a Support Session” button below.
I think we answered that already here: Discord
but you may have done something in your current configs, though you have not shared them so I cannot tell
It’s best to look at why data refreshes:
When an event fires that needs configuration, you implement Lua code like this:
kumo.on(
'get_listener_domain',
listener_domains:setup { '/opt/kumomta/etc/policy/listener_domains.toml' }
)
Any answer you return is cached for a default five minutes by memoize, then when the cache expires the server will re-read and re-cache a given answer.
Log data is in this one:
-- Called On Startup, handles initial configuration
kumo.on('init', function()
It is only called once on startup, so you will have to restart for any changes in your init handler.
Marking this as resolved