[Mailman-Users] E-mail in different domain than list server?
Alan Hagge
ahagge at wbfa.com
Mon Jun 28 22:03:52 CEST 2004
We have a situation that I wouldn't think would be TOO unique, but I
can't find a way to make it operate correctly under Mailman (version
2.1.5 in this case, but tried with 2.1.1 as well). Specifically, our
e-mail domain is completely different than our web domain:
E-mail domain: company.com
Web domain: org.othercompany.net
So in mm_cfg.py, I _think_ I should use:
DEFAULT_URL_HOST = 'org.othercompany.net'
DEFAULT_EMAIL_HOST = 'company.com'
# Because we've overriden the virtual hosts above add_virtualhost
# MUST be called after they have been defined.
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
But when I examine the pages that Mailman creates with these settings,
various links appear to be using the DEFAULT_EMAIL_HOST setting to
generate the full URL, rather than the DEFAULT_URL_HOST. For example on
the main page, where the link appears for "the list admin overview
page", the URL is: http://company.com/mailman/admin , not
http://org.othercompany.net/mailman/admin as I would have expected.
Also, at the bottom of each lists' page, the link entitled "Overview of
all <company.com> mailing lists" uses DEFAULT_EMAIL_HOST. Even the
title of the main page shows "company.com Mailing Lists".
It seems to boil down to the use of Utils.get_domain(), which appears to
use DEFAULT_EMAIL_HOST to extract the name of the domain if the
SERVER_NAME environment variable isn't set. I would have assumed they
would/shoud have used DEFAULT_URL_HOST instead. At least that's what
would work in MY case (I _think_, I haven't tried it yet).
Am I missing something? Is there some other way to obtain the desired
effect (ie. ONLY e-mails go to DEFAULT_EMAIL_HOST, ALL URLs are formed
using DEFAULT_URL_HOST)?
Thanks,
Alan Hagge
Systems Administrator
More information about the Mailman-Users
mailing list