Lightweight utilities for common tasks.
create_list.py and update_list.py will apply their own, opinionated set of settings to the list (see apply_list_settings
function in common.py). The rest of this code is generic.
This implementation is a thin wrapper around Mailman Client.
First, extract admin_pass
for your site from the configuration file and set MAILMAN_REST_API_PASS
environment variable. For example:
$ grep admin_pass /etc/mailman3/mailman.cfg
$ export MAILMAN_REST_API_PASS=xxx
Then run the scripts:
$ list_domains.py
lists.a.com
lists.b.com
lists.c.com
$ list_lists.py
[email protected]
[email protected]
[email protected]