How to set different outgoing IPs from kumo MTA
Hey there @youthful-zorse, thanks for posting. To ensure the fastest resolution to your issue, please review the following and follow all the steps:
You configure multiple egress_source elements.Configuring Sending IPs - KumoMTA Docs
i used that
but it’s not working
the sending ip is same
Then please read the how to ask for help button.
i tried that’s only
i hope
There are things listed there that you should post here to better let us help you.
ok sure working on that
kumo.on('get_egress_source', function(source_name)
if source_name == 'ip-1' then
-- Make a source that will emit from 10.0.0.1
return kumo.make_egress_source {
name = 'ip-2',
source_address = '10.4.1.72',
}
end
error 'you need to do something for other source names'
end)
there is a public IP assign with this IP, but my server is taking same public ip which has been assigned by default
You didn’t assign the IP to a message, you just created it.
guys sorry for distributing you but facing issues as I am using aws on which I have configured multiple ips but while sending only one ip being used
More details pls, without the information listed in How to Get Help - KumoMTA Docs it’s not easy to provide assistance.
In this case I’d also suggest providing the output of ip address
This is more likely to be an AWS issue. You can only assign one IP to a NIC. If you want multiple outbound IPs you need to have multiple NICs attached or pass through a proxy ( which has multiple NICs configured.)