Hello list,

I have setup a mailman environment to be able to manage multiple domains. For each domain there's running a seperate mailman instance. I'm compiling mailman with the following parameters:

DOMAIN=$1
MAILMANROOT="/usr/local/mailman/${DOMAIN}"
USERNAME="mailman-${DOMAIN}"
./configure --prefix=${MAILMANROOT} --with-var-prefix=${MAILMANROOT} --with-mailhost=${DOMAIN} --with-urlhost=lists.${DOMAIN} --with-username="${USERNAME}" --with-groupname="${USERNAME}" --with-mail-gid=${USERNAME}

There are some scripts around each mailman instance which are generated to fit on each several instance, i.e. the init script /etc/init.d/mailman-${DOMAIN}

${MAILMANROOT} is owned by mailman-${DOMAIN}:nobody and user and group writable. The webserver (httpd.itk) is running with user mailman-${DOMAIN} and group nobody, so this should fit.

When I try to create a new mailinglist I hit the page which says: "Bug in Mailman version 2.1.14". When I have a look at the error log of this mailman instance I can see this error:

Sep 30 12:10:36 2012 (8424) command failed: /usr/sbin/postalias /usr/local/mailman/zaubert.net/data/aliases (status: 1, Operation not permitted) Sep 30 12:10:36 2012 admin(8424): @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
admin(8424): [----- Mailman Version: 2.1.14 -----]
admin(8424): [----- Traceback ------]
admin(8424): Traceback (most recent call last):
admin(8424): File "/usr/local/mailman/zaubert.net/scripts/driver", line 112, in run_main
admin(8424):     main()
admin(8424): File "/usr/local/mailman/zaubert.net/Mailman/Cgi/create.py", line 56, in main
admin(8424):     process_request(doc, cgidata)
admin(8424): File "/usr/local/mailman/zaubert.net/Mailman/Cgi/create.py", line 239, in process_request
admin(8424):     sys.modules[modname].create(mlist, cgi=1)
admin(8424): File "/usr/local/mailman/zaubert.net/Mailman/MTA/Postfix.py", line 238, in create
admin(8424):     _update_maps()
admin(8424): File "/usr/local/mailman/zaubert.net/Mailman/MTA/Postfix.py", line 53, in _update_maps
admin(8424):     raise RuntimeError, msg % (acmd, status, errstr)
admin(8424): RuntimeError: command failed: /usr/sbin/postalias /usr/local/mailman/zaubert.net/data/aliases (status: 1, Operation not permitted)
admin(8424): [----- Python Information -----]
admin(8424): sys.version     =   2.6.6 (r266:84292, Sep 11 2012, 08:34:23)
[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)]
admin(8424): sys.executable  =   /usr/bin/python
admin(8424): sys.prefix      =   /usr
admin(8424): sys.exec_prefix =   /usr
admin(8424): sys.path = ['/usr/local/mailman/zaubert.net/pythonlib', '/usr/local/mailman/zaubert.net', '/usr/local/mailman/zaubert.net/scripts', '/usr/local/mailman/zaubert.net', '/usr/lib64/python26.zip', '/usr/lib64/python2.6/', '/usr/lib64/python2.6/plat-linux2', '/usr/lib64/python2.6/lib-tk', '/usr/lib64/python2.6/lib-old', '/usr/lib64/python2.6/lib-dynload', '/usr/lib/python2.6/site-packages']
admin(8424): sys.platform    =   linux2

Can you tell me with which user this command gets executed? I had a look at the aliases file:

-rw-rw----. 1 mailman-zaubert.net nobody  2159 30. Sep 13:33 aliases
-rw-r-----. 1 mailman-zaubert.net nobody 49152 30. Sep 13:33 aliases.db

I looked at the audit.log, because SELinux is enabled, but it's empty.

When I try to execute the command on the command line this works perfectly without errors:

su mailman-zaubert.net -c "/usr/sbin/postalias /usr/local/mailman/zaubert.net/data/aliases" --shell=/bin/bash

It would be great to get any help on that.

cheers
Andi
------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to