Hello,
Currently Postfix doesn't support version 18.x of Berkeley DB.
Following patch adds support of it.
--- src/util/dict_db.c.orig 2018-11-07 07:25:54.000000000 +0900
+++ src/util/dict_db.c 2022-02-03 02:15:29.472480000 +0900
@@ -753,7 +753,7 @@
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);
db_base_buf = vstring_alloc(100);
-#if DB_VERSION_MAJOR == 6 || DB_VERSION_MAJOR == 5 || \
+#if DB_VERSION_MAJOR == 18 || DB_VERSION_MAJOR == 6 || DB_VERSION_MAJOR == 5
|| \
(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0)
if ((errno = db->open(db, 0, sane_basename(db_base_buf, db_path),
0, type, db_flags, 0644)) != 0)
Best Regards.
---
Yasuhiro Kimura