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
bin/withlist -l -r fix_url nameofml1
bin/withlist -l -r fix_url nameofml2
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.