[Mailman-Users] Bug reported when creating a new list from webpage
Mark Dale
mdale at geniusmoon.com.au
Wed Jul 2 03:40:25 CEST 2008
That's great Mark, many thanks.
Just recapping for anyone else's interest.
------------------------------------------------------------------
After installing Mailman, when first attemping to create a new list
using the webpage - it returned a "You don't have permission".
(Creating a new list from the terminal was working okay)
This was fixed by running: sudo mmsitepass -c myNewPassword
and restarting: sudo /etc/init.d/mailman restart
Then, when trying to create a new list from the webpage, it returned an
error "Bug in Mailman ..."
This was fixed by settig correct permissions and group/owner on the
files as Mark explained.
% /var/lib/mailman/data: ll
total 76
drwxrwsr-x 2 root list 4096 Jul 1 06:19 .
drwxrwsr-x 9 root list 4096 Jun 30 04:33 ..
-rw-rw---- 1 root list 1865 Jul 1 06:19 aliases
-rw-rw-r-- 1 list list 12288 Jul 1 06:19 aliases.db
-rw-rw---- 1 list list 4719 Jul 1 06:06 bounce-events-14733.pck
-rw-r----- 1 root list 41 Jul 1 05:26 creator.pw
-rw-rw-r-- 1 list list 1620 Jun 30 05:01 heldmsg-testlist-1.pck
-rw-rw-r-- 1 root list 10 Jun 30 04:33 last_mailman_version
-rw-r--r-- 1 root list 14114 Mar 7 05:22 sitelist.cfg
-rw-rw---- 1 www-data list 1314 Jul 1 06:19 virtual-mailman
-rw-rw---- 1 list list 12288 Jul 1 06:19 virtual-mailman.db
% /var/lib/mailman/data: sudo /etc/init.d/mailman restart
------------------------------------------------------------------
Mark Sapiro wrote:
> Mark Dale wrote:
>> Can anyone shed any light on this error I get when creating a new list
>>from the webpage. (I can create lists okay from the "newlist" command)
>> *** extract from the error log ***
>> ------------------------------
>>
>> Jul 01 05:27:46 2008 (14663) command failed: /usr/sbin/postmap
>> /var/lib/mailman/data/virtual-mailman (status: 1, Operation not permitted)
>> Jul 01 05:27:46 2008 admin(14663):
>> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
>> admin(14663): [----- Mailman Version: 2.1.9 -----]
>> admin(14663): [----- Traceback ------]
>> admin(14663): Traceback (most recent call last):
>> admin(14663): File "/var/lib/mailman/scripts/driver", line 110, in
>> run_main
>> admin(14663): main()
>> admin(14663): File "/usr/lib/mailman/Mailman/Cgi/create.py", line 56,
>> in main
>> admin(14663): process_request(doc, cgidata)
>> admin(14663): File "/usr/lib/mailman/Mailman/Cgi/create.py", line 238,
>> in process_request
>> admin(14663): sys.modules[modname].create(mlist, cgi=1)
>> admin(14663): File "/usr/lib/mailman/Mailman/MTA/Postfix.py", line
>> 232, in create
>> admin(14663): _update_maps()
>> admin(14663): File "/usr/lib/mailman/Mailman/MTA/Postfix.py", line 60,
>> in _update_maps
>> admin(14663): raise RuntimeError, msg % (vcmd, status, errstr)
>> admin(14663): RuntimeError: command failed: /usr/sbin/postmap
>> /var/lib/mailman/data/virtual-mailman (status: 1, Operation not permitted)
>
>
> The issue is with ownership and/or permissions of virtual-mailman*
>
> When running create from the web, the process is running as the web
> server user and the mailman group because the create wrapper is group
> mailman and SETGID.
>
> When this user:group runs postmap, it fails as above. Permissions and
> ownership of the aliases* and virtual-mailman* files should be
>
> -rw-rw---- 1 root mailman 6308 Jun 21 12:51 aliases
> -rw-rw---- 1 mailman mailman 12288 Jun 21 12:51 aliases.db
> -rw-rw---- 1 apache mailman 8051 Jun 21 12:51 virtual-mailman
> -rw-rw---- 1 mailman mailman 12288 Jun 21 12:51 virtual-mailman.db
>
> Note that all files are group writable and group mailman and the .db
> files (particularly aliases.db) are also owned by mailman. This latter
> controls the user (and that user's default group) that Postfix uses to
> run the pipes.
>
> The owner of aliases and virtual-mailman is not important. It may be
> root, apache or something else depending on who last created a list.
>
More information about the Mailman-Users
mailing list