[pfx] Re: Question on lmdb - setup

Michael Tokarev via Postfix-users <[email protected]>
Newsgroups gmane.mail.postfix.user
Message-ID <[email protected]>
On 06.04.2026 06:31, Dr.-Ing. Dieter Jurzitza via Postfix-users wrote:
> Dear listmembers,
> I have a question regarding the correct setup of the lmdb - files. Is it
> correct (and sufficient ...) to execute a script like this:
> 
> LMDBFILES="access canonical helo_access relay_ccerts relay \
>             relocated sasl_passwd sender_canonical transport virtual"
> 
> for i in ${LMDBFILES}; do
>          ${POSTMAP} lmdb:${PFROOTDIR}/$i
> done
> 
> and the (lmdb) files will be used automatically instead of the ascii -
> versions? Or do I have to execute additional steps to have postfix consider
> those lmdb - files on startup?

Postfix does not use ascii versions of these files.  It always uses a
hashed version, - the question is the algorithm/format of the hashed
version, - is it btree: or lmdb: or cdb: or something else.  And this
depends on the software available on your system and the way you use
these maps.

> Would some kind soul explain the difference between the lmdb - files and the
> "normal" ascii - data?

A hashed version has a fast-lookup index in one way or another, usually
it is some binary form.  Ascii files are suitable for editing, while a
hashed version is good for looking up individual entries.

Thanks,

/mjt
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.