[Mailman-Users] changed domains, need to change list url

Richard Barrett r.barrett at openinfo.co.uk
Tue Aug 5 20:43:18 CEST 2003


On Tuesday, August 5, 2003, at 06:06  pm, Kirk R. Wythers wrote:

> On Tue, 2003-08-05 at 16:40, Richard Barrett wrote:
>> See the FAQ entry:
>>
>> http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq04.029.htp
>>
>> Run fix_url after you have changed mm_cfg.py and do not foget to
>> mailmanctl restart.
>
> I'm restarting mailmanctl and I it keeps setting the url to the uname 
> of
> the machine. Here is the output form fix_url
>
> lorax[/usr/local/mailman/bin]$ ./withlist -l -r fix_url neighborsunited
> -v
> Importing fix_url...
> Running fix_url.fix_url()...
> Loading list neighborsunited (locked)
> Setting web_page_url to: http://lorax.forestry.umn.edu/mailman/
> Setting host_name to: lorax.forestry.umn.edu
> Saving list
> Finalizing
> lorax[/usr/local/mailman/bin]$
>
> Here is my mm_cfg (do I have to add the virtual host line?):
>
> ###############################################
> # Here's where we get the distributed defaults.
>
> from Defaults import *
>
> ##################################################
> # Put YOUR site-specific settings below this line.
>
> DEFAULT_HOST_NAME = 'neighborsunited.net'
> DEFAULT_URL       = 'http://www.neighborsunited.net'
> MAILMAN_OWNER     = 'mailman-owner@%s' % DEFAULT_HOST_NAME
>

I cited the FAQ entry in my initial response because it says the 
following at the top:

<quote>
Changing hostnames
  ------------------
These changes should be made $prefix/Mailman/mm_cfg.py. The applicable 
MM config variables are described in $prefix/Mailman/Defaults.py. 
Typically something like what follows, at the end of your mm_cfg.py, 
will do the trick:

DEFAULT_EMAIL_HOST = 'your.mailhostname.tld'
DEFAULT_URL_HOST = 'your.webhostname.tld'
VIRTUAL_HOSTS.clear()
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)

and some more add_virtualhost(URL_FQDN, EMAIL_FQDN) if you are using 
virtual hosts.
</quote>

I am at a loss to find any simpler way of expressing what needs to be 
done.

If you do this then fix_url.py will probably work as planned!

>
>>
>> On Tuesday, August 5, 2003, at 05:15  pm, Kirk R. Wythers wrote:
>>
>
> -- 
> Kirk R. Wythers			Department of Forest Resources	
> Tel: 612.625.2261		University of Minnesota
> Fax: 612.625.521		1530 Cleveland Ave. N
> Email: kwythers at umn.edu		Saint Paul, MN 55108 USA





More information about the Mailman-Users mailing list