On 09-02-16 12:14, Wietse Venema wrote:
> Quanah Gibson-Mount:
>> --On Monday, February 08, 2016 8:00 PM -0500 Wietse Venema
>> <[email protected]> wrote:
>>
>>> Quanah Gibson-Mount:
>>>> In Postfix > 3.0.x, the value from postconf mynetworks returns incorrect
>>>> netmask values, and it is missing IPv6 entirely:
>>>
>>> This depends on the inet_protocols setting.
>>>
>>> # postconf inet_protocols=all
>>> # postconf mynetworks
>>> mynetworks = 127.0.0.1/32 192.168.122.1/32 168.100.189.7/32 [::1]/128
>>> [fe80::223:55ff:fe5c:3985]/128
>>
>> And the invalid netmask? Which was the 1st part of what I was noting. It
>> should be 127.0.0.1/8 for example, not 127.0.0.1/32.
>
> RTFM. Also in the RELEASE_NOTES.
>
> Wietse
>
> $ man 5 postconf | less +/'^mynetworks_style'
> mynetworks_style (default: Postfix >= 3.0: host, Postfix < 3.0: subnet)
> The method to generate the default value for the mynetworks parameter.
> This is the list of trusted networks for relay access control etc.
> ...
>
> $ postconf -d mynetworks_style
> mynetworks_style = ${{$compatibility_level} < {2} ? {subnet} : {host}}
>
You could argue that "mynetworks_style = host" still should set the
subnet for 127.0.0.1 to /8, and not /32
Regards,
Tom