[Mailman-Users] Can't change host name preference
Mike Flaherty
flatts1 at yahoo.com
Fri Apr 3 17:23:22 CEST 2009
Thanks for the detailed reply.
That fixed everything!!
- Mike
--- On Fri, 4/3/09, Mark Sapiro <mark at msapiro.net> wrote:
From: Mark Sapiro <mark at msapiro.net>
Subject: Re: [Mailman-Users] Can't change host name preference
To: mflaherty at tidewise.com, mailman-users at python.org
Date: Friday, April 3, 2009, 10:46 AM
Mike Flaherty wrote:
>
>I am trying to set up Mailman on a new domain. I have done it in the past
without issue, but now I have a really bizzare problem.
>
>When I go to the "MYLIST mailing list administration General Options
Section" page, I notice the following entry preloaded in the "Host
name this list prefers for email" field...
>
>syd.xobas.net
>
>I have NO IDEA where this is coming from. It is not my domain, so I
replace it with my own.
It comes from the add_virtualhost() entry for the domain. There should
be an
add_virtualhost('web_domain', 'email_domain')
line in mm_cfg.py. Then if you create the list from the web interface
with a URL whose host name is 'web_domain', the list will be created
with host_name = 'email_domain'.
Likewise if you create the list with bin/newlist -u 'web_domain'
>However, when I click the "Submit your changes" button, it goes
to an invalid page.
You mean a 404? If so, the list's web_page_url is also messed up.
When I try again, I notice that when I hover over the button, the URL
that it translates to incorporates that "syd.xobas.net" domain into
the URL.
Huh? The button is a submit action for a form. Are you saying the POST
action URL has host "syd.xobas.net"? If so, my best guess is that
that
is the value of DEFAULT_URL_HOST and DEFAULT_EMAIL_HOST in your
installation.
>I looked all over my server (a vps running CentOS 5) for where that entry
might be coming from. I did find an occurance of it in
>
>/var/lib/mailman/archives/private/MYLIST/index.html
>
>and
>
>/var/lib/mailman/archives/private/mailman/index.html
>
>But I don't know how it got there. Where is the proper place to
replace that domain with my own?
In mm_cfg.py
DEFAULT_URL_HOST = 'your_web_domain'
DEFAULT_EMAIL_HOST = 'your_email_domain'
VIRTUAL_HOSTS.clear()
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
plus add_virtualhost() lines for any additional domains.
Then run fix_url to fix the existing list, e.g.
bin/withlist -l -a -r fix_url
--
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list
Mailman-Users at python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe:
http://mail.python.org/mailman/options/mailman-users/flatts1%40yahoo.com
Security Policy: http://wiki.list.org/x/QIA9
More information about the Mailman-Users
mailing list