[Mailman-Users] rename mailman hostname

mardin at comcast.net mardin at comcast.net
Tue Oct 31 23:26:17 CET 2006

Mark ,

In my Defaults.py:
$ more Defaults.py
DEFAULT_EMAIL_HOST = 'mailman_server1.admin.net'
DEFAULT_URL_HOST = 'mailman_server1.admin.net'

Since I need to rename hostname to mailman_server2.admin.net, I have to change it in mm_cfg.py. Thanks for your explanation, I will add these two lines to mm_cfg.py as follows:

DEFAULT_EMAIL_HOST = 'mailman_server2.admin.net'
DEFAULT_URL_HOST = 'mailman_server2.admin.net'
DEFAULT_URL_PATTERN = 'https://%s/mailman/'

Thanks for your help!

 -------------- Original message ----------------------
From: Mark Sapiro <msapiro at value.net>
> mardin at comcast.net wrote:
> >
> >My question is how to use the following two lines:
> >
> >VIRTUAL_HOSTS.clear()
> >
> >For our case, is it necessary to add the above two lines? When I did a quick 
> test, the mailman server was working without adding these two lines.
> It depends on what you're doing and what's in Defaults.py. If the
> settings in Defaults.py for DEFAULT_URL_HOST and DEFAULT_EMAIL_HOST
> are correct, then you don't need the two lines in mm_cfg.py (and you
> also don't need to set DEFAULT_URL_HOST and DEFAULT_EMAIL_HOST in
> mm_cfg.py).
> If the settings in Defaults.py for DEFAULT_URL_HOST and/or
> DEFAULT_EMAIL_HOST need changing in mm_cfg.py, then you also need the
> two above lines. This affects mostly creation of new lists, but also
> fix_url and the domain of the site email address on the listinfo pages
> and some other places.
> -- 
> Mark Sapiro <msapiro at value.net>       The highway is for gamblers,
> San Francisco Bay Area, California    better use your sense - B. Dylan

More information about the Mailman-Users mailing list