On 12/23/22 19:06, raf wrote:
On Fri, Dec 23, 2022 at 01:14:26PM -0800, Jim Garrison <j...@jhmg.net> wrote:
[snip]
Not relevant to your problem, but the above says that
only ipv4 is used but your config includes ipv6
addresses. You might want to delete it (and default to
"all"), or remove the ipv6 addresses from your config.
Good point, I'm in an IPV4-only network.

[snip]
smtpd_relay_restrictions = permit_mynetworks reject_unauth_destination

This is the problem. You need to add "reject" to the
end of smtpd_relay_restrictions. Without it, it
implicitly ends with "permit".
In http://www.postfix.org/SMTPD_ACCESS_README.html),
it says:

   Each restriction list is evaluated from left to right
   until some restriction produces a result of PERMIT,
   REJECT or DEFER (try again later). The end of each
   list is equivalent to a PERMIT result.

I recommend always having "permit" or "reject" at the
end of all smtpd_*_restrictions parameters. Even if
it's just to make the implicit "permit" explicit and
visible.

Got it, this is what I somehow missed.

[snip]

Thanks, it's now working the way I want, and I learned something :-)

--
Jim Garrison
j...@acm.org

Reply via email to