welcome: please sign in

Diff for "DaemonAdmin/Mailman"

Differences between revisions 10 and 11
Revision 10 as of 2018-12-02 20:55:50
Size: 1185
Editor: ClintonEbadi
Comment: to move all lists to a new server, just rsync /var/lib/mailman
Revision 11 as of 2018-12-02 20:57:05
Size: 1288
Editor: ClintonEbadi
Comment: mention puppet
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Mailman packages and configuration are managed by Puppet class `hcoop::service::mail::mailman2`
Line 3: Line 5:
 0. Copy `/etc/mailman` to new server
    * Might just need `mm_cfg.py` and `vhosts_cfg.py`
 0. Copy `/etc/mailman/{mm_cfg.py}` to new server
    * `vhost_cfg.py` is generated by DomTool.

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.


CategoryNeedsWork

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