Postfix OpenLDAP LMDB Howto



This document describes:

Building Postfix with LMDB support


    AUXLIBS_LMDB="-L/usr/local/lib -llmdb"
% make

Postfix versions before 3.0 use AUXLIBS instead of AUXLIBS_LMDB. With Postfix 3.0 and later, the old AUXLIBS variable still supports building a statically-loaded LMDB database client, but only the new AUXLIBS_LMDB variable supports building a dynamically-loaded or statically-loaded LMDB database client.

Failure to use the AUXLIBS_LMDB variable will defeat the purpose of dynamic database client loading. Every Postfix executable file will have LMDB database library dependencies. And that was exactly what dynamic database client loading was meant to avoid.

Solaris may need this:

% make

The exact pathnames depend on how LMDB was installed.

When building Postfix fails with:

undefined reference to `pthread_mutexattr_destroy'
undefined reference to `pthread_mutexattr_init'
undefined reference to `pthread_mutex_lock'


% make makefiles .... AUXLIBS_LMDB="... -lpthread"

Configuring LMDB settings

Postfix provides one configuration parameter that controls LMDB database behavior.

Using LMDB maps with non-Postfix programs




Required minimum LMDB patchlevel
