If I try to send a message, regardless whether I provide the X-Tenant header, KumoMTA uses the defaultegress_pool and default-ip.
Trying like this: swaks --to test@example.com -f sender@other.com --server localhost or swaks --to test@example.com -f sender@other.com --server localhost --h-X-Tenant customer-1. In the logs both messages are assigned to the default pool.
It is also strange that I had to add egress_pool to the queue config, but the docs does not mention this.
Hey there @effervescent-porcupi, 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.
Please provide the full init.lua, not just an extract. Where in the docs are you referring to that did not mention adding egress_pool? I’d like to correct that.
You are missing queue_helper:apply(msg) in your kumo.on(‘smtp_server_message_received’, function(msg) event handler. Take a look at the example config at Example Server Policy - KumoMTA Docs to see how it is implemented.
I recommend using the example config as the basis of your install as it covers a lot of the bases.