[Mailman-Users] issues with mm_cfg.py

Knabe, Troy knabe at 4j.lane.edu
Thu Jul 10 00:03:28 CEST 2008



As for DEFAULT_MSG_FOOTER, that is the default for lists created after
you made the change. It has no effect on exisitng lists. (more below)

I understand that, but it didn't seem to work that way, I will test it again.

So here is my snip of mm_cfg.py, my concern is that my "mailhost" is mydomain.district.edu, but my DEFAULT_URL_HOST (I believe) is mailmanserver.mydomain.district.edu doesn't this setting set it to mydomain.district.edu?

##################################################
# Put YOUR site-specific settings below this line.
IMAGE_LOGOS = '/images/'
DEFAULT_EMAIL_HOST = 'mydomain.district.edu'
VIRTUAL_HOSTS.clear()
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
DEFAULT_MSG_FOOTER = """_______________________________________________
%(real_name)s mailing list
%(real_name)s@%(host_name)s
http://server.mydomain.district.edu/staff/mailing
"""
DEFAULT_DIGEST_FOOTER = DEFAULT_MSG_FOOTER

>cat mm_cfg.py
<snip>
>###############################################
># Here's where we get the distributed defaults.
>
>from Defaults import *
>
>##################################################
># Put YOUR site-specific settings below this line.
>IMAGE_LOGOS = '/images/'
>DEFAULT_EMAIL_HOST = 'mydomain.district.edu'
>DEFAULT_MSG_FOOTER = """_______________________________________________
>%(real_name)s mailing list
>%(real_name)s@%(host_name)s
>http://webserver.mydomain.district.edu/staff/mailing
>"""


Also, both DEFAULT_EMAIL_HOST and DEFAULT_MSG_FOOTER are used in
Defaults.py to set other things, and those things are imported before
you make your changes, so you actually need

DEFAULT_EMAIL_HOST = 'mydomain.district.edu'
VIRTUAL_HOSTS.clear()
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
DEFAULT_MSG_FOOTER = as you have it
DEFAULT_DIGEST_FOOTER = DEFAULT_MSG_FOOTER

Otherwise, the VIRTUAL_HOSTS table will retain the Defaults.py setting
for DEFAULT_EMAIL_HOST, and similarly for DEFAULT_DIGEST_FOOTER.

--
Mark Sapiro <mark at msapiro.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