excess.org

Ian Ward

Software
CKAN contributor/tech lead
Urwid author
PyRF contributor
Speedometer author

Presentations
Contributing to Open Source
IASA E-Summit, 2014-05-16
Urwid Applications
2012-11-14
Urwid Intro
2012-01-22
Unfortunate Python
2011-12-19
Django 1.1
2009-05-16

Writing
Moving to Python 3
2011-02-17
Article Tags

Home

Ian Ward's email:
first name at this domain

wardi on OFTC, freenode and github

Locations of visitors to this page

Changing the host name in Mailman lists

Posted on 2007-07-15, last modified 2008-05-14.

Mailman had me scratching my head for some time this weekend while I was trying to figure out how to change the URLs generated it its administration site. It turns out that Mailman copies configuration information into its list data at list creation time and then ignores changes to its main configuration file.

After modifying the OCLUG web site to redirect www.oclug.on.ca to oclug.on.ca (it's good for search ranking to not have duplicate URLs) part of the mailman administration interface stopped working. The problem was traced to the fact that the <FORM> tags pointed to www.oclug.on.ca and when apache redirected the request the post data was lost.

If mailman had used URLs without the host name there would be no problem. Grepping around the configuration directories and the individual list configurations revealed no instances of www.oclug.on.ca. However, Google helped me find the script that lets you change these little hidden values:

withlist -l -r fix_url $listname -v

This will update the host names for $listname from the main configuration file, and -v shows you what the changes are.

Tags: OCLUG Mailman