postfix' newaliases

Dan Osterrath do3 at mail.inf.tu-dresden.de
Sat Nov 23 16:58:45 PST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

When trying to update the aliases database from postfix I get the following 
error:

postalias: fatal: open database /etc/aliases.db: Invalid argument

My /etc/aliases:
MAILER-DAEMON:    postmaster
postmaster:       root
hostmaster:       root

This seems to happen with all other databases from postfix that are converted 
with postfix. (i.e /etc/postfix/canonical)

Is there a problem with postfix or with db?
postfix 1.1.12
db 4.1.24-8
C{,XX}FLAGS="-O2 -march=k6 -fomit-frame-pointer -s"

PS: postfix ist installed with the following patch to compile with the new 
version of db:
diff -Naur postfix-1.1.12.orig/src/util/dict_db.c 
postfix-1.1.12/src/util/dict_db.c
- --- postfix-1.1.12.orig/src/util/dict_db.c      2002-11-24 02:22:42.000000000 
+0100
+++ postfix-1.1.12/src/util/dict_db.c   2002-11-24 02:24:22.000000000 +0100
@@ -520,7 +520,7 @@
        msg_fatal("set DB cache size %d: %m", DICT_DB_CACHE_SIZE);
     if (type == DB_HASH && db->set_h_nelem(db, DICT_DB_NELM) != 0)
        msg_fatal("set DB hash element count %d: %m", DICT_DB_NELM);
- -    if ((errno = db->open(db, db_path, 0, type, db_flags, 0644)) != 0)
+    if ((errno = db->open(db, db_path, 0, (DBTYPE*)type, db_flags, 0644, 
(size_t)0)) != 0)
        msg_fatal("open database %s: %m", db_path);
     if ((errno = db->fd(db, &dbfd)) != 0)
        msg_fatal("get database file descriptor: %m");

PPS: I tried to grep through the source of postfix and db but could not find 
the error string "Invalid argument".

- -- 
- ----------------------------------------------------------------------
%> ln -s /dev/null /dev/brain
%> ln -s /dev/urandom /dev/world
%> dd if=/dev/world of=/dev/brain
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE94CRJ9NbB8EM160MRAr2GAKDHN4CrY1GUMDVf6fITLErTQNX3IgCeOOqW
bk2Txp2K3R0QgEaJ+fZa1hw=
=53+U
-----END PGP SIGNATURE-----

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-support' in the subject header of the message



More information about the blfs-support mailing list