welcome: please sign in

Diff for "DaemonAdmin/Mailman"

Differences between revisions 1 and 12 (spanning 11 versions)
Revision 1 as of 2006-02-12 18:38:13
Size: 467
Editor: AdamChlipala
Comment:
Revision 12 as of 2019-01-10 02:13:20
Size: 1629
Editor: ClintonEbadi
Comment: note how to change list web urls
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
We override the behavior of some Debian packages, such that we need to re-make some changes each time they update. The `/usr/local/sbin/fixperms` script is responsible for doing this, so you should run it after an `apt-get upgrade`. Currently, it does this: Mailman packages and configuration are managed by Puppet class `hcoop::service::mail::mailman2`
Line 3: Line 3:
{{{chown list.list /usr/lib/cgi-bin/mailman/*
chmod g-s /usr/lib/cgi-bin/mailman/*
chmod u+s /usr/lib/cgi-bin/mailman/*
== Migrating Mailman Between Servers ==
Line 7: Line 5:
chown -R list /var/lib/mailman/lists/*}}}  0. Copy `/etc/mailman/{mm_cfg.py}` to new server
    * `vhost_cfg.py` is generated by DomTool.
 0. Copy `/etc/exim4/mailmandb` to new server
 0. Stop mailman to prevent messages from being delivered while copying data: `service mailman stop`
 0. Copy `/var/lib/mailman` to new server
 0. 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
 0. Start mailman on new server: `service mailman start`
 0. Reload exim, and everything ought to work

DomTool also needs some settings updated.

=== 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`.

== Importing Individual Lists ==

Not entirely sure, but [[https://mail.python.org/pipermail/mailman-users/2016-October/081482.html|an old post on mailman-users]] might have some insight.

== Change List Domain ==

If a member requests a change in the primary list domain (e.g. changing from http to https).

  '''LISTNAME''' is the bare list name (e.g. `hcoop-discuss`)
  '''NEWBASEURL''' is the base url, with no list name (e.g. `https://lists.hcoop.net`)

`sudo -u list withlist -l -r fix_url LISTNAME -u NEWBASEURL`
Line 9: Line 36:
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 (e.g. changing from http to https).

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

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


CategoryNeedsWork

DaemonAdmin/Mailman (last edited 2019-01-10 02:18:08 by ClintonEbadi)