[Mailman-Users] Global blacklist recipient address?

Mark Sapiro mark at msapiro.net
Mon Jun 18 16:41:12 EDT 2018

On 06/18/2018 11:44 AM, Kevin Bowen wrote:
> What is the best way to block a particular recipient address site-wide? I
> see there's a KNOWN_SPAMMERS variable, but I'm not sure if that's what I
> need since I want to block any mail from getting sent TO this address, not
> from it. Someone is being maliciously subscribed to multiple mailing lists
> and getting spammed with subscription requests.

If you have access to Mailman's configuration in Mailman/mm_cfg.py, you
can add the address or a regexp matching the address to the
GLOBAL_BAN_LIST to prevent new subscriptions.

You can use a script such as the one at
<https://www.msapiro.net/scripts/erase> to completely remove an address
or addresses matching a regexp from the Mailman installation.

Adding the address to the GLOBAL_BAN_LIST will block any attempts to
subscribe it to any list. Most of these subscribe attacks (all that I've
seen) are web subscribes so the person doing the subscribe gets a web
response denying it an no email is sent. This will not stop the response
email to an attempted email subscribe, but you probably aren't seeing those.

There is no convenient way in Mailman to block all outgoing mail to a
given address.

Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

More information about the Mailman-Users mailing list