Set different IPs

I am using this configuration, when I am sending the test email I am receving the mail from 10.4.1.71

which is not being defined in my configuration

egress_pool=“unspecified” my egress pool is unspecified all the time

Ashu I suggest it’s time to set aside writing your own Lua and use the Helpers.

@youthful-zorse use the example policy instead.

Follow the instructions in the comments of that policy, making sure to go to the docs pages listed so you can get the TOML files in place, then just edit the TOML files.

I have tried that as well

but the result is same

Then one more time I’ll point you at Configuring Queue Management - KumoMTA Docs as I did previously in the thread.

ok I am trying

Failing that may I suggest https://cal.com/team/kumomta/paid-support-session

okay

I have used all the toml file but my message is not going

@youthful-zorse every time you don’t provide details about your full config you again delay resolution. If you want resolution either always provide full details, or book a paid support session where you can screen share.

really sorry mike I forgot to do so

- Configure source IPs.
local sources = require 'policy-extras.sources'
sources:setup ({ '/opt/kumomta/etc/sources.toml' })


local queue_module = require 'policy-extras.queue'
local queue_helper =   queue_module:setup ({ '/opt/kumomta/etc/policy/queues.toml' })
[source."ip-1"]
source_address = "10.4.1.73"

[source."ip-2"]
source_address = "10.4.1.74"

[source."ip-3"]
source_address = "10.4.1.75"

# Pool containing just ip-1, which has weight=1
[pool."BestReputation"]
[pool."BestReputation"."ip-1"]

# Pool with multiple ips
[pool-1."MediumReputation"]

[pool-1."MediumReputation"."ip-2"]
weight = 2

# We're warming up ip-3, so use it less frequently than ip-2
[pool-1."MediumReputation"."ip-3"]
weight = 1
# Allow optional scheduled sends based on this header
# https://docs.kumomta.com/reference/message/import_scheduling_header
scheduling_header = "X-Schedule"

# Set the tenant from this header
tenant_header = "X-Tenant"

# Set the campaign from this header
campaign_header = "X-Campaign"

# The tenant to use if no tenant_header is present
default_tenant = "default-tenant"

[tenant.'default-tenant']
egress_pool = 'pool'

[tenant.'mytenant']
# Which pool should be used for this tenant
egress_pool = 'pool-1'
# Override maximum message age based on tenant; this overrides settings at the domain level
max_age = '10 hours'

# Only the authorized identities are allowed to use this tenant via the tenant_header
#require_authz = ["scott"]

# The default set of parameters
[queue.default]
max_age = '24 hours'

# Base settings for a given destination domain.
# These are overridden by more specific settings
# in a tenant or more specific queue
[queue.'gmail.com']
max_age = '22 hours'
retry_interval = '17 mins'

[queue.'gmail.com'.'mytenant']
# options here for domain=gmail.com AND tenant=mytenant for any unmatched campaign

the below is my telnet injection i am using