main/postfix: missing lmdb support in 3.13 & edge
As per the alpine 3.13 release notes, I tried switching my postfix instance to use lmdb instead of (berkeley) hash/btree type maps for my aliases and TLS session cache. Unfortunately, postfix and the newaliases commands tell me that:
[from the log output of the postfix instance upon startup:]
Feb 18 07:00:32 carolyn postfix/smtpd[89]: error: unsupported dictionary type: lmdb
Feb 18 07:00:32 carolyn postfix/tlsmgr[91]: error: unsupported dictionary type: lmdb
Feb 18 07:00:32 carolyn postfix/tlsmgr[91]: error: unsupported dictionary type: lmdb
Feb 18 07:00:32 carolyn postfix/tlsmgr[91]: warning: lmdb:/var/lib/postfix/smtpd_scache is unavailable. unsupported dictionary type: lmdb
Feb 18 07:00:32 carolyn postfix/tlsmgr[91]: warning: lmdb:/var/lib/postfix/smtp_scache is unavailable. unsupported dictionary type: lmdb
[when running newaliases -oA/etc/postfix/aliases:]
postalias: fatal: unsupported dictionary type: lmdb. Is the postfix-lmdb package installed?
You can find my setup in this Dockerfile and I can provide full main.cf and master.cf upon request, the relevant lines from main.cf, triggering the above messages are (my other maps are living in a MariaDB):
smtpd_tls_session_cache_database = lmdb:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = lmdb:${data_directory}/smtp_scache
alias_maps = lmdb:/etc/postfix/aliases
alias_database = lmdb:/etc/postfix/aliases
As per the newaliases error, I did try to install the postfix-lmdb package, but that is no longer produced in 3.13/edge, maybe due to the change in cefc8415 ? I am not familiar enough with the postfix packaging, but assume the lmdb library still gets built, but is not included in the main postfix package.