Comments (3)
BTW - I can send email as per the suggestion you made in this post:
#1 (comment)
from mailman2.
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
- Backup the lists (not actually used)
tar -zcvf /tmp/mailman-lists.tgz /var/lib/mailman/lists/*
- Backup the archives (mbox & html pages of archives)
tar -zcvf /tmp/mailman-archive.tgz /var/lib/mailmain/archives/*
- For each list, export the configuration:
/usr/lib/mailman/bin/config_list -o /tmp/[LISTNAME].conf [LISTNAME]
- 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]
- copy these files to your docker host
Setup the new docker container
- I created volumes for lists and archives & lists
docker volume create mailman-archives
docker volume create mailman-lists
- 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 \
- create the lists using 'newlist'
docker exec -it mailman newlist [LISTNAME]
- 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]
- 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]
- 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.
- 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]
- Refresh the aliases
newaliases
from mailman2.
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)
- exim4 relay not permitted error HOT 27
- syntax error in DKIM record with BIND 9.16.1-Ubuntu (Stable Release) HOT 3
- Any docker-compose file for this tool? HOT 12
- Apache SSL certificate are not exposed as a docker volume HOT 2
- Admin interface crashed without prior config HOT 5
- Generated DKIM is too long for a TXT record HOT 1
- Digests don't work because run.sh doesn't start cron HOT 1
- mailman-request@ doesn't work because SYSTEM_ALIASES_PIPE_TRANSPORT is not set HOT 1
- Stops sending emails after rebooting the docker host HOT 3
- DEFAULT_URL_PATTERN variable line added to /etc/mm_cfg.py each time the container is restarted HOT 4
- Configuration to run multiple domains on the same server HOT 2
- How to Disable TLS 1.0 and 1.1 For Exim? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mailman2.