[Mailman-Users] banned subscription questions
mark at msapiro.net
Fri Feb 26 14:26:20 EST 2016
On 02/26/2016 09:03 AM, Stephen J. Turnbull wrote:
> Hone, Don writes:
> > I'm able to ban a specific email address by using the withlist command:
> > ~mailman/bin/withlist -a -r add_banned -- address at domain.com
> > Is there a command that I can use to reverse this?
> I'll have to pass that to Mark, it's his script.
You could modify the script. I.e., make a new script remove_banned.py
which is a copy of add_banned.py with every occurrence of 'add_banned'
replaced by 'remove_banned' and the line
Also, You may be interested in the GLOBAL_BAN_LIST implementation to be
in the latest (2.1.21) Mailman release. See
> > What is the correct format to ban all addresses in a domain?
> > *@domain.com didn't seem to do it for me.
> Regular expression. "*" is not a wildcard in a regular expression, it
> is a repetition operator. The wildcard for "any character" is a
> period. To match any string (including the empty string), use ".*".
> To get a literal period, you quote it with "\". To ban all addresses
> in a particular domain, use ".*@domain\.com$". If there are multiple
> periods, you should quote them all with backslashes.
Further, in the ban_list (and many other places in Mailman) if an
address is intended to be a regular expression pattern, it must begin
with '^', so you really want
to match any_address at domain.com.
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