>>>>> On August 14, 2020 Viktor Dukhovni <postfix-us...@dukhovni.org> wrote:

> This is of those rare cases where the documentation is now in error.  In
> order to improve backwards compatibility with postfix prior to 2.10, the
> order of evaluation was changed in postfix-3.3-20180106 to evaluate the
> recipient restrictions first.

> This should perhaps be configurable, so that if one has correctly set up
> the relay restrictions, they would be evaluated first as expected and
> currently documented...

Viktor, was there discussion on the mailing lists about this when the
change was made?  Any context I can read?  Was it a conscious decision
not to update the documentation?

So what do you / Wietse think would be the best way forward?  It does
seem to make more sense for smtpd_relay_restrictions to come first as
documented.  I don't entirely understand why it was deemed more
compatible to evaluate the recipient restrictions first, but some
options are:

* add a variable to control the order

* base the order on the compatibility_level

* if smtpd_relay_restrictions has been set (not defaulted) evaluate it
  first

probably others..

thanks,
Greg

Reply via email to