Changing the URL of a mailing list in Mailman

Let’s say that you have just bought a new cool domain and you want to move your mailing-lists from @lists.foo.com to @lists.bar.com.
For newly created mailing-lists, it will be enough to update the value of DEFAULT_URL_HOST in /etc/mailman/mm_cfg.py.
The existing mailing-lists however will keep on using the old domain. Only new mailing-lists are affected by that setting.

In order to fix this, you just need to run:


su -s /bin/sh list
cd /usr/lib/mailman/
bin/withlist -l -r fix_url nameofml1
bin/withlist -l -r fix_url nameofml2
etc.

Repeat for every existing mailing-list. Replace “nameofml” with the name of the mailing list.
This will reset the URL of “nameofml” to the value specified by DEFAULT_URL_HOST in /etc/mailman/mm_cfg.py.

Share

Leave a Reply