Quote:
Originally Posted by cmdln
I think I understand what you want.
You want all emailS sent from the server to appear to come from the ip bound to eth0. That would be a configuration of your mail server software on the server. Probably sendmail, postfix, or exim.
|
That is exactly what I want.
Quote:
Originally Posted by cmdln
As for other client connections I'm not sure.
Btw I assume your outgoing emails are sent from the server not some smtp client In a vhosts code (like a php script connecting to another server). I don't have a clue for other outbound connections.
|
Well. All the Vhosts use PHPīs mail() which redirect the mail to localhost. Here Courer-mta accepts the mails and send them to a dedicated outbound SMTP-server. It is in the tranfer that the server connects to the dedi outbound SMTP as a client, and from another IP than the one bound to eth0.
Im not sure it helps to have Courier-mta listen on only a specific interface as im pretty confident this problem is regarding the inner workings of linux-networking.
In short, it would be nice to be able give som sort of prio to each of the eth interfaces.
Or be able to define that only eth0 should be used for outbound connections.