Linux email server for sending out email from numerous IP addresses
I'm attempting to arrangement an email server so it has the capacity to send email from numerous IP addresses, so our advertising and marketing system can send email from numerous domain names, while maintaining the reverse DNS lookups regular. IE, domain1.com settles to 10.0.0.1, domain2.com settles to 10.0.0.2, etc
Ideally, the mail server would certainly examine the
from domain name in the headers, after that pick the proper IP address from a swimming pool, making use of that for the real sending out. Now, we are making use of Exim, and also I was assuming that remedy would certainly be to run numerous circumstances of Exim on various user interfaces, after that write an SMTP proxy that would certainly do the header monitoring and also onward the email to the proper Exim instance, yet I'm assuming there might be a less complex remedy than that.
So every person recognizes, this does not entail spamming, and also we possess all the domain names and also IP addresses we would certainly be making use of.
If I recognize you, you have the mail on a web server, which web server has, claim, 4 IP addresses set up on it. You would certainly like you mail web server, when sending out to the net, to make use of among those 4 IPs as the outgoing interface. If this is the incorrect analysis, please allow me recognize.
The Exim SMTP transportation can be set up to send email using various user interfaces. In a tough coded fashion you can do this:
routers: send_domaina_com: driver = dnslookup domains = domaina.com transport = domaina_com_smtp send_domainb_com: driver = dnslookup domains = domainb.com transport = domainb_com_smtp send_domainc_com: driver = dnslookup domains = domainc.com transport = domainc_com_smtp send_domaind_com: driver = dnslookup domains = domaind.com transport = domaind_com_smtp TRANSPORTS: domaina_com_smtp: driver = smtp interface = 10.0.0.1 domainb_com_smtp: driver = smtp interface = 10.0.0.2 domainc_com_smtp: driver = smtp interface = 10.0.0.3 domaind_com_smtp: driver = smtp interface = 10.0.0.4
I'm 99.99% the above will job, though it is clearly hideous. I assume every little thing you require it to be taken care of dynamically exists (" interface" is expanding).
To keep course honesty, I'm assuming you would certainly need to bind various circumstances of exim to various user interfaces (as you claim)
the proxy isn't actually called for, you can merely make use of a router (per domain/from : suit) with a problem readied to determine which 'host' to pass on via.
never ever attempted this. would certainly be interested to recognize if it functions.