On 11/07/2024 04:11, Mark Sapiro wrote:
On 7/10/24 12:26 AM, Matthew Blissett via Mailman-users wrote:
With Mailman 2, I have configuration and scripts to reject non-members from posting to lists _during the SMTP connection_. This is better than bouncing (no backscatter), better than discarding messages (the user finds out) and better than moderation (spammy messages aren't forwarded to external email systems).
The configuration and scripts are described here: https://code.launchpad.net/~jimpop/mailman/check_subscriber
Is anything like this built-in to Mailman 3? I cannot find it in Gitlab.
No. nothing similar is built in to Mailman 3, but it shouldn't be difficult to implement. It could be done with a milter as in the above implementation, or it could be done by modifying the _handle_RCPT function in mailman/runners/lmtp.py to check if the sender is a member of the recipient list.
Thanks.
I have implemented it by adapting the Mailman 2 script to use the REST API of Mailman 3: https://gist.github.com/MattBlissett/c1f58dcc182423f48e2305b3d91ea44d
--
Matt