> On Feb 9, 2016, at 12:51 PM, Quanah Gibson-Mount <[email protected]> wrote:
> 
> So this is a significant regression vs 2.x.  I need it to return valid values 
> based on what the netmask settings are for the interface.

I repeat: there is no regression, the pain is self-inficted.

The defaults are backwards-compatible.  Given an existing main.cf
file, Postfix >= 3.0 will behave just like Postfix 2.x, but will
issue warnings when using backwards compatible *defaults*.

The compatibility_level is set to 2 only when stock main.cf files
are installed on a fresh system.  For new deployments (rather than
upgrades) the new defaults are intentional improvements, and not
"regressions".

   See http://www.postfix.org/COMPATIBILITY_README.html

To suppress the warnings set the parameter in question explicitly
and/or raise the compatibility level to enable the new defaults.

Sounds like you want "mynetworks_style = subnet", so go ahead and
do that, provided no hosts sharing the same subnet are untrusted
(for relay and the like).

-- 
        Viktor.

Reply via email to