Giter VIP home page Giter VIP logo

Comments (3)

juddm avatar juddm commented on August 19, 2024

BTW - I can send email as per the suggestion you made in this post:
#1 (comment)

from mailman2.

juddm avatar juddm commented on August 19, 2024

I have successfully migrated from a server to this container (with 11 years of archive history) using the following approach:

Backup data from the old server

  1. Backup the lists (not actually used)
    tar -zcvf /tmp/mailman-lists.tgz /var/lib/mailman/lists/*
  2. Backup the archives (mbox & html pages of archives)
    tar -zcvf /tmp/mailman-archive.tgz /var/lib/mailmain/archives/*
  3. For each list, export the configuration:
    /usr/lib/mailman/bin/config_list -o /tmp/[LISTNAME].conf [LISTNAME]
  4. For each list, export the subscribers in csv format (I used this script: https://www.msapiro.net/scripts/mailman-subscribers.py)
    ./mm-subscribers.py -c -o [LISTNAME].csv [LIST URL] [LISTNAME] [LIST ADMIN PASSWORD]
  5. copy these files to your docker host

Setup the new docker container

  1. I created volumes for lists and archives & lists
docker volume create mailman-archives
docker volume create mailman-lists
  1. Use these volumes in your container setup (e.g. docker run)
-v mailman-archives:/var/lib/mailman/archives \
-v mailman-lists:/var/lib/mailman/lists \
  1. create the lists using 'newlist'
    docker exec -it mailman newlist [LISTNAME]
  2. copy the list config files to the docker container and import them
    docker cp *.conf mailman:/tmp/ docker exec -it mailman /bin/bash /usr/lib/mailman/bin/config_list -i /tmp/[LISTNAME].conf [LISTNAME]
  3. import archives
cp -ar [LISTNAME]/* /var/lib/docker/volumes/mailman-archives/_data/private/[LISTNAME]/
chown -R root.list /var/lib/docker/volumes/mailman-archives/_data/private/[LISTNAME]
  1. import users - I opened the csv files in a spreadsheet application and copied the email addresses in to the mass subscription box in the web interface of mailman. This was not ideal because it does not update the other fields such as name and moderation status.
  2. I changed the aliases on the old server so they would forward to the new server (during the decommissioning period)
    I changed entries in /etc/aliases:
    mailman-admin: "|/var/lib/mailman/mail/mailman admin mailman"
    to
    mailman-admin: mailman-admin@lists.[NEW DOCKER CONTAINER]
  3. Refresh the aliases
    newaliases

from mailman2.

Angatar avatar Angatar commented on August 19, 2024

Glad that you migrated successfully from your existing server to this container and thank you very much for sharing your migration process here! Your post will for sure helps similar migrations and I'll point to it for reference.

from mailman2.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.