Bug#258311: exim4: Needs db4 support
Tor Slettnes
Tor Slettnes <tor@slett.net>, 258311@bugs.debian.org
Wed, 27 Oct 2004 16:26:19 -0700
On Jul 28, 2004, at 08:17, Andreas Metzler wrote:
> Contrary to my initial believe the upgrade for exim will be simple,
> just flush /var/spool/exim4/db* in postinst. However the important
> question is how well exim-db4.2 could access berkeley-dbs of other
> programs for reading. This does not only apply to DRAC but also to
> POP and IMAP-servers' userdatabases.
>
> There is simply not enough time to test this, imho it would need about
> a month in sid but I only have two days before the freeze left.
This being a few months ago now, I presume that you actually went ahead
with the change. Indeed, log messages from Exim4 seem to indicate that
it tries to open DB files as in either DB3 or DB4 format.
However, it still does not read the DB4 files that were written by
"DRAC". An example:
# exim4 -bhc 192.168.11.3
...
LOG: Berkeley DB error: /var/lib/drac/dracd.db: unsupported btree
version: 9
LOG: failed to open /var/lib/drac/dracd.db as a db (v3/4) file:
Success
# exim4 -bV
Exim version 4.34 #1 built 11-Sep-2004 12:28:23
...
Looking at the contents of the DB itself:
# db4.2_dump -p /var/lib/drac/dracd.db
VERSION=3
format=print
type=btree
db_pagesize=512
HEADER=END
192.168.11.2
1098919386
192.168.11.3
1098920536
DATA=END
That said, on a side note, I am also a little confused by the
"VERSION=3" header in the DB itself, because the "db3_dump" command
does not work on this file. It prints the same message:
# db3_dump -p /var/lib/drac/dracd.db
db_dump: /var/lib/drac/dracd.db: unsupported btree version: 9
db_dump: open: /var/lib/drac/dracd.db: Invalid argument
-tor