[Mailman-Users] rename mailman hostname

mardin at comcast.net mardin at comcast.net
Mon Nov 13 19:09:22 CET 2006


Mark ,

When I installed Mailman 2.1.5, the hostname was mailman_server1.admin.net. The Defaults.py was:
DEFAULT_EMAIL_HOST = 'mailman_server1.admin.net'
DEFAULT_URL_HOST = 'mailman_server1.admin.net'
DEFAULT_URL_PATTERN = 'http://%s/mailman/'

Since I needed to rename hostname to mailman_server2.admin.net. I added the following lines to mm_cfg.py and run fix_url and arch. The mailman server was working.
DEFAULT_EMAIL_HOST = 'mailman_server2.admin.net'
DEFAULT_URL_HOST = 'mailman_server2.admin.net'
VIRTUAL_HOSTS.clear()
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
DEFAULT_URL_PATTERN = 'https://%s/mailman/'

But when I looked at "FAQ 4.29. Where can I change a list or the default URL used for the web interface?" I found the following message:
> and some more add_virtualhost(URL_FQDN, EMAIL_FQDN) if you are using virtual hosts.

My question is:
Should I add one extra line shch as "add_virtualhost(mailman_server2.admin.net, mailman_server2.admin.net') in the mmcfg_cfg.py:
DEFAULT_EMAIL_HOST = 'mailman_server2.admin.net'
DEFAULT_URL_HOST = 'mailman_server2.admin.net'
VIRTUAL_HOSTS.clear()
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
add_virtualhost(mailman_server2.admin.net, mailman_server2.admin.net')                                          <-new
DEFAULT_URL_PATTERN = 'https://%s/mailman/'

Our Apache httpd.conf has VirtualHost directory. Does it mean we are using the virtual host of mailman_server2.admin.net?
 <VirtualHost *:80>
ServerName mailman_server2.admin.net

We only use mailman_server2.admin.net now. Our clients send email by "listname at mailman_server2.admin.net" and access Mailman by "https://mailman_server2.admin.net". Would you please tell me how to figure out "if you are using virtual hosts."? 

Thanks,
Mardin



 -------------- 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()
> >add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
> >
> >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