[Mailman-Developers] Problem 2.1a2 with aliases.db n´Postfix
Rodolfo Pilas
rodolfo@linux.org.uy
Fri, 10 Aug 2001 14:44:14 -0300
I have explained my problem in mailman-users but I continue with the
problem and my mail server is down now. For this reason I paste here my
previous postings in mailman-users. I can not add new lists into
mailman/data/aliases.db to be used by Postfix.
I appreciate all of your possible help. And I can do all test or
modifications that you suggest.
----- FIRST POSTING --------------------
Now I have problem with aliases.db file, and need help!
I uses Postfix. README.POSTFIX says:
- touch the file $mailman/data/aliases.db and make sure that both
the owner and group-owner of the file is `mailman'. Make sure
that both owner and group have read and write permission.
see ls -al /var/spool/mailman/data/aliases.db
-rw-rw-r-- 1 mailman mailman 0 Aug 9 06:07 aliases.db
well, when I create a new list I receive the following error:
Traceback (most recent call last):
File "/usr/lib/mailman/scripts/driver", line 96, in run_main
main()
File "/usr/lib/mailman/Mailman/Cgi/create.py", line 54, in main
process_request(doc, cgidata)
File "/usr/lib/mailman/Mailman/Cgi/create.py", line 178, in
process_request
sys.modules[modname].create(mlist, cgi=1)
File "/usr/lib/mailman/Mailman/MTA/Postfix.py", line 122, in create
db = dbhash.open(DBFILE, 'c')
File "/var/tmp/python-root//usr/lib/python2.0/dbhash.py", line 8, in
open
return bsddb.hashopen(file, flag, mode)
error: (22, 'Invalid argument')
I understand that problem is in the Postfix.py", line 122, in create db =
dbhash.open(DBFILE, 'c') and is not a problem of Postfix daemon running as
nobody:nobody.
The aliases.db remains 0 byte but all other task are completed (the
list can be listed and admin).
Postfix says:
postfix/local[19621]: fatal: open database
/var/spool/mailman/data/aliases.db: Invalid argument
postfix/qmgr[19291]: warning: end of input while receiving string data
from service private/local
postfix/qmgr[19291]: warning: private/local: malformed response
postfix/master[19289]: warning: process /usr/lib/postfix/local pid 19621
exit status 1
postfix/master[19289]: warning: /usr/lib/postfix/local: bad command
startup -- throttling
Can somebody help me, please??
------------ SECOND POSTING ----------------------
El Fri, 10 Aug 2001 11:16:25 -0400
Greg Ward <gward@mems-exchange.org> ha escrito:
> On 09 August 2001, Rodolfo Pilas said:
> > see ls -al /var/spool/mailman/data/aliases.db
> >
> > -rw-rw-r-- 1 mailman mailman 0 Aug 9 06:07 aliases.db
> Berkeley DB doesn't like zero-byte files. Despite what README.postfix
> says, I would delete that aliases.db file and try again. I'm guessing
> Mailman (or rather, the bsddb module) will create it for you.
No way.
I have made the following error when create a list:
1) I deleted aliases.db, as you suggest. -> Error!
2) I echo \# >> aliases.db (puaj!) -> Error!
3) I cp /etc/aliases.db mailman/data/aliases.db -> Error!
See now the error of test 3):
Traceback (most recent call last):
File "./newlist", line 192, in ?
main()
File "./newlist", line 167, in main
sys.modules[modname].create(mlist)
File "/usr/lib/mailman/Mailman/MTA/Postfix.py", line 134, in create
addlist(mlist, db, fp)
File "/usr/lib/mailman/Mailman/MTA/Postfix.py", line 91, in addlist
print >> fp, '# CREATED:', time.ctime()
TypeError: function requires at least one argument
Now I understand a problem in MTA/Postfix.py
Perhaps I need to go to mailman-dev list with my problem...
------------------
--
____________________________________________________
-=(( Rodolfo Pilas - rodolfo@linux.org.uy ))=-
-==((( Are you ready for XtraLinuX - http://xtralinux.org )))==-
-=((____________________________________________________))=-
Guarde sus mail en Echelon: OLP, Greenpeace, ETA, Hamas, Hizbullah, FMI
Public GnuPG key: http://www.keyserver.net 1024D/57153363 2001-06-02
key fingerprint = DAAE 3246 3F7D A420 B7A0 48A5 D120 C773 5715 3363