Re: [Mailman-Users] rename mailman hostname
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' VIRTUAL_HOSTS.clear() add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST) DEFAULT_URL_PATTERN = 'https://%s/mailman/'
Thanks for your help! Mardin
-------------- Original message ---------------------- From: Mark Sapiro <msapiro@value.net>
mardin@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@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (1)
-
mardin@comcast.net