Force Postfix to bind to a set ip address

Add the following to your file (/etc/postfix/

smtp_bind_address =

to set tell smtp to bind to this IP (smtp_bind_address6 if using IPv6).
note that with this smtp will always use this IP (contrast with the
default when smtp binds to “any address” and it is the routing code that
selects the source IP based on the route (outgoing interface).