mailman/postfix suite
Hi,
I try to configure mailman with postfix.
I think the config for aliases is good but i have a permission denied.
In my config, i add alias_map for hash:/etc/aliases and virtual_maps for hash:/etc/postfix/virtual
virtual
domainepublic.net anything
testneo@domain.tld testneo testneo-admin@domain.tld testneo-admin testneo-request@domain.tld testneo-request testneo-owner@domain.tld testneo-owner
/etc/aliases
testneo: "|/var/lib/mailman/mail/wrapper post testneo" testneo-admin: "|/var/lib/mailman/mail/wrapper mailowner testneo" testneo-request: "|/var/lib/mailman/mail/wrapper mailcmd testneo" testneo-owner: testneo-admin
All is fine but the mail is not delivred.
This is the result:
Subject: Cron <mailman@vacarme> /usr/bin/python -S /var/lib/mailman/cron/senddigests X-Cron-Env: <SHELL=/bin/sh> X-Cron-Env: <HOME=/home/mailman> X-Cron-Env: <PATH=/usr/bin:/bin> X-Cron-Env: <LOGNAME=mailman> Message-Id: <20021107110002.84F61131A2@domain.tld> Date: Thu, 7 Nov 2002 12:00:02 +0100 (CET)
Traceback (most recent call last): File "/var/lib/mailman/cron/qrunner", line 283, in ? kids = main(lock) File "/var/lib/mailman/cron/qrunner", line 240, in main mlist = open_list(listname) File "/var/lib/mailman/cron/qrunner", line 174, in open_list mlist = MailList.MailList(listname, lock=0) File "/usr/lib/mailman/Mailman/MailList.py", line 79, in __init__ self.Load() File "/usr/lib/mailman/Mailman/MailList.py", line 893, in Load dict, e = self.__load(dbfile) File "/usr/lib/mailman/Mailman/MailList.py", line 870, in __load fp = open(dbfile) IOError: [Errno 13] Permission denied: '/var/lib/mailman/lists/testneo/config.db'
What can i do ?
Thanks Denis
On Thu, 2002-11-07 at 09:31, Denis wrote:
All is fine but the mail is not delivred.
This is the result:
IOError: [Errno 13] Permission denied: '/var/lib/mailman/lists/testneo/config.db'
I snipped your message to include the only relevant portion. What are the permissions on that file, and the others in /var/lib/mailman/lists ? The files should normally have permissions of at least 664 (775 for directories), and owned by the mailman user and mailman group. Also, try running the bin/check_perms utility to check your mailman installation's permissions.
--Jeremy
IOError: [Errno 13] Permission denied: '/var/lib/mailman/lists/testneo/config.db'
What can i do ?
Thanks Denis
How about checking the permissions on the file: /var/lib/mailman/lists/testneo/config.db
If your install uses the default user and group (mailman/mailman) then the group owner for the file should be mailman with read and write rights. Indeed every file and directory under ~mailman/.. should be setup as such.
If that is not working, try setting up Others with read/write to file and see if it works. I wouldn't leave it that way, but it would confirm that you have a permissions problem and not something obscure!
Good Luck - Jon Carnes
Thanks,
I respond for the twoo messages in the text.
I snipped your message to include the only relevant portion.
-->>Yes, but i think the config (alias with postfix) is important to the comprehension of the error.
What are the permissions on that file, and the others in /var/lib/mailman/lists ? -->-rw-rw---- 1 list list 2909 nov 7 13:33 config.db
-->And all the directory lists are like this one: -->drwxrwsr-x 2 root list 4096 nov 7 13:33 testneo
The files should normally have permissions of at least 664 (775 for directories), and owned by the mailman user and mailman group. Also, try running the bin/check_perms utility to check your mailman installation's permissions.
-->No problems found
If your install uses the default user and group (mailman/mailman) then the group owner for the file should be mailman with read and write rights. Indeed every file and directory under ~mailman/.. should be setup as such.
-> I install it whit debian and more or less all the files are in root:list
Except in /var/lib/mailman/bin root:root /var/lib/mailman/Mailman root:root /var/lib/mailman/scripts root:root ...
If that is not working, try setting up Others with read/write to file and see if it works. I wouldn't leave it that way, but it would confirm that you have a permissions problem and not something obscure!
-->>I change the config.db in 777 to try and i have this (i insert the permissions of each files)
Subject: Cron <mailman@vacarme> /usr/bin/python -S /var/lib/mailman/cron/qrunner X-Cron-Env: <SHELL=/bin/sh> X-Cron-Env: <HOME=/home/mailman> X-Cron-Env: <PATH=/usr/bin:/bin> X-Cron-Env: <LOGNAME=mailman> Message-Id: <20021107152301.D33E3131A2@xxx> Date: Thu, 7 Nov 2002 16:23:01 +0100 (CET)
Logging error: <StampedLogger to '/var/lib/mailman/logs/error'>
-rw-rw-r-- 1 list list 80 nov 6 23:43 error
Traceback (most recent call last): File "/usr/lib/mailman/Mailman/Logging/Logger.py", line 55, in __get_f f = self.__fp = open(self.__filename, 'a+', 1)
-rw-r--r-- 1 root root 2467 aoû 25 20:57 Logger.py
IOError: [Errno 13] Permission denied: '/var/lib/mailman/logs/error' Original log message: [Errno 13] Permission denied: '/var/lib/mailman/logs/error' Nov 07 16:23:01 2002 (7789) Delivery exception: [Errno 13] Permission denied: '/var/lib/mailman/lists/testneo/next-digest'
-rw-rw-r-- 1 list list 886 nov 7 13:33 next-digest
Nov 07 16:23:01 2002 (7789) Traceback (most recent call last): File "/usr/lib/mailman/Mailman/Handlers/HandlerAPI.py", line 82, in do_pipeline func(mlist, msg, msgdata)
-rw-r--r-- 1 root root 6843 aoû 25 20:57 HandlerAPI.py
File "/usr/lib/mailman/Mailman/Handlers/ToDigest.py", line 52, in process digestfp = open(digestfile, 'a+')
-rw-r--r-- 1 root root 14346 aoû 25 20:57 ToDigest.py
IOError: [Errno 13] Permission denied: '/var/lib/mailman/lists/testneo/next-digest'
Nov 07 16:23:01 2002 (7789) Failed config.db write, retaining old state. [Errno 13] Permission denied: '/var/lib/mailman/lists/testneo/config.db.tmp.vacarme.7789' Traceback (most recent call last): File "/var/lib/mailman/cron/qrunner", line 283, in ? kids = main(lock) File "/var/lib/mailman/cron/qrunner", line 264, in main mlist.Save() File "/usr/lib/mailman/Mailman/MailList.py", line 858, in Save self.__save(dict) File "/usr/lib/mailman/Mailman/MailList.py", line 815, in __save fp = open(fname_tmp, 'w') IOError: [Errno 13] Permission denied: '/var/lib/mailman/lists/testneo/config.db.tmp.vacarme.7789'
Thanks fot your help Denis
On Thu, Nov 07, 2002 at 03:31:41PM +0100, Denis wrote:
Hi,
I try to configure mailman with postfix.
I think the config for aliases is good but i have a permission denied.
[ ... ]
File "/usr/lib/mailman/Mailman/MailList.py", line 79, in __init__ self.Load() File "/usr/lib/mailman/Mailman/MailList.py", line 893, in Load dict, e = self.__load(dbfile) File "/usr/lib/mailman/Mailman/MailList.py", line 870, in __load fp = open(dbfile) IOError: [Errno 13] Permission denied: '/var/lib/mailman/lists/testneo/config.db'
What can i do ?
Examine the file permissions on config.db?
--
Dan Wilder <dan@ssc.com> Technical Manager SSC, Inc. P.O. Box 55549 Phone: 206-782-8808 Seattle, WA 98155-0549 URL http://www.linuxjournal.com/
participants (4)
-
Dan Wilder -
Denis -
Jeremy Portzer -
Jon Carnes