how is "inet_interfaces = all" different to "inet_interfaces = " (i.e. blank)?

By supplying an IP4 address and not an IPv6 address, you are effectively leaving the IPv6 setting blank. What happens with a blank field needs to be specified.

how is "inet_interfaces = all" different to "inet_interfaces = 0.0.0.0 ::"

The docs mention setting smtp_bind_address to 0.0.0.0 but don't say what will happen if inet_interfaces is set to 0.0.0.0 [::].

by having the "all" option, it seems to imply that receiving mail can be disabled on either stack by not supplying an address. Is that what will actually happen, or will Pf default to something?

  Sean

On 4/05/2023 6:31 am, Wietse Venema via Postfix-users wrote:
Peter via Postfix-users:
Is this behavior of inet_interfaces overridden by smtp_bind_address?
  From the way it's worded it looks to me like the inet_interfaces
setting overrides smtp_bind_address but this isn't clear to me.  Can
that be clarified (one way or the other)?
In the mean time I the text further. It should address that
question.

        Wietse

When smtp_bind_address and/or smtp_bind_address6 are not specified,
the inet_interfaces setting may constrain the source IP address for
an outbound SMTP or LMTP connection.

   * When inet_interfaces specifies one IPv4 address, and that is
     not a loopback address, the Postfix SMTP client uses that as
     the source address for outbound IPv4 connections.

   * Otherwise, the Postfix SMTP client does not constrain the source
     IPv4 address, and connect using a system-chosen source IPv4
     address. This includes the cases where inet_interfaces specifies
     all, or no IPv4 address, or one IPv4 address that is a loopback
     address, or multiple IPv4 addresses.

   * The same reasoning as above applies to the IPv6 protocol and
     to the Postfix LMTP client. To disable IPv4 or IPv6 support in
     the Postfix SMTP and LMTP client, use inet_protocols.

A Postfix SMTP client may fail to reach some remote SMTP servers
when the client source IP address is constrained explicitly with
smtp_bind_address or smtp_bind_address6, or implicitly with
inet_interfaces. This can happen when Postfix runs on a multi-homed
system such as a firewall, the Postfix SMTP source client IP address
is constrained to one specific network interface, and the remote
SMTP server must be reached through a different interface. Setting
smtp_bind_address to 0.0.0.0 avoids the potential problem for IPv4,
and setting smtp_bind_address6 to :: solves the problem for IPv6.


_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

--
This email has been checked for viruses by AVG antivirus software.
www.avg.com
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to