Mailman Migrating (moving)
lists from one machine to another
Set up mailman on the new machine as you would a completely new
2. On the old machine go to the mailman directory e.g.
/var/lib/mailman. Tar up following
-cvf mailman.tar archive data lists
3. Transfer the mailman.tar to the new machine and untar it ie.
4. You will now need to fix URLs if the name of the new machine differs
from the old one ie. your old machine is called oldlist.domain.com
while the new one is called newlist.domain.com.
Mailman encodes the old
name in the config.pck files in $MAILMAN/lists directory. Thus you need
to change it. To check how the URL looks like you can do following
(please change testlist to a list on your system)
| grep -i web_page_url
That will show you what URL is mailing list using e.g.
I wrote a little script to change it to the new machine URL. Put
this in a file, change paths to mailman and change the URL to point to
your new machine
for list in `ls /var/lib/mailman/lists/`
-l -r fix_url $list
5. Make sure you migrate all the aliases from /etc/aliases.
6. You are done.
Vladimir Vuksan E-mail me