Greetings all -
My current build is running Mailman version: 2.1.20, on a long-in-the-tooth Scientific Linux release 7.9 (Nitrogen), with sendmail
I'd like to go RHEL9, and Mailman 3.3.8 (Tom Sawyer), with postfix, on a new parallel VM - plan is to build a parallel server, same hostname, different IP, migrate all data/archives and billing info (we have that scripted), then do a dns change to point to the new IP after testing.
Are there any means of scripted migration from old to new? Can I go from 2.1.20 direct to 3.3.8 - or do I need to go to 2.1.39 as an intermediate first?
It's a service we provide, and we like to keep the our level of interaction to a minimum, so 2.1.20 was the first built "I" did back when RHEL7/SL7 was in it's early days. Going latest would fill that mold for us for a while.
I'm currently looking at the wiki.list.org, but am having troubles locating Mailman3. version Site Admin doc - they seem to be v2.1 - I could be missing them. I'm old.
–
Jeff Westgate
UNIX/Linux Support Team Lead
Transformation and Shared Services, Division of Information Systems
501.682.5231 ofc | 501.412.6542 cell | 501.682.4310 fax
On Thu, Jan 26, 2023 at 3:58 PM Jeffrey Westgate < Jeffrey.Westgate@arkansas.gov> wrote:
Greetings all -
My current build is running Mailman version: 2.1.20, on a long-in-the-tooth Scientific Linux release 7.9 (Nitrogen), with sendmail
I'd like to go RHEL9, and Mailman 3.3.8 (Tom Sawyer), with postfix, on a new parallel VM - plan is to build a parallel server, same hostname, different IP, migrate all data/archives and billing info (we have that scripted), then do a dns change to point to the new IP after testing.
Are there any means of scripted migration from old to new?
There is a host on which I had several lists. A number of lists were related to one domain (domain1.name) and one list was on a different domain (domain2.name) After I had completed the whole process of installing MM3 (in a virtualenv), I created two sites under /admin. After having ensured that the old (MM2) directories were readable by the MM3 user, I did this (from the virtualenv): #1 - Created the lists in MM3 for m in list1 list2 list2 listN; do /opt/mailman/mm/venv/bin/mailman create $m@domain1.name; done # for the lists that shared a domain /opt/mailman/mm/venv/bin/mailman create LIST@domain2.name # For the other list
#2 - Imported the list configs into MM3 for m in list1 list2 list2 listN; do /opt/mailman/mm/venv/bin/mailman import21 $m@domain1.name /var/list/lists/$m/config.pck; done /opt/mailman/mm/venv/bin/mailman import21 LIST@domain2.name /var/list/lists/LIST/config.pck
#3 - Imported the archives in MM3 for m in list1 list2 list2 listN; do /opt/mailman/mm/bin/django-admin hyperkitty_import -l $m@domain1.name /var/list/archives/private/$m.mbox/$m.mbox; done /opt/mailman/mm/bin/django-admin hyperkitty_import -l LIST@domain2.name /var/list/archives/private/LIST.mbox/LIST.mbox
#4 - Index the lists with '/opt/mailman/mm/bin/django-admin update_index_one_list' LIST@DOMAIN
You could script that process, no? PS: On another site, I encountered issues with the mbox from MM2 having some characters that the import process did not like. It was also kinda related to MySQL. I am not sure if the same would affect PostgreSQL, but I am mentioning just so that you know you need to watch the archive import process keenly, as that is perhaps the most critical part of the migration - archives!
Can I go from 2.1.20 direct to 3.3.8 - or do I need to go to 2.1.39 as an intermediate first?
I don't think it is necessary, because I haven't seen any documentation saying so. Why did you not update your 2.1.20 despite the security patches/enhancements? Or it's a case of if it ain'r br0ken, don't touch it? :-)
It's a service we provide, and we like to keep the our level of interaction
to a minimum, so 2.1.20 was the first built "I" did back when RHEL7/SL7 was in it's early days. Going latest would fill that mold for us for a while.
Python2.7 was EoL-ed and some guy from Mars might just ask ChatGPT a question that might lead to that "for a while" giving you nightmares!
I'm currently looking at the wiki.list.org, but am having troubles locating Mailman3. version Site Admin doc - they seem to be v2.1 - I could be missing them. I'm old.
What are you looking for when you say "Site Admin doc"? Most of the things you are looking for can be found on this link below: https://docs.mailman3.org/en/latest/install/virtualenv.html
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
On 1/26/23 04:56, Jeffrey Westgate wrote:
Are there any means of scripted migration from old to new? Can I go from 2.1.20 direct to 3.3.8 - or do I need to go to 2.1.39 as an intermediate first?
The Mailman 2.1 version is not relevant. There is really no migration
process. You need to build a working Mailman 3 installation on the new
server. We recommend following
https://docs.mailman3.org/en/latest/install/virtualenv.html for that.
Once you have a working Mailman 3 installation, you can then import your
Mailman 2.1 lists and their Archives. In another reply, Odhiambo has
given some scripts for this. If you follow the virtualenv installation,
there will be differences in that scripts should be run with your venv
activated and the commands /opt/mailman/mm/venv/bin/mailman
and
/opt/mailman/mm/bin/django-admin
become just mailman
and
mailman-web
respectively.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mark Sapiro writes:
You need to build a working Mailman 3 installation on the new server. We recommend following https://docs.mailman3.org/en/latest/install/virtualenv.html for that.
That is certainly the method I would use, and have several times used. (Caveat I'm also a Mailman core developer, so, that's not really an independent opinion.)
If you are a Debian person and are building a new host from the ground up, you might find Brian Carpenter's HOWTO https://wiki.list.org/DOC/Howto_Install_Mailman3_On_Debian10 of use.
Are there any means of scripted migration from old to new https://essayservice.io/ ? Can I go from 2.1.20 direct to 3.3.8 - or do I need to go to 2.1.39 as an intermediate first?
Also true
On Thu, Feb 9, 2023 at 7:47 PM <marthasimons9999@gmail.com> wrote:
Are there any means of scripted migration from old to new https://essayservice.io/ ? Can I go from 2.1.20 direct to 3.3.8 - or do I need to go to 2.1.39 as an intermediate first?
You can migrate from any MM2-2.1.xx to the latest MM3.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
participants (5)
-
Jeffrey Westgate
-
Mark Sapiro
-
marthasimons9999@gmail.com
-
Odhiambo Washington
-
Stephen J. Turnbull