On 7/20/26 08:04, Stefan Bauer via Mailman-users wrote:
how can i completely disable/block list-signup-requests for specific lists via e-mail? i have some announce-only mailinglists i do not want to allow users to signup at all via e-mail. I'm aware of the subscription policies but there is no block or reject/discard option.
You can't do this with list settings. Depending on your MTA, you might be able to set it to reject mail to the list-join and list-subscribe addresses. For example with Postfix you will probably have in main.cf
transport_maps = hash:/opt/mailman/mm/var/data/postfix_lmtp
You don't want to edit the postfix_lmtp file because that gets frequently regenerated, but you could create a mapping, say a file /path/to/rejects containing
list-join@example.com error:5.7.1 Mail rejected due to policy
list-subscribe@example.com error:5.7.1 Mail rejected due to policy
and hash it with
postmap hash:/path/to/rejects
and then modify the transport_maps setting
transport_maps = hash:/path/to/rejects
hash:/opt/mailman/mm/var/data/postfix_lmtp
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan