2.1b1: web-based create and DEFAULT_EMAIL_HOST?
I just created a new list via the web interface, and the 'host_name' parameter for the list was "www.cfrq.net" (the value of DEFAULT_URL_HOST) instead of "cfrq.net" (the value of DEFAULT_EMAIL_HOST).
This surprised me...
Mailman/Cgi/create.py uses the VIRTUAL_HOSTS stuff to get the correct value for host_name, but I don't have any VIRTUAL_HOSTS defined (other than the default, which should correctly map DEFAULT_URL_HOST to DEFAULT_EMAIL_HOST).
Any suggestions as to where to look would be appreciated...
-- Harald Koch <chk@pobox.com>
"HK" == Harald Koch <chk@pobox.com> writes:
HK> I just created a new list via the web interface, and the
HK> 'host_name' parameter for the list was "www.cfrq.net" (the
HK> value of DEFAULT_URL_HOST) instead of "cfrq.net" (the value of
HK> DEFAULT_EMAIL_HOST).
HK> This surprised me...
Me too.
HK> Mailman/Cgi/create.py uses the VIRTUAL_HOSTS stuff to get the
HK> correct value for host_name, but I don't have any
HK> VIRTUAL_HOSTS defined (other than the default, which should
HK> correctly map DEFAULT_URL_HOST to DEFAULT_EMAIL_HOST).
HK> Any suggestions as to where to look would be appreciated...
As you probably saw, if you don't make any calls to add_virtualhost(), the default is to add an entry mapping DEFAULT_URL_HOST -> DEFAULT_EMAIL_HOST. Even if it doesn't find the hostname returned by Utils.get_domain() in VIRTUAL_HOSTS, it should still use DEFAULT_EMAIL_HOST.
So I'm at a loss too. -Barry
So I'm at a loss too.
My bad; I'm confused about how the two configuration files get loaded.
I left out a tiny piece of information, which is that the values for DEFAULT_URL_HOST and DEFAULT_EMAIL_HOST in my Defaults.py file are incorrect. Faithfully following the directions, I change them in mm_cfg.py. Apparently, I then need to call add_virtualhost again in that file; when I do so, I get the expected result.
(I'm so embarrassed :-)
-- Harald Koch <chk@pobox.com>
"It takes a child to raze a village." -Michael T. Fry
"HK" == Harald Koch <chk@pobox.com> writes:
HK> My bad; I'm confused about how the two configuration files get
HK> loaded.
HK> I left out a tiny piece of information, which is that the
HK> values for DEFAULT_URL_HOST and DEFAULT_EMAIL_HOST in my
HK> Defaults.py file are incorrect. Faithfully following the
HK> directions, I change them in mm_cfg.py. Apparently, I then
HK> need to call add_virtualhost again in that file; when I do so,
HK> I get the expected result.
HK> (I'm so embarrassed :-)
Not your fault. I've improved documentation in Defaults.py to give more background and explanations.
-Barry
participants (2)
-
barry@zope.com -
Harald Koch