[Mailman-Users] automating adding and removing subscribers

Mark Sapiro mark at msapiro.net
Wed Oct 21 01:04:14 CEST 2015


On 10/20/2015 02:42 PM, Steven Jones wrote:
> 
> Is there a way to automate the adding and removing subscribers from another system? such that the list is kept concurrent?


Please don't hijack threads by replying to unrelated posts. Your post is
still threaded with the one you replied to even if you change the Subject:

If you have two lists on the same server/mailman installation

bin/list_members -f <source_listname> | bin/sync_members -f - [other
options] <dest_listname>

all on one line, run by cron as often as you like.

On two different hosts, a cron on the destination that runs
bin/list_members on the source with output to a file (via ssh) followed
by rsync to copy the file to the destination followed by
bin/sync_members on the destination.

Give the list_members and sync_members commands with --help for
documentation.

-- 
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