[Mailman-Users] unsubscribing addresses from domain in one fellswoop?

Christopher Adams adamsca at gmail.com
Wed Jan 6 01:31:13 CET 2010


Thanks, Mark. I was just starting to construct a script, but yours is much
more streamlined and works just fine. Thanks. Anyone else dealing with
zeusmail.org ?

On Mon, Jan 4, 2010 at 5:25 PM, Mark Sapiro <mark at msapiro.net> wrote:

> Christopher Adams wrote:
>
> >A spammer has subscribed completely unique addresses from the same domain
> to
> >many of the mailing lists that we host. Is there a way to unsubscribe
> >everything from this domain without writing a script that will do it?
>
>
> If you mean 'automatically' as opposed to just manually going through
> the lists and unsubscribing addresses, no. However, there are lots of
> very simple scripts. Consider
>
> #!/bin/sh
> for list in `bin/list_lists --bare`; do
>    bin/list_members $list | grep example.com | \
>    bin/remove_members -f - -n -N $list
> done
>
> where example.com is the domain.
>
> --
> Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
> San Francisco Bay Area, California    better use your sense - B. Dylan
>
>


-- 
Christopher Adams
adamsca at gmail.com


More information about the Mailman-Users mailing list