Set outgoing IP based on recipient domain

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,250
463
Hello @FM Kappungal,

Here's a link with information about configuring the outgoing IP address for Exim in-case anyone else reaches this thread and is curious about how to do this:

How to Configure the Exim Outgoing IP Address - cPanel Knowledge Base - cPanel Documentation

I'm looking for a possible way for exim to pick the outgoing IP based on the domain of the remote recipient.
There's no native support for using multiple entries in the /etc/mailhelo and /etc/mailips file based on the recipient's domain name. There's a third-party workaround submitted on the link below you can reference as proof-of-concept, but keep in-mind this is untested and isn't based on your exact request:

https://serverfault.com/a/793117

Thank you.