From: Jaroslav Škarvada on
The sendmail doesn't work correctly with BDB-4.8 due to regression in
BDB - the database creation fail on empty files. There is BDB-5.0 that
fixes this behaviour, but the sendmail doesn't build with it. The
problem is in preprocessor code detecting the BDB version - it rejects
the 5.0. The attached patch fixes this. If there is no problem with
BDB-4.0 (I don't know) the patch can be more simplified.

The patch:

--- sendmail-8.14.4/include/sm/bdb.h.old 2003-03-06
17:30:05.000000000 +0
+++ sendmail-8.14.4/include/sm/bdb.h 2010-04-15 16:02:41.029169004
+0200
@@ -19,7 +19,8 @@
# define DB_VERSION_MAJOR 1
# endif /* ! DB_VERSION_MAJOR */

-# if DB_VERSION_MAJOR >= 4 && DB_VERSION_MINOR >= 1
+# if (DB_VERSION_MAJOR >= 4 && DB_VERSION_MINOR >= 1) || \
+ (DB_VERSION_MAJOR >= 5)

# define DBTXN NULL ,