I’m trying to figure out how to set the egress_pool and where to configure this code example within KumoMTA. Currently, I have this in its own lua file and including into init.lua. Validation passes but I do not get the desired effect. Thanks in advance.
Includes are a little different in Lua, I’d suggest for the moment you start by moving that code to your init.lua.
Thanks. I had tried that earlier with no success. Is there a specific place in the init.lua where this would need to be?
I should also mention that at this time, our application isn’t setting an X-Tenant header which seems to be easier way to accomplish this.
Follow the pattern of the example config in the config section of the user guide for order. I’m on mobile so I can’t link direct.
kumo.on('get_queue_config', function(domain, tenant, campaign)
local selected_pool = "default_pool"
if domain == "from_his_domain.com" then
selected_pool = "pool_tier3"
local params = {
egress_pool = selected_pool,
retry_interval = '5 minutes',
max_retry_interval = '4 hour',
max_age = '5 days'
}
return kumo.make_queue_config(params)
end)
How about something like this? I didn’t try and I don’t use Lua that much, so check the syntax for any issues, etc.


