Wietse Venema via Postfix-users:
> Viktor Dukhovni via Postfix-users:
> > > I like that suggestion. 
> > 
> > All that remains is bikeshedding the name, perhaps
> > "default_cache_database_type" would be more clear (at the cost of making
> > an already long parameter name longer).  Some might be tempted to deduce
> > what the parameter does solely from its name, and not its documentation.

Here is a proposal that avoids deep invasive changes shortly before 
a new stable releaas:

    address_verify_map = $default_cache_db_type:$data_directory/verify_cache
    postscreen_cache_map = 
$default_cache_db_type:$data_directory/postscreen_cache

With a built-in default of:

    default_cache_db_type (default: lmdb if default_database_type is lmdb, 
otherwise btree)
        The default database type for address_verify_map and 
postscreen_cache_map.

This can be overruled at build time with:

    make makefiles default_cache_db_type=whatever

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.

        Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to