diff --git a/README.md b/README.md index 206a03fe6e7a6d6cd1d1a707973937f684021810..52e4bd33570c2ae3d90d34b70840c4669a39088b 100644 --- a/README.md +++ b/README.md @@ -2,17 +2,32 @@ This project was cloned from: https://gitlab.fechner.net/mfechner/mailman2sympa.git mailman-subscriber3.py from -https://www.msapiro.net/scripts/mailman-subscribers3.py -see -https://wiki.list.org/DOC/How%20do%20I%20extract%20%28export%29%20a%20list%20of%20my%20list%27s%20members%20%28subscribers%29%3F +https://www.msapiro.net/scripts/mailman-subscribers3.py see [How do I +extract (export) a list of my list's members +(subscribers)?](https://wiki.list.org/DOC/How%20do%20I%20extract%20%28export%29%20a%20list%20of%20my%20list%27s%20members%20%28subscribers%29%3F). -Initially cloned from: -https://git.fs.lmu.de/roots/mailman2sympa +Initially cloned from: https://git.fs.lmu.de/roots/mailman2sympa This setup is used to migrate mailman to sympa. Execute for each mailinglist the command: ``` -mm2sympa.sh LIST@DOMAIN +export MMPW='<your mailman2 list admin password>' +mm2sympa.sh LIST@lists.DOMAIN ``` + +This will migrate the Mailman2 list `LIST@lists.DOMAIN` to Sympa as +`LIST@sympa.DOMAIN` (note that `lists` will be replaced with `sympa` +in the domain). + +If you want to have the new list with a different name (or domain) you +can specify the new name as optional second parameter: +``` +mm2sympa.sh MMLIST@MMDOMAIN SYMPALIST@SYMPADOMAIN +``` + +For full migration support, add the [whitelist/modlist +add-in](https://github.com/sshipway/sympa-6.2-plugins/tree/master/whitelist-1.2). This +will allow migration of whitelisting and user specific moderation +flags. diff --git a/mm2sympa.sh b/mm2sympa.sh index eb17708111e75651848121df35a729a617c07c6b..fbac4dd78e8f4c0ba703b2baeced7101e2dcea55 100755 --- a/mm2sympa.sh +++ b/mm2sympa.sh @@ -107,3 +107,25 @@ fi # store migration temp data in list dir tar=$listdir/mailman2sympa.tar (cd $tmpdir && tar -cf $tar * && chown sympa: $tar) + +if [ -t 1 ]; then + cat <<EOF + +Migration successful. +You can now remove the Mailman2 list with: + +ssh root@$mmdomain rmlist -a $mmlistname + +Optionally add the following redirect to your Mailman2 server's MTA: + +$mmlistname@$mmdomain: $sympalistname@$robot + +Optionally add these redirects to your Mailman2 server's Webserver: + +RedirectMatch ^/(listinfo|options|roster)/$mmlistname https://$sympadomain/wws/info/$sympalistname +RedirectMatch ^/private/$mmlistname https://$sympadomain/wws/arc/$sympalistname +RedirectMatch ^/admin/$mmlistname https://$sympadomain/wws/admin/$sympalistname +RedirectMatch ^/admindb/$mmlistname https://$sympadomain/wws/modindex/$sympalistname + +EOF +fi