Robert Dahlem: > > On 17.08.2016 20:58, Wietse Venema wrote: > > >> I have this in main.cf: > >> inet_interfaces = 127.0.0.1, 192.168.x.x, 80.y.y.y > > > > Why not: "inet_interfaces = all"? > > Because I intend to run a second instance on the same machine with a > different IP address. If the primary instance listens on all interfaces, > it could pick up clients for the wrong IP.
Make the default Postfix instance a local submission-only MTA: /etc/postfix/main.cf: inet_interfaces = mydestination = myorigin = my.domain # Use "localhost" as my name to avoid 'mail loops to myself" errors. myhostname = localhost.my.domain relayhost = 127.0.0.1 Have a secondary MTA listen on network interfaces: /etc/postfix-secondary/main.cf: inet_interfaces = 127.0.0.1, 192.168.x.x, 80.y.y.y This MTA would be started once all the interfaces are up. There is no quick fix for what you are asking; basically that requires a change in the inet_interfaces handling for Postfix non-daemon programs. Such a change would make sense, but you don't want to wait for that to happen. Wietse