On 8/4/21 10:44 AM, Ethan Furman wrote:
Greetings again!
Is there a remote API I can use to manage a list?
Mailman core's REST API is documented at <https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/rest/docs/r...>.
By default it listens only on localhost:8001 and requires authentication with user = restadmin and password = restpass but these are all settings in the webservice section of mailman.cfg. See <https://gitlab.com/mailman/mailman/-/blob/master/src/mailman/config/schema.c...> for the settings and their defaults.
You could set
[webservice] hostname: 0.0.0.0 admin_pass: My_Secret
in mailman.cfg to have it listen for connects from anywhere and require a different password.
You'd also need to adjust some or all of the settings for
MAILMAN_REST_API_URL MAILMAN_REST_API_USER MAILMAN_REST_API_PASS
In your Django settings.
There is also <https://gitlab.com/mailman/lemme> however, that's only a skeleton and not useful as is.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan