Demi Marie Obenour:
> On 1/20/22 08:13, Wietse Venema wrote:
> > [email protected]:
> >> we had in main.cf
> >>
> >>
> >> smtpd_client_restrictions =
> >> check_helo_access
> >> pcre:/etc/postfix/helo_access.pcre,regexp:/etc/postfix/helo_access.rege
> >
> > Commas and spaces are treated identically, therefore
> > this is equivalent to:
> >
> > smtpd_client_restrictions =
> > check_helo_access pcre:/etc/postfix/helo_access.pcre
> > regexp:/etc/postfix/helo_access.regex
> >
> > The syntax on the last line was deprecated, and was removed from
> > the manpage. For backwards compatibility, if you omit the
> > check_xxx_access before a table, then the kind of access is determined
> > by the smtpd_xxx_restrictions type.
> >
> > Therefore the above is equivalent to:
> >
> > smtpd_client_restrictions =
> > check_helo_access pcre:/etc/postfix/helo_access.pcre
> > check_client_access regexp:/etc/postfix/helo_access.regex
>
> Would it be possible for Postfix to issue a warning for such deprecated
> syntax?
That would definitely have produced a lot of noise (and pissed-off
people) at the time (Postfix 2.1), because this was legitimate
behavior documented with examples. Many features have been depcrecated
throughout 15 years, before I created the compatibility_level safety
net with a more reasonable way to opt-in/out and shut up warnings.
Maybe something for Postfix 3.8. All development is in a code freeze
until the Postfix 3.7.0 stable release.
Wietse