changing url for administration

I need to change the url for accepting messages that are deferred within and need to be handled by the lists admin page. The submit button is pointed to a dead URL and I need to change it to list.myurl.com
Ruben
-- So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Safir 1998 http://www.mrbrklyn.com
DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002 http://www.nylxs.com - Leadership Development in Free Software http://www2.mrbrklyn.com/resources - Unpublished Archive http://www.coinhangout.com - coins! http://www.brooklyn-living.com
Being so tracked is for FARM ANIMALS and and extermination camps, but incompatible with living as a free human being. -RI Safir 2013

On 11/13/2017 08:02 PM, Ruben Safir wrote:
I need to change the url for accepting messages that are deferred within and need to be handled by the lists admin page. The submit button is pointed to a dead URL and I need to change it to list.myurl.com
See this FAQ <https://wiki.list.org/x/4030592>.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

On 11/13/2017 11:27 PM, Mark Sapiro wrote:
On 11/13/2017 08:02 PM, Ruben Safir wrote:
I need to change the url for accepting messages that are deferred within and need to be handled by the lists admin page. The submit button is pointed to a dead URL and I need to change it to list.myurl.com
See this FAQ <https://wiki.list.org/x/4030592>.
I saw that page. I don't see how it helps. It doesn't tell me how the form action is populated. I have two lists. One was working on lists.url.com and the other was working on www.url2.org, both virtual domains on apache
www.url2.org has been moved and I need to change that submit button, which seems to be nearly uniquely populated, to lists.url.com(/mailman/admindb/listname)
For that list that was originally on www.url2.org, I can access everything but the form action/submit button on http://lists.url.com/mailman/admindb/listname
<form action="http://www.url.org/mailman/admindb/listname" method="POST"> .... <hr><center><input name="discardalldefersp" value="0" type="CHECKBOX"> Discard all messages marked <em>Defer</em></center><center><input name="submit" value="Submit All Data" type="SUBMIT"></center>
and it needs to change only for listname and not otherlistname
So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Safir 1998 http://www.mrbrklyn.com
DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002 http://www.nylxs.com - Leadership Development in Free Software http://www2.mrbrklyn.com/resources - Unpublished Archive http://www.coinhangout.com - coins! http://www.brooklyn-living.com
Being so tracked is for FARM ANIMALS and and extermination camps, but incompatible with living as a free human being. -RI Safir 2013

On 11/13/2017 08:55 PM, Ruben Safir wrote:
On 11/13/2017 11:27 PM, Mark Sapiro wrote:
On 11/13/2017 08:02 PM, Ruben Safir wrote:
I need to change the url for accepting messages that are deferred within and need to be handled by the lists admin page. The submit button is pointed to a dead URL and I need to change it to list.myurl.com
You need to change the web_page_url attribute of the list. The proper way to do that is to have the correct add_virtualhost entries in mm_cfg.py and then run fix_url for the list with a command something like
bin/withlist -l -r fix_url LISTNAME --urlhost=list.myurl.com
(bin/ in the above is Mailman's bin/ directory) If you don't have a proper add_virtualhost('list.myurl.com', ...) in mm_cfg.py, this may also change the list's host_name attribute, but you can change that back via the web admin UI.
See this FAQ <https://wiki.list.org/x/4030592>.
I saw that page. I don't see how it helps. It doesn't tell me how the form action is populated.
Perhaps I should have mentioned <https://wiki.list.org/x/4030616> as well.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

On 11/14/2017 12:13 AM, Mark Sapiro wrote:
On 11/13/2017 08:55 PM, Ruben Safir wrote:
On 11/13/2017 11:27 PM, Mark Sapiro wrote:
On 11/13/2017 08:02 PM, Ruben Safir wrote:
I need to change the url for accepting messages that are deferred within and need to be handled by the lists admin page. The submit button is pointed to a dead URL and I need to change it to list.myurl.com
You need to change the web_page_url attribute of the list. The proper way to do that is to have the correct add_virtualhost entries in mm_cfg.py and then run fix_url for the list with a command something like
bin/withlist -l -r fix_url LISTNAME --urlhost=list.myurl.com
(bin/ in the above is Mailman's bin/ directory) If you don't have a proper add_virtualhost('list.myurl.com', ...) in mm_cfg.py, this may also change the list's host_name attribute, but you can change that back via the web admin UI.
See this FAQ <https://wiki.list.org/x/4030592>.
I saw that page. I don't see how it helps. It doesn't tell me how the form action is populated.
Perhaps I should have mentioned <https://wiki.list.org/x/4030616> as well.
right that is what I am saying. The email domain needs to be listname@domain.org and the url lists.domain2.org
What it says in the config file doesn't match the docs for fix_url
-- So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Safir 1998 http://www.mrbrklyn.com
DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002 http://www.nylxs.com - Leadership Development in Free Software http://www2.mrbrklyn.com/resources - Unpublished Archive http://www.coinhangout.com - coins! http://www.brooklyn-living.com
Being so tracked is for FARM ANIMALS and and extermination camps, but incompatible with living as a free human being. -RI Safir 2013

On 11/13/2017 09:34 PM, Ruben Safir wrote:
right that is what I am saying. The email domain needs to be listname@domain.org and the url lists.domain2.org
So, if you have
add_virtualhost('lists.domain2.org', 'domain.org') in mm_cfg.py, just run
bin/withlist -l -r fix_url listname --urlhost=lists.domain2.org
What it says in the config file doesn't match the docs for fix_url
I don't understand what you are saying. What doesn't match?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

what I am saying is that the documentation for fix_url_listname shows a single argument and within the file mm_cfg.py if has TWO options with a default behavior defined if only one is defined.
So the relationship between the two needs to be documented claerer (imo) so the clueless like me have a firmer understanding of the relationship
Thanks!
RIS
On 11/14/2017 12:50 AM, Mark Sapiro wrote:
On 11/13/2017 09:34 PM, Ruben Safir wrote:
right that is what I am saying. The email domain needs to be listname@domain.org and the url lists.domain2.org
So, if you have
add_virtualhost('lists.domain2.org', 'domain.org') in mm_cfg.py, just run
bin/withlist -l -r fix_url listname --urlhost=lists.domain2.org
What it says in the config file doesn't match the docs for fix_url
I don't understand what you are saying. What doesn't match?

On 11/14/2017 06:52 AM, mrbrklyn wrote:
what I am saying is that the documentation for fix_url_listname shows a single argument and within the file mm_cfg.py if has TWO options with a default behavior defined if only one is defined.
So the relationship between the two needs to be documented claerer (imo) so the clueless like me have a firmer understanding of the relationship
The documentation for fix_url says
Options: -u urlhost --urlhost=urlhost Look up urlhost in the virtual host table and set the web_page_url and host_name attributes of the list to the values found. This essentially moves the list from one virtual domain to another.
Without this option, the default web_page_url and host_name values are used.
The documentation in Defaults.py for add_virtualhost() which maintains the virtual host table referred to in the documentation for fix_url says
# Mailman needs to know about (at least) two fully-qualified domain names # (fqdn); 1) the hostname used in your urls, and 2) the hostname used in email # addresses for your domain. For example, if people visit your Mailman system # with "http://www.dom.ain/mailman" then your url fqdn is "www.dom.ain", and # if people send mail to your system via "yourlist@dom.ain" then your email # fqdn is "dom.ain". DEFAULT_URL_HOST controls the former, and # DEFAULT_EMAIL_HOST controls the latter. Mailman also needs to know how to # map from one to the other (this is especially important if you're running # with virtual domains). You use "add_virtualhost(urlfqdn, emailfqdn)" to add # new mappings. # # If you don't need to change DEFAULT_EMAIL_HOST and DEFAULT_URL_HOST in your # mm_cfg.py, then you're done; the default mapping is added automatically. If # however you change either variable in your mm_cfg.py, then be sure to also # include the following: # # add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST) # # because otherwise the default mappings won't be correct.
In other words, fix_url with a -u|--urlhost option witt set the lists web_page_url attribute based on the provided value and set the list's host_name attribute to the value obtained by looking up the email host corresponding to that url host in the virtual host table.
If that is unclear, please suggest exactly what should be changed or added to make it better.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (3)
-
Mark Sapiro
-
mrbrklyn
-
Ruben Safir