When I am trying to use the requeue function in the lastest stable build it is not working.
Hey there @youthful-zorse, while we would like to respond to every question raised here, the frequency and nature of your questions are far beyond what we at Kumo Corp can support without financial support from your organization.
You may continue to ask questions in the hope that someone from the broader community will help, but you should expect that Kumo Corp will not spend any time beyond a cursory glance to see if your questions are well-qualified and can be easily dealt with.
kumo.on('requeue_message', function(msg)
local queue = msg:get_queue_name()
print("REQUEUE FUNCTION-1",queue)
if queue ~= 'cmp.mails.com@gamil.com' and msg:num_attempts() >= 1 then
-- Re-route to alternative infra to manage the rest of the send
local header_from_domain = msg:from_header().domain
print('DOMAIN', header_from_domain)
msg:set_meta('tenant', 'ses-1719-' .. header_from_domain)
msg:set_meta('routing_domain', tenant_config['routing_host'])
-- clear any scheduling constraints, as they do not apply
-- when sending via a smart host
msg:set_scheduling(nil)
print("REQUEUE FUNCTION-2",queue)
end
end)
build version : kcli 2024.06.10-84e84b89
Thank you for providing the above Lua snippet, but it really does not tell what is “not working”. Please provide all the details along with the requested information we always ask for…
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.
https://cal.com/team/kumomta/paid-support-session?date=2024-01-10&month=2024-01