[Mailman-Developers] Corrupted Aliases.db (Was: bug creating new lists)

J.Accino jaccino@ieev.uma.es
Wed, 21 Nov 2001 00:41:04 +0100


Definitely, the problem seems related with a corrupted aliases db.

Looking at the archives I've found a thread on past August about the same
problem and gave a try to the trick used by R.Pilas: using 'postalias
hash:/mailman/data/aliases' to build the db.  I'm then able to send messages.
But... I can't create or delete lists (!). At each attempt I get the following
errors, both related to Postfix.py and dbhash.py:

mailer:/usr/local/mailman# bin/newlist test5 me@ieev.uma.es xxxxx
Traceback (most recent call last):
  File "bin/newlist", line 188, in ?
    main()
  File "bin/newlist", line 163, in main
    sys.modules[modname].create(mlist)
  File "/usr/local/mailman/Mailman/MTA/Postfix.py", line 122, in create
    db = dbhash.open(DBFILE, 'c')
  File "/usr/local/lib/python2.2/dbhash.py", line 16, in open
    return bsddb.hashopen(file, flag, mode)
bsddb.error: (22, 'Argumento invalido')

mailer:/usr/local/mailman# bin/rmlist -a test3
Traceback (most recent call last):
  File "bin/rmlist", line 120, in ?
    main()
  File "bin/rmlist", line 100, in main
    sys.modules[modname].remove(mlist)
  File "/usr/local/mailman/Mailman/MTA/Postfix.py", line 157, in remove
    db = dbhash.open(DBFILE, 'c')
  File "/usr/local/lib/python2.2/dbhash.py", line 16, in open
    return bsddb.hashopen(file, flag, mode)
bsddb.error: (22, 'Argumento invalido')

On the other side, following the steps on Readme.Postfix, genaliases seems
to build a db unreadable by Postfix. I deleted aliases.db and rebuilt it with
genaliases. I've been then able to create new lists and delete them, but
Postfix is unable to read aliases.db and complaints with  'warning:
mail_scan_any: got EOF; expected: string' and 'warning: private/local:
malformed response'. Then, to send/receive mail I have to comment the call
to the mailman alias in postfix/main.cf

Any ideas?

JA.