Viktor Dukhovni via Postfix-users:
> > They dropped libdb for RHEL 10, and at least intended to change the default
> > to lmdb:
> >
> > https://src.fedoraproject.org/rpms/postfix/c/6a2621e4d73d59337dc64ba45922132286b841a1
> > https://src.fedoraproject.org/rpms/postfix/c/7235852485bb4452cd2f909d5ff9cbb6c451e08f
>
> That would have been the right time to change those two defaults.
> Perhaps Postfix should have a visible "default_cache_type" parameter
> (in addition to "default_database_type") so that a user or package
> maintainer can set:
>
> default_database_type = cdb
> defaulet_cache_type = lmdb
>
> while upstream Postfix might still have (for most/many platforms):
>
> default_database_type = hash
> defaulet_cache_type = btree
>
> and the upstream compile-time defaults for the two caches would be:
>
> > > src/global/mail_params.h:#define DEF_VERIFY_MAP
> > > "${default_cache_type}:$data_directory/verify_cache"
> > > src/global/mail_params.h:#define DEF_PSC_CACHE_MAP
> > > "${default_cache_type}:$data_directory/postscreen_cache"
>
I like that suggestion.
Note: these databases are populated on the fly, i.e. there is nmo
plain-text source file. If people must migrate existing cache
entries, then that requires:
rm -f /path/to/example.lmdb
postmap -s bree:/path/to/example | postmap -i lmdb:/path/to/example
This will enumerate all entries in file '/path/to/example.db', and
will add them to the file '/path/to/example.lmdb'.
Of course that assumes that Berkeley DB support is still available.
Otherwise, just lose the old tables and re-populate on the fly.
While testing this I discovered that "postmap -s" will not quote keys
that contain whitespace (the same problem exists with "postalias
-s"). That will be a late fix.
Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]