Hi Mailman-Experts,
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.
Thank you.
Stefan
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
Mark Sapiro writes:
For example with Postfix you will probably have in main.cf
Feel free to ask about other MTAs. We definitely have Exim4 skills and somebody contributed qmail and sendmail configuration guides.
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
Note that the "5.7.1" code is defined in the SMTP protocol to mean "Mail rejected due to policy", but the comment is not part of the definition. Since 5.7.1 is a generic policy reject, it's often used for spam-filter-related rejects. If "no subscription by email" is a documented policy, or you don't mind people knowing about it, you may want to change the comment to something like "This list does not allow subscription by email". That lets your users know that you don't think they're spammers.
Steve
-- GNU Mailman consultant (installation, migration, customization) Sirius Open Source https://www.siriusopensource.com/ Software systems consulting in Europe, North America, and Japan
participants (3)
-
Mark Sapiro -
Stefan Bauer -
Stephen J. Turnbull