[Mailman-Users] external web interface

BRAVAL François Francois.Braval at dr8.cnrs.fr
Thu Oct 19 13:54:46 CEST 2006


Err.. No

In fact, it doesn't seem to work.
The URL is machine2.domain.com but the title of the page is machine1.domain.com
When I create a new list, it uses the machine1.domain.com domain 

If I remove the VIRTUAL_HOST_OVERVIEW = Off and set the DEFAULT_URL_HOST to machine2.domain.com. I get a 'bug' error.

See my error log.

Oct 19 13:32:48 2006 (10276) command failed: /usr/sbin/postalias /usr/local/mailman/data/aliases (status: 127, Unknown error 127)
Oct 19 13:32:48 2006 admin(10276): @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 
admin(10276): [----- Mailman Version: 2.1.9 -----] 
admin(10276): [----- Traceback ------] 
admin(10276): Traceback (most recent call last):
admin(10276):   File "/usr/local/mailman/scripts/driver", line 101, in run_main
admin(10276):     main()
admin(10276):   File "/usr/local/mailman/Mailman/Cgi/create.py", line 56, in main
admin(10276):     process_request(doc, cgidata)
admin(10276):   File "/usr/local/mailman/Mailman/Cgi/create.py", line 238, in process_request
admin(10276):     sys.modules[modname].create(mlist, cgi=1)
admin(10276):   File "/usr/local/mailman/Mailman/MTA/Postfix.py", line 232, in create
admin(10276):     _update_maps()
admin(10276):   File "/usr/local/mailman/Mailman/MTA/Postfix.py", line 53, in _update_maps
admin(10276):     raise RuntimeError, msg % (acmd, status, errstr)
admin(10276): RuntimeError: command failed: /usr/sbin/postalias /usr/local/mailman/data/aliases (status: 127, Unknown error 127)
admin(10276): [----- Python Information -----] 
admin(10276): sys.version     =   2.4.1 (#1, May 16 2005, 15:19:29) 
[GCC 4.0.0 20050512 (Red Hat 4.0.0-5)] 
admin(10276): sys.executable  =   /usr/bin/python 
admin(10276): sys.prefix      =   /usr 
admin(10276): sys.exec_prefix =   /usr 
admin(10276): sys.path        =   /usr 
admin(10276): sys.platform    =   linux2 
admin(10276): [----- Environment Variables -----] 
admin(10276): 	HTTP_COOKIE: test3+admin=280200000069d40f3645732800000031373330346536393039363237623233393263616130383239646231353366643932383335656338; test+admin=2802000000695bcb3645732800000066306166346133613861626464656366333133666162353636393864393733383731383335356535 
admin(10276): 	SERVER_SOFTWARE: Apache/2.0.54 (Fedora) 
admin(10276): 	SCRIPT_NAME: /mailman/create 
admin(10276): 	SERVER_SIGNATURE: <address>Apache/2.0.54 (Fedora) Server at machine2.domain.fr Port 80</address>
admin(10276): 
admin(10276): 	REQUEST_METHOD: POST 
admin(10276): 	HTTP_KEEP_ALIVE: 300 
admin(10276): 	SERVER_PROTOCOL: HTTP/1.1 
admin(10276): 	QUERY_STRING:  
admin(10276): 	CONTENT_LENGTH: 151 
admin(10276): 	HTTP_ACCEPT_CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.7 
admin(10276): 	HTTP_USER_AGENT: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7 
admin(10276): 	HTTP_CONNECTION: keep-alive 
admin(10276): 	HTTP_REFERER: http://machine2.domain.fr  
admin(10276): 	SERVER_NAME: machine2.domain.fr 
admin(10276): 	REMOTE_ADDR: 194.xx.xxx.11 
admin(10276): 	SERVER_PORT: 80 
admin(10276): 	SERVER_ADDR: 194.xx.xxx.157 
admin(10276): 	DOCUMENT_ROOT: /var/www/html 
admin(10276): 	PYTHONPATH: /usr/local/mailman 
admin(10276): 	SCRIPT_FILENAME: /usr/local/mailman/cgi-bin/create 
admin(10276): 	SERVER_ADMIN: root at localhost 
admin(10276): 	HTTP_HOST: machine2.domain.fr 
admin(10276): 	REQUEST_URI: /mailman/create 
admin(10276): 	HTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 
admin(10276): 	GATEWAY_INTERFACE: CGI/1.1 
admin(10276): 	REMOTE_PORT: 1315 
admin(10276): 	HTTP_ACCEPT_LANGUAGE: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3 
admin(10276): 	CONTENT_TYPE: application/x-www-form-urlencoded 
admin(10276): 	HTTP_ACCEPT_ENCODING: gzip,deflate 








> -----Message d'origine-----
> De : 
> mailman-users-bounces+francois.braval=dr8.cnrs.fr at python.org 
> [mailto:mailman-users-bounces+francois.braval=dr8.cnrs.fr at pyth
on.org] De la part de BRAVAL François
> Envoyé : jeudi 19 octobre 2006 10:20
> À : Mark Sapiro; mailman-users at python.org
> Objet : Re: [Mailman-Users] external web interface
> 
> Hi again
> 
> I will use the first solution for the moment as I want 2 web 
> servers: an internal one and one in our dmz for testing purpose.
> The VIRTUAL_HOST_OVERVIEW = Off setting works great and I got 
> no longer a 'bug' error on list creation.
> I keep the second way in mind for future usage
> Continue testing...
> 
> Thx mark
>  
> 
> > -----Message d'origine-----
> > De : Mark Sapiro [mailto:msapiro at value.net] 
> > Envoyé : mercredi 18 octobre 2006 19:40
> > À : BRAVAL François; mailman-users at python.org
> > Objet : Re: [Mailman-Users] external web interface
> > 
> > Mark Sapiro wrote:
> > 
> > >BRAVAL François wrote:
> > >> 
> > >>-add to mm_cfg.py : 
> > >>   ='machine2.mydomain.com'
> > >>  add_virtualhost('machine2.mydomain.com','machine1.mydomain.com')
> > >
> > >
> > >This has to do with the problem - see below.
> > >
> > <snip>
> > >
> > >Setting DEFAULT_URL_HOST and add_virtual_host in mm_cfg.py 
> > won't affect
> > >this. What you need in mm_cfg.py is
> > >
> > >VIRTUAL_HOST_OVERVIEW = Off
> > >
> > >so all lists will appear on all domain's overview pages.
> > 
> > 
> > Actually, if you want to access the web interface only from 
> machine2,
> > the above DEFAULT_URL_HOST and add_virtual_host settings 
> are what you
> > want, and you don't need VIRTUAL_HOST_OVERVIEW = Off, but you also
> > need to run fix_url to update the existing lists' web_page_url as
> > explained in
> > <http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq04.
> 069.htp>.
> > 
> > -- 
> > Mark Sapiro <msapiro at value.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://www.python.org/cgi-bin/faqw-mm.py
> Searchable Archives: 
> http://www.mail-archive.com/mailman-users%40python.org/
> Unsubscribe: 
> http://mail.python.org/mailman/options/mailman-users/francois.
braval%40dr8.cnrs.fr
> 
> Security Policy: 
> http://www.python.org/cgi-bin/faqw-mm.py?req=show&amp;file=faq
01.027.htp
> 



More information about the Mailman-Users mailing list