Skip to content

Mailman Migration Notes

Phil Dibowitz edited this page Dec 2, 2024 · 6 revisions
  • grab list configs in /var/lib/mailman/lists from old box
  • grab list archives in /var/lib/mailman/archives from old box

Then...

# you can get the list of lists by `ls /var/lib/mailman/lists |xargs` on the old box
lists='...'

# Create lists
for list in $lists; do
  mailman3 create -N $list@lists2.socallinuxexpo.org
done

# Import configs
for list in $lists; do
  mailman3 import21 $list@lists2.socallinuxexpo.org /tmp/lists/$list/config.pck
done

# import mail archives
for list in $lists; do
  # actual archive import
  echo "Importing archives for $list"
  mailman-web hyperkitty_import -l $list@lists2.socallinuxexpo.org /tmp/archives/private/${list}.mbox/${list}.mbox
  # required one-time full-text index (incremental updates are done by crons)
  echo "Indexing archives for $list"
  mailman-web update_index_one_list $list@lists2.socallinuxexpo.org
done
Clone this wiki locally