Verify recipient validity at RCPT command in LMTP runner (2nd try)
commitb9387743835821e8327e73aa502cb01f2f83dc97
authorPatrick Cernko <errror+gitlab.com@errror.org>
Wed, 19 Oct 2022 23:27:10 +0000 (19 23:27 +0000)
committerMark Sapiro <mark@msapiro.net>
Wed, 19 Oct 2022 23:27:10 +0000 (19 23:27 +0000)
tree0c7ce4cefb525a24bb9aedd4d0e59424df9b8bc2
parentfd8c152a0b3693dc83c4d188b71a98bcfa90b4a8
Verify recipient validity at RCPT command in LMTP runner (2nd try)

Verify recipient validity at RCPT command in LMTP runner (reviewed merge request c2ddff05a4f405fa46fb792cc69912829c1cbf83, rejected 2 years ago)
* returning '250 ok' to correctly accept valid recipients
* reorganized code a bit to better match existing recipient verification code in handle_DATA()
* fixed unit tests (verified with `tox -e py39-nocov` on Debian/bullseye)

See !671 for the original merge request by @foxcpp. Also see !126.

Fixes #14
src/mailman/docs/NEWS.rst
src/mailman/docs/mta.rst
src/mailman/runners/lmtp.py
src/mailman/runners/tests/test_lmtp.py