I have a Postfix instance that listens on one of many
interfaces/addresses available on a machine.

There is one special smptd service in master.cf that I'd like to have
listen on several addresses (but not all, so I can't use "all").

I have found that I can define the service once for every address and
it works great, but am not having luck trying to combine them into one
by specifying inet_interfaces (possibly because it conflicts with the
service definition itself?

I.e.,

main.cf
inet_interfaces = a.b.c.d

master.cf
20025 inet  n  -  n  -  -  smtpd
  -o inet_interfaces=a.b.c.d,e.f.g.h,i.j.k.l

The service only binds to the address from main.cf, a.b.c.d in this
example. Is it possible (without defining the service many times over)
to have it bind to more than one interface?

I thought another solution would be to conversely list all addresses
in main.cf and narrow down the default relay and smtpd listeners in
master.cf to the solitary address, but I'd prefer to keep the basics
in more of a default state and focus on advanced configuration in this
one place only.

Reply via email to