Dnia  1.08.2022 o godz. 14:55:32 post...@ptld.com pisze:
> What is unclear to me is what will postfix try to use when making an
> outbound connection when the server has two interfaces, first interface
> only has one public IP, and the 2nd interface has only one private
> (192.168.x.x) IP.  Will postfix randomly try the private IP to deliver
> outbound mail and fail?  And if it does fail, does it instantly try again
> or go back into queue to try again later until it randomly uses the public
> IP?

In your case Postfix does not make the decision which interface to use. The
kernel does, according to routing table. This works pretty much identical
for any outgoing connection, no matter from which application.

If you want to connect to some address on 192.168.x.x network, the kernel
will route the packets via the second interface, as more specific routes
always have priority over more general ones.

If you want to connect to somewhere on the Internet, the kernel will route
the packets via the first interface, because your default gateway is on a
network that your first interface also belongs to.
-- 
Regards,
   Jaroslaw Rafa
   r...@rafa.eu.org
--
"In a million years, when kids go to school, they're gonna know: once there
was a Hushpuppy, and she lived with her daddy in the Bathtub."

Reply via email to