Re: [Mailman-Users] rename mailman hostname
Mark,
You are great! It works now!
If renaming the mailman (2.1.5) hostname from mailman_server1.admin.net to mailman_server2.admin.net, I know that I have to modify and add the following three lines:
# vi mm_cfg.py
DEFAULT_EMAIL_HOST = 'mailman_server2.admin.net'
DEFAULT_URL_HOST = 'mailman_server2.admin.net'
DEFAULT_URL_PATTERN = 'https://%s/mailman/'
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.
Thanks, Mardin
-------------- Original message ---------------------- From: Mark Sapiro <msapiro@value.net>
mardin@comcast.net wrote:
After I used URL of https://mailman_server2.admin.net/mailman/admin/, I could
log in the list successfully. But I could not modify the contents of configurations and do other administration work. When I tried to submit the changes, I got the following message:
"Although this page is encrypted, the information you have entered is to be
sent over an unencrypted connection and could easily be read by a third party.
Are you sure you want to continue sending this information? -> Continue"
After I clicked the Continue Botton, nothing changed about the list.
I did add the "DEFAULT_URL_PATTERN = 'http://%s/mailman/'" to mm_cfg.py and restart mailman. Did I miss some steps for renaming the mailman hostname?
If you want to use SSL, you should set
DEFAULT_URL_PATTERN = 'https://%s/mailman/'
and then run fix_url again. Also see <http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq04.045.htp>.
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
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 (2)
-
mardin@comcast.net
-
Mark Sapiro