FAQ
The subscribeack.txt template file uses two variables that I would
like to change:

1) %(listinfo_url)s produces the following URL:

http://hostname/mailman/listinfo/listname

where hostname is the generic host name for the mail server.

2) %(optionsurl)s produces a similar URL with the same generic hostname:

http://hostname/mailman/options/listname/username%40domain

Instead, I would like Mailman to use the custom "host name this list
prefers for email" as entered in the General Options page of the
Administration web page. What variables would I use to do this?

I looked through the Whole Mailman FAQ, and have been searching
through the archives for this list, but I have not found anything
that seems relevant. I'm running Mailman 2.1.5 on Mac OS X Server
10.4.10.

Thanks,

- Mike

Search Discussions

  • Mark Sapiro at Dec 10, 2007 at 9:10 pm

    Michael Grueter wrote:
    The subscribeack.txt template file uses two variables that I would
    like to change:

    1) %(listinfo_url)s produces the following URL:

    http://hostname/mailman/listinfo/listname

    where hostname is the generic host name for the mail server.

    2) %(optionsurl)s produces a similar URL with the same generic hostname:

    http://hostname/mailman/options/listname/username%40domain

    Instead, I would like Mailman to use the custom "host name this list
    prefers for email" as entered in the General Options page of the
    Administration web page. What variables would I use to do this?
    %(host_name)s is exactly that.

    If you want to make a url, you would need something like

    http://%(host_name)s/mailman/listinfo/listname

    or

    http://%(host_name)s/mailman/options/listname/%(user)s

    although if that's what you're trying to do, your Mailman and/or your
    list is not properly configured.

    If you have the appropriate add_virtualhost() directives in mm_cfg.py
    for this host and you have run fix_url if necessary to give the list
    the correct web_page_url attribute, you should get the URL's you want
    from the default template.

    See some of the articles returned by
    <http://www.python.org/cgi-bin/faqw-mm.py?query=web_page_url&querytype=simple&casefold=yes&req=search>.

    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Michael Grueter at Dec 12, 2007 at 9:52 pm

    On Dec 10, 2007, at 1:10 PM, Mark Sapiro wrote:

    Michael Grueter wrote:
    The subscribeack.txt template file uses two variables that I would
    like to change:

    1) %(listinfo_url)s produces the following URL:

    http://hostname/mailman/listinfo/listname

    where hostname is the generic host name for the mail server.

    2) %(optionsurl)s produces a similar URL with the same generic
    hostname:

    http://hostname/mailman/options/listname/username%40domain

    Instead, I would like Mailman to use the custom "host name this list
    prefers for email" as entered in the General Options page of the
    Administration web page. What variables would I use to do this?
    %(host_name)s is exactly that.

    If you want to make a url, you would need something like

    http://%(host_name)s/mailman/listinfo/listname

    or

    http://%(host_name)s/mailman/options/listname/%(user)s

    although if that's what you're trying to do, your Mailman and/or your
    list is not properly configured.

    If you have the appropriate add_virtualhost() directives in mm_cfg.py
    for this host and you have run fix_url if necessary to give the list
    the correct web_page_url attribute, you should get the URL's you want
    from the default template.

    See some of the articles returned by
    <http://www.python.org/cgi-bin/faqw-mm.py?
    query=web_page_url&querytype=simple&casefold=yes&req=search>.
    Hi Mark,

    Thanks for the info. I was able to play with the variables you
    mentioned and it works. So as far as correctly configuring Mailman is
    concerned, are you saying that I should not have to edit
    subscribeack.txt in order for the "host name this list prefers for
    email" to show up instead of the generic mail server host name?

    I'm running Mac OS X Server 10.4.10 and there is a GUI admin tool for
    configuring mailing lists. This is what I used to setup my mailing
    list. Maybe it is not configuring things properly. Are you familiar
    with this tool?

    Thanks,

    - Mike
  • Mark Sapiro at Dec 13, 2007 at 12:19 am

    Michael Grueter wrote:
    On Dec 10, 2007, at 1:10 PM, Mark Sapiro wrote:

    If you have the appropriate add_virtualhost() directives in mm_cfg.py
    for this host and you have run fix_url if necessary to give the list
    the correct web_page_url attribute, you should get the URL's you want
    from the default template.

    See some of the articles returned by
    <http://www.python.org/cgi-bin/faqw-mm.py?
    query=web_page_url&querytype=simple&casefold=yes&req=search>.
    Hi Mark,

    Thanks for the info. I was able to play with the variables you
    mentioned and it works. So as far as correctly configuring Mailman is
    concerned, are you saying that I should not have to edit
    subscribeack.txt in order for the "host name this list prefers for
    email" to show up instead of the generic mail server host name?

    For purposes of discussion, let's say the "host name this list prefers
    for email" is example.com.

    Then, what I am saying is that if the URLs for your list's web pages
    should be of the form http://example.com/mailman/..., the list's
    hidden web_page_url attribute should be 'http://example.com/mailman/'
    and then %(listinfo_url)s will produce
    http://example.com/mailman/listinfo/listname and %(optionsurl)s will
    produce http://example.com/mailman/options/listname/username%40domain


    Now there are several ways to accomplish this, but first you should have

    add_virtualhost('example.com', 'example.com')

    in mm_cfg.py. Then you can run

    bin/withlist -r -r fix_url listname -u example.com

    to fix the list.

    I'm running Mac OS X Server 10.4.10 and there is a GUI admin tool for
    configuring mailing lists. This is what I used to setup my mailing
    list. Maybe it is not configuring things properly. Are you familiar
    with this tool?

    No, although I know that some people who run Apple's Mac OS X Server
    Mailman forgo Apples GUI and use Mailman's web admin interface instead.

    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Mark Sapiro at Dec 14, 2007 at 3:48 am

    Michael Grueter wrote:
    On Dec 12, 2007, at 4:19 PM, Mark Sapiro wrote:

    Now there are several ways to accomplish this, but first you should
    have

    add_virtualhost('example.com', 'example.com')

    in mm_cfg.py. Then you can run

    bin/withlist -r -r fix_url listname -u example.com

    to fix the list.
    From what I can tell, the Apple GUI does not allow configuring
    virtual hosts in Mailman, nor does their documentation mention it, so
    thank you for your information and your willingness to help. The
    commands you mentioned did the trick. I did have to change the
    withlist command like this:

    sudo bin/withlist -l -r fix_url listname -u example.com

    The two -r commands produced an error on my server and I had to add
    the -l command as withlist complained about the file not being
    locked. I also had to run it through sudo so that withlist could
    modify the files it needed.

    Yes, the -r -r was a typo on my part. Sorry about that.

    I'm glad you got it worked out.

    --
    Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmailman-users @
categoriespython
postedDec 10, '07 at 8:00p
activeDec 14, '07 at 3:48a
posts5
users2
websitelist.org

2 users in discussion

Mark Sapiro: 3 posts Michael Grueter: 2 posts

People

Translate

site design / logo © 2021 Grokbase