Good Day,

I'm trying to bring up a new machine that serves several purposes and
have run into a potentially Very Big Problem.

The machine has two physical interfaces, one LAN-facing and one
Internet-facing.  So, naturally, I have something like:

Let's say 10.1.1.0 is the Internet-facing network and 192.168.1.0 is
inside.

inet_interfaces = 10.1.1.4, 192.168.1.1

The machine has its "real" interface and additional virtual (or alias)
interfaces on the outside:

10.1.1.2 hostname.example.com
10.1.1.3 ns1.example.com  # alias/virtual
10.1.1.4 mx1.example.com  # alias/virtual

and so-on.

The problem is: On outgoing connections to The World, via the 10.1.1...
interface, SMTP clients, instead of binding to 10.1.1.4, are binding to
10.1.1.2, rather than 10.1.1.4.

I can't use smtp_bind_address, because the server also delivers email
to an internal server on the 192.168.1.0 network.

So, do I either have to swap the addresses of "hostname" and
"mx1" (which would be kind of lame, IMO) or do-away with "mx1"
entirely, and let "hostname" be the MX?

ISTM Postfix' SMTP clients should chose from the interfaces listed in
inet_interfaces or smtp_bind_address should be smtp_bind_addresses, and
it should chose from them.

Thanks,
Jim
-- 
Note: My mail server employs *very* aggressive anti-spam
filtering.  If you reply to this email and your email is
rejected, please accept my apologies and let me know via my
web form at <http://jimsun.LinxNet.com/contact/scform.php>.

Reply via email to