There is a server on it connected to several interfaces with addresses 192.168.xx (each has an external white ip)
There is a control panel, several domains have been added to it.
How to set up sending mail from domains:

domain1 – ip1 //eth0 domain2 – ip2 //eth1 

ip addresses have the form 192.168.xx and white external ip address. Sending mail goes if all outgoing traffic is sent through a specific interface (ip route replace default via ...), but if you specify (in the control panel) a domain address, I constantly see: "Network is unrecheable ..."

What could be the error? If you specify in the control panel or in domainips ( etc/exim4/domainips ), then again the error Network is unrecheable ...

  • 2
    please attach the output of the ip a; ip r command ip a; ip r ip a; ip r . if you want to save the anonymity, you can replace the senior octet with letters from external addresses (different values ​​of octets are different letters). decipher what exactly you mean by ip1 and ip2 , and into which ip-addresses the names of mx-records for domain1 and domain2 . the output of the grep -r domainips /etc/exim* also does not hurt. - aleksandr barakin

1 answer 1

correct spelling of the rules solved the problem

  • Could you tell us more about the solution found, give an example of the settings? This will help future readers of your question who will have the same problem. - Nick Volynkin