How to set the queue table which is present in the docs given below
https://docs.kumomta.com/reference/queues/#egress-sources-and-pools
tenant set? campaign set? routing_domain set? Resulting queue name
yes yes no campaign:tenant@domain
yes yes yes campaign:tenant@domain!routing_domain
yes no no tenant@domain
yes no yes tenant@domain!routing_domain
no yes no campaign:@domain
no yes yes campaign:@domain!routing_domain
no no no domain
no no yes domain!routing_domain
I am using swaks and I want to set the queue name routing
so how can I achieve that
I do not understand the question. What you set is what the queue name will be.
I want to set the routing domain quee
domain! routing_domain
I want this to be set
You assign the routing_domain meta item using the msg:set_meta method:
msg:set_meta('routing_domain', 'some.domain')
@free-spirited-yorksh is the only way to do route message??
In what way is that not enough?
understanding the table
like we need set the tenant pass the campaign and pass the routing_domain
So the helper is where you define what X-header is used for the campaign, the default value in queue.toml is X-Campaign.
Users should not pass routing domain, you decide when to change it via lua, like the use case you mentioned.
And the same queues.toml says what header to use for the tenant, which is X-Tenant in the example config.
Ok, so I can not achieve the routing domain by using helper
I have to set it manually
Seeing routing domain via header is not a planned use case for the helper.
S/seeing/setting