Hi Mea

see answers in line

On 23/12/2025 23:31, Mea Para via Postfix-users wrote:
Hello,

In main.cf, the variable inet_interfaces demands an IP address. I say demand, 
because if I supply the name of the interface, postfix check returns the 
following error:

Postfix is not demanding an ip address. It is requiring values as per the documentation, potentially ones which are not ip addresses:

https://www.postfix.org/postconf.5.html#inet_interfaces

postfix: fatal: config variable inet_interfaces: host not found: em0
There are two problems with this.

1. The error message says "host not found". This means that "em0" is treated by "postfix 
check" as if it were a host name. Since the variable inet_interface is asking for a network interface name, the 
"postfix check" should check whether it corresponds to a network interface, not to a host name.
The parameter requires a value in line with the documentation (see above). It is not requiring a network interface name.

2. If I supply an IP address, "postfix check" accepts it. However, an IP 
address is not a network interface, hence the check should fail.
The check does not fail in this case since it is aligned with the documented behaviour.
I understand that an IP address is what it has been taking for decades, but can 
we use the name of a network interface without incurring in this error?

Not sure if that is technically feasible, but I am even less sure about what benefit that would bring and what problem you want to solve with this change.

John


Thank you

--
Mea
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to