This is old and obsolete and should be moved to a private section.

Migrating a Mailman Mailing List Betweenbbcrandmailman

1. On bbcr

  1. Login to bbcr, then suw to root
  2. Start the bash shell using the bash command
  3. Set the $PATH to include mailman's bin directory
export PATH=/var/mailman-2.0.8ece/distribution/bin:$PATH

  1. Go to a convenient location and export user list
cd /u/trg list_members -o <list_name>_reg -r -p <list_name> list_members -o <list_name>_dig -d -p <list_name>

  1. tar the list's archives. Ther are 2 directories that need to be tar-ed: and .mbox.
cd /var/mailman-2.0.8ece/distribution/archives/private tar cvf <list_name>.tar <list_name>*

  1. Set proper permissions on the exported user lists and tar-ed archive
chown trg <list_name>*

  1. Get the list's custom listinfo.html page, if it exists
cd /var/mailman-2.0.8ece/distribution/lists/<list_name> cat listinfo.html
Copy/paste the output of cat into a text file in a text editor that we will keep open.
  1. Get the list's administrators using the config_list command
config_list -o - <list_name> | grep admin
Save those names somewhere.

2. On mailman

  1. Login to mailmanand sudo -i to enter a root shell
$ sudo -s

  1. Setup the PATH to include the mailman bin directory
export PATH=/var/mailman/bin:$PATH

  1. Go to your home folder and scp the exported files to mailman
cd ~ scp trg@bbcr.uwaterloo.ca:/u/trg/<list_name>* .

  1. Create the list with the same name as on bbcr using the create_list.sh script
create_list.sh <list_name> <admin_email@host>

  1. Look in your mail box for an email from mailman-admin@mailman.uwaterloo.ca to get your list's admin password.
  2. Restore the list of administrators.
    1. Login with the password you just received into the administration page of the list at https://mailman.uwaterloo.ca/mailman/admin/ifip_nm.
    2. Add the administrators (the ones you dumped on bbcr using config_list) separated by a newline in the appropriate field.
  3. Import the new list of members
add_members -r <list_name>_reg <list_name> add_members -d <list_name>_dig <list_name>

  1. Restore the archives
    1. On mailman, confirm the existence of 2 directories: /var/mailman/archive/private/ and /var/mailman/archive/private/.mbox. Note that the directories are set root:mailman
    2. Expand the archived archives to somewhere convenient
cd somewhere_convenient tar xvf <list_name>.tar
That should create 2 new directories in the current directory: and .mbox.
    1. Copy everything from those two folders into the mailman standard directories
cd <list_name> cp -r * /var/mailman/archive/private/<list_name> cd ../<list_name>.mbox cp -r * /var/mailman/archive/private/<list_name>.mbox

  1. Restore the custom list information page Go to https://mailman.uwaterloo.ca/mailan/edithtml/<list_name>/listinfo.html and replace the html code there with the code we got in section 1.7, but replace all occurences of links to bbcr with the corresponding links to mailman, where appropriate.

-- AlexRoman - 27 Jul 2005

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r5 - 2007-05-11 - TrevorGrove
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback