welcome: please sign in

Diff for "DaemonAdmin/Mailman"

Differences between revisions 12 and 14 (spanning 2 versions)
Revision 12 as of 2019-01-10 02:13:20
Size: 1629
Editor: ClintonEbadi
Comment: note how to change list web urls
Revision 14 as of 2025-06-23 01:12:18
Size: 2100
Comment: password reset procedure
Deletions are marked like this. Additions are marked like this.
Line 28: Line 28:
If a member requests a change in the primary list domain (e.g. changing from http to https). If a member requests a change in the primary list domain
Line 31: Line 31:
  '''NEWBASEURL''' is the base url, with no list name (e.g. `https://lists.hcoop.net`)   '''NEWBASEURL''' is the base url, with no list name (e.g. `lists.hcoop.net`)
Line 35: Line 35:
Mailman doesn't care about SSL, except for the list archive link, which is a template and can be edited through the web interface by the list owner.

== Resetting list administrator passwords ==

To reset the administrator password for a list, with LISTNAME being a bare name as above, run:

`sudo -u list /usr/bin/lib/mailman/change_pw -l LISTNAME`

This will print the new password and mail it to the list administrator. (As of June 2025, this should be run on `minsky`.)
Line 36: Line 46:
CategoryNeedsWork CategorySystemAdministration CategoryNeedsWork

Mailman packages and configuration are managed by Puppet class hcoop::service::mail::mailman2

1. Migrating Mailman Between Servers

  1. Copy /etc/mailman/{mm_cfg.py} to new server

    • vhost_cfg.py is generated by DomTool.

  2. Copy /etc/exim4/mailmandb to new server

  3. Stop mailman to prevent messages from being delivered while copying data: service mailman stop

  4. Copy /var/lib/mailman to new server

  5. In /etc/exim4/conf.d/main/01_exim4-config_listmacrosdef on:

    • the new mailman host: unset HCOOP_MAILMAN_RELAY_HOST

    • all other mail servers: set HCOOP_MAILMAN_RELAY_HOST to the new mailman host

  6. Start mailman on new server: service mailman start

  7. Reload exim, and everything ought to work

DomTool also needs some settings updated.

1.1. Move All Lists

The entirety of /var/lib/mailman can just be rsynced between servers. This is assuming Debian configuration where system controlled content and data like locks are stored in external directories and just symlinked from /var/lib/mailman.

2. Importing Individual Lists

Not entirely sure, but an old post on mailman-users might have some insight.

3. Change List Domain

If a member requests a change in the primary list domain

  • LISTNAME is the bare list name (e.g. hcoop-discuss) NEWBASEURL is the base url, with no list name (e.g. lists.hcoop.net)

sudo -u list withlist -l -r fix_url LISTNAME -u NEWBASEURL

Mailman doesn't care about SSL, except for the list archive link, which is a template and can be edited through the web interface by the list owner.

4. Resetting list administrator passwords

To reset the administrator password for a list, with LISTNAME being a bare name as above, run:

sudo -u list /usr/bin/lib/mailman/change_pw -l LISTNAME

This will print the new password and mail it to the list administrator. (As of June 2025, this should be run on minsky.)


CategorySystemAdministration CategoryNeedsWork

DaemonAdmin/Mailman (last edited 2025-06-23 01:12:18 by RobinTempleton)