[Mailman-Users] aliases assistant

Diana Huang diana.huang at majitek.com
Fri Jun 17 03:10:03 CEST 2005


Hi Mark,

Pretty thanks. I followed your steps to change the perssion. 
/usr/local/mailman/bin/newlist works pretty well. After I create a list by 
using bin/newlist, /etc/mailman.aliases has aliases for that list. However, 
when I create a list in the web (http://mydomain.com/mailman/create), I got 
some errors (See the following).  And /etc/mailman.aliases doesn't have 
aliases for the list I created, but /usr/local/mailman/data/aliases file 
does have aliases for that list

My web server runs as 'www', so my /etc/sudoers file is like this

www All= NOPASSWD: /usr/local/sbin/mailman.aliases
mailman ALL=NOPASSWD: /usr/local/sbin/mailman.aliases

Is it still file permission problem? (looks like...but I did change the 
permission )

Thanks, Diana

 Traceback:

Traceback (most recent call last):
  File "/usr/local/mailman/scripts/driver", line 87, in run_main
    main()
  File "/usr/local/mailman/Mailman/Cgi/create.py", line 55, in main
    process_request(doc, cgidata)
  File "/usr/local/mailman/Mailman/Cgi/create.py", line 226, in 
process_request
    sys.modules[modname].create(mlist, cgi=1)
  File "/usr/local/mailman/Mailman/MTA/Postfix.py", line 232, in create
    _update_maps()
  File "/usr/local/mailman/Mailman/MTA/Postfix.py", line 53, in _update_maps
    raise RuntimeError, msg % (acmd, status, errstr)
RuntimeError: command failed: /usr/bin/sudo /usr/local/sbin/mailman.aliases 
/usr/local/mailman/data/aliases (status: 1, Operation not permitted Python 
information:Variable Value sys.version 2.2.2 (#1, Feb 24 2003, 19:13:11) 
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)]  sys.executable /usr/bin/python 
sys.prefix /usr  sys.exec_prefix /usr  sys.path /usr  sys.platform 
inux2  --------------------------------------------------------------------------------Environment 
variables:Variable Value HTTP_ACCEPT 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 
CONTENT_TYPE  application/x-www-form-urlencoded  HTTP_REFERER 
http://testbed.majitek.com/mailman/create  SERVER_SOFTWARE  Apache/1.3.19 
(Unix)  PYTHONPATH  /usr/local/mailman  SCRIPT_FILENAME 
/usr/local/mailman/cgi-bin/create  SERVER_ADMIN  root at testbed.magicrock.net 
SCRIPT_NAME  /mailman/create  SERVER_SIGNATURE  Apache/1.3.19 Server at 
testbed.majitek.com Port 80 REQUEST_METHOD  POST  HTTP_HOST 
testbed.majitek.com  HTTP_KEEP_ALIVE  300  SERVER_PROTOCOL  HTTP/1.1 
QUERY_STRING   REQUEST_URI  /mailman/create  CONTENT_LENGTH  132 
HTTP_ACCEPT_CHARSET  ISO-8859-1,utf-8;q=0.7,*;q=0.7  HTTP_USER_AGENT 
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 
Firefox/1.0.4  HTTP_CONNECTION  keep-alive  SERVER_NAME  testbed.majitek.com 
REMOTE_PORT  1145  REMOTE_ADDR  192.168.0.192  HTTP_ACCEPT_LANGUAGE 
en-us,en;q=0.5  SERVER_PORT  80  GATEWAY_INTERFACE  CGI/1.1 
HTTP_ACCEPT_ENCODING  gzip,deflate  SERVER_ADDR  192.168.0.104 
DOCUMENT_ROOT  /usr/local/apache/share/htdocs 




More information about the Mailman-Users mailing list