I have a question about multiple MS records for each multiple domains.
I have Domain1 and Domain2
Domain1 has MX record pointing to 18.104.22.168 and Domain2 pointing to 22.214.171.124
I host both of them and I have a distributed environment behind a firewall NAT:
The question is how does the MTA knows which IP address to send an email from each domain to the outside ?