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

> On Fri, Aug 14, 2020 at 05:41:38PM -0400, Greg Klanderman wrote:
>> smtpd_relay_restrictions is documented as being checked before
>> smtpd_recipient_restrictions,

> 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...

Thank you Viktor, that perfectly explains what I am seeing!  And gives
me less concern knowing this is intentional and that the relay
restriction will be evaluated if the recipient restrictions pass.

I wonder if the order should be based on the compatibility setting?

Bumping up to compatibility_level = 2 is on my short list.

At the very least it seems the documentation should be corrected; in
general the docs are extremely detailed and precise, which is why I
had not considered that might be the issue!

thank you,
Greg

Reply via email to