Hey there @helpful-emu, 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.
Is this something you can only do via email address? Can you add headers to the messages? If so you can use the queues helper to assign based on a tenant header, and each tenant can have its own Egress_Pool assigned.
Can you please explain this in a detailed manner? and please provide an example if you can, so it is easier for me to understand.
I’m still asking you to explain your question in a more detailed manner.
I’ll explain again about my requirement and mail flow.
Mail flow:
Main Mail Server → KumoMTA (Relay Server) → Recipient (Gmail, Outlook, etc.)
Objective:
First 10 users (user1-user10): Send through IP1.
Next 10 users (user11-user20): Send through IP2.
And so on.
KumoMTA should select the sending IP based on the user.
But this time there is only a single domain but users are hundreds now. So it has to be based on the email only.
Why would different users on the same domain use different IPs? Domain reputation is not per-mailbox, you may as well round-robin those 10 users since they use the same domain.
This is our requirement: we’ll be assigning an ehlo_domain in the sources.toml file. For every 100 users, there will be one IP address and one corresponding ehlo_domain.
I’d suggest adding a header to identify them. That way you can use the queues helper tenant header.
But there will be thousands of users here , so that will make a very long queues helper file. Is there any alternative to this?
This is part of the operation of any major ESP, config management. You can write the queues helper config in JSON to make it easier to automate.
Can you give me any example how can I do this using queue helpers? Like from the JSON you mentioned, make it to fetch the email from the headers.
You’re looking for Configuring Queue Management - KumoMTA Docs and the tenant_header part in particular.
Can you tell anything further in this I am still unable to figure it out. How should I define it user-specific.
What have you tried so far?
I tried doing it with JSON form of queues helper. But I couldn’t build a logic to work it on the basis of user.
I still don’t follow your logic for assignment.
I am still quite unclear as to your actual requirements. What are you referring to as a “user”? Is that a FROM address? or Tenant? Customer ID?
Why would you want to assign a random IP as opposed to round Robin through a range of IPs?
Will all those “users” be using the same sending domain?
What is the specific use case? It does not sound like notifications or marketing.