FAQ
I managed to change the list URL in mm_cfg.py, so it applies to ALL
lists on the server. How do I get it to display the actual virtual
domain the list is supposed to use?

Below is what I have now. I want to display 'www.damnspam.ca' in the
footer on the resp list. The list name and email address come out
correctly.

=== Cut ===
##################################################
# Put YOUR site-specific settings below this line.
DEFAULT_EMAIL_HOST = 'karico.ca'
DEFAULT_URL_HOST = 'www.karico.ca'
DEFAULT_URL_PATTERN = 'http://%s/mailman/'
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
=== Cut ===


Kari Suomela

KARICO Business Services
Toronto, ON Canada
http://www.karico.ca - http://www.damnspam.ca

... Don't believe everything you hear or anything you say.

Search Discussions

  • Mark Sapiro at Mar 17, 2005 at 1:35 am

    ftnx at ksbase.com wrote:
    I managed to change the list URL in mm_cfg.py, so it applies to ALL
    lists on the server. How do I get it to display the actual virtual
    domain the list is supposed to use?

    Below is what I have now. I want to display 'www.damnspam.ca' in the
    footer on the resp list. The list name and email address come out
    correctly.

    === Cut ===
    ##################################################
    # Put YOUR site-specific settings below this line.
    DEFAULT_EMAIL_HOST = 'karico.ca'
    DEFAULT_URL_HOST = 'www.karico.ca'
    DEFAULT_URL_PATTERN = 'http://%s/mailman/'
    add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
    === Cut ===
    It is not clear to me from the above exactly what you're trying to
    accomplish. My guess is you have some lists you want to be in the
    www.karico.ca domain and some in the www.damnspam.ca domain. The
    e-mail domain for the www.karico.ca lists is karico.ca, and (here I'm
    really guessing) the e-mail domain for the www.damnspam.ca lists is
    damnspam.ca.

    Assuming that's what you want, you should have the following in
    mm_cfg.py. Note you don't need

    DEFAULT_URL_PATTERN = 'http://%s/mailman/'

    because you aren't changing it.

    === Cut ===
    ##################################################
    # Put YOUR site-specific settings below this line.
    DEFAULT_EMAIL_HOST = 'karico.ca'
    DEFAULT_URL_HOST = 'www.karico.ca'
    VIRTUAL_HOSTS.clear()
    add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
    add_virtualhost('www.damnspam.ca', 'damnspam.ca')
    === Cut ===

    The VIRTUAL_HOSTS.clear() is to remove the entry that was set in
    Defaults.py, in case it wouldn't be replaced (same url host key) by
    the two above.

    Then (after doing 'bin/mailmanctl restart') to pick up these changes,
    for each list in the www.karico.ca domain do

    bin/withlist -l -r fix_url listname

    and for each list in the www.damnspam.ca domain do

    bin/withlist -l -r fix_url listname --urlhost=www.damnspam.ca

    See FAQ article 4.29 for more info.
    As I said, I may not understand what you're trying to do, so this may
    not be the solution.

    --
    Mark Sapiro <msapiro at value.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Not Here at Mar 17, 2005 at 2:31 am
    Wednesday March 16 2005 17:35, Mark Sapiro wrote to Kari Suomela:


    MS> It is not clear to me from the above exactly what you're trying to
    MS> accomplish. My guess is you have some lists you want to be in the
    MS> www.karico.ca domain and some in the www.damnspam.ca domain. The

    You read my mind. :)

    Thx,


    Kari Suomela

    KARICO Business Services
    Toronto, ON Canada
    http://www.karico.ca - http://www.damnspam.ca

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmailman-users @
categoriespython
postedMar 17, '05 at 12:34a
activeMar 17, '05 at 2:31a
posts3
users2
websitelist.org

2 users in discussion

Not Here: 2 posts Mark Sapiro: 1 post

People

Translate

site design / logo © 2022 Grokbase