« VirtualBox instead of VMWare? No.Puff Unterlage und sensazionell Modell Weihnachtskerze »

Mailman url host

09/10/09

Permalink 09:44:31 pm
Categories: General

Mailman url host

Yet another “note to self” type post. I was just fumbling around with Mailman, and for some reason the web frontend was always redirecting me to http://foo.com, while I had been working on the options at http://www.foo.com. For some other reason that I didn’t really look into, even though my server redirects foo.com to www.foo.com anyway, no changes were persisted that way.

I was additionally confused because my mm_cfg.py configures the default url host to www.foo.com explicitly. I tried hacking around in the DEFAULT_URL_PATTERN, which has a %s placeholder, but when I took that out and replaced with www.foo.com directly, I got an error in the web frontend.

After a while I found out that the url host is in fact configured with the list (not entirely sure what purpose this serves – seems to me like a per-machine config would suffice). More importantly, contrary to appearances the DEFAULT_URL_HOST set up in mm_cfg.py doesn’t seem to play any role in this whatsoever. Previously I had set up my new list like this:

newlist mylist@foo.com owner@foo.com

I fixed my problem now by configuring the url host explicitly on list creation:

rmlist -a mylist
newlist -u www.foo.com mylist@foo.com owner@foo.com

Weird, but apparently necessary.

2 comments

Comment from: Laurent Lesage
Hello,

your post helped me solve the same problem. But I found sthg more appropriate afterwards and just wanted to let let you know. There is a general tools to interact with the 'lists' objects : withlist. For fixing url problems, it may ne used with [/usr/lib/mailman/bin/]fix_url.py. More infirmation in the latter file.

HTH

Best regards

Laurent
02/17/10 @ 12:18
Comment from: Oliver Sturm Email
Hi Laurent,

Thanks for that hint - I'll have a look when I have a bit more time!
02/17/10 @ 12:23

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
Please complete the song title below. Hint: enter 'h', 'e', 'a', 'v', 'e', 'n'
antispam test

Enter your email address:

Search

Oliver
MVP logo
March 2010
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31