Geert Hendrickx via Postfix-users:
> On Fri, Dec 26, 2025 at 15:10:40 -0500, Wietse Venema via Postfix-users wrote:
> > However, to build for a non-BerkeleyDB system, people may want to use:
> >
> > make makefiles default_database_type=lmdb CCARGS="-DNO_DB ..."
> >
> > Which will already do the right thing for default_cache_db_type.
>
>
> >From RELEASE_NOTES-3.11:
> > Sites that build without Berkeley DB are suggested to use one of the
> > following commands in their build process:
> >
> > 1 - Make lmdb the default for both default_database_type
> > and default_cache_db_type.
> >
> > make makefiles CCARGS="-NO_DB ..." default_database_type=lmdb
> >
> > 2 - Make cdb the default for default_database_type, and make
> > lmdb the default for default_cache_db_type.
> >
> > make makefiles CCARGS="-NO_DB ..." default_database_type=cdb \
> > default_cache_db_type=lmdb
>
> Actually packagers building Postfix with -NO_DB (and enabling lmdb) should
> explicitly set "default_cache_db_type=lmdb" at build time in scenario 1 as
> well, otherwise it will revert to (unavailable) btree for users that change
> default_database_type to cdb or something else in their configuration, and
> break.
I don't think that is true. Here is a quick demo to verify this without
actually installing Postfix.
$ make tidy
$ make makefiles shared=no dynamicmaps=no default_database_type=lmdb
$ bin/postconf -c conf -x default_database_type default_cache_db_type
default_database_type = lmdb
default_cache_db_type = lmdb
Setting default_database_type without default_cache_db_type
will not revert default_cache_db_type to 'btree',
BTW I will fix the -NO_DB, that should be =DNO_DB.
Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]