diff --git a/postfix-use-lmdb-by-default-instead-of-libdb.patch b/postfix-use-lmdb-by-default-instead-of-libdb.patch new file mode 100644 index 0000000000000000000000000000000000000000..164134e6e189a9e6738bd2f9d2392f3eb936d589 --- /dev/null +++ b/postfix-use-lmdb-by-default-instead-of-libdb.patch @@ -0,0 +1,34 @@ +From 771dfac772b6d4893b6043b70336fae46e60351f Mon Sep 17 00:00:00 2001 +From: eaglegai +Date: Mon, 24 May 2021 20:11:06 +0800 +Subject: [PATCH] use lmdb by default instead of libdb + +--- + conf/main.cf | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/conf/main.cf b/conf/main.cf +index 495e346..6d7b236 100644 +--- a/conf/main.cf ++++ b/conf/main.cf +@@ -402,7 +402,7 @@ unknown_local_recipient_reject_code = 550 + # "postfix reload" to eliminate the delay. + # + #alias_maps = dbm:/etc/aliases +-alias_maps = hash:/etc/aliases ++alias_maps = lmdb:/etc/aliases + #alias_maps = hash:/etc/aliases, nis:mail.aliases + #alias_maps = netinfo:/aliases + +@@ -413,7 +413,7 @@ alias_maps = hash:/etc/aliases + # + #alias_database = dbm:/etc/aliases + #alias_database = dbm:/etc/mail/aliases +-alias_database = hash:/etc/aliases ++alias_database = lmdb:/etc/aliases + #alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases + + # ADDRESS EXTENSIONS (e.g., user+foo) +-- +1.8.3.1 + diff --git a/postfix.spec b/postfix.spec index 1ff21cf6a30f0f5916e1aabf8f76562d3babc247..42f0a20c2a0b2cd04fdfc8d3f222959c5657a324 100644 --- a/postfix.spec +++ b/postfix.spec @@ -23,7 +23,7 @@ Name: postfix Summary: Postfix Mail Transport Agent Version: 3.3.1 -Release: 16 +Release: 17 Epoch: 2 URL: http://www.postfix.org License: (IPL-1.0 and GPLv2+) or (EPL-2.0 and GPLv2+) @@ -47,6 +47,8 @@ Patch8: fix-build-error-with_glibc2.30-ftbfs.patch Patch9: fix-multiple-definition-error-with-gcc-10.patch Patch10: postfix-3.6.2-glibc-234-build-fix.patch +Patch9000: postfix-use-lmdb-by-default-instead-of-libdb.patch + BuildRequires: perl-generators pkgconfig zlib-devel systemd-units libicu-devel libnsl2-devel gcc m4 openldap-devel BuildRequires: cyrus-sasl-devel pcre-devel mariadb-connector-c-devel postgresql-devel sqlite-devel openssl-devel procps-ng BuildRequires: chrpath @@ -111,6 +113,8 @@ PostgreSQL maps with Postfix, you need this. %patch9 -p1 %patch10 -p1 +%patch9000 -p1 + sed -i \ 's|^\(\s*#define\s\+DEF_SHLIB_DIR\s\+\)"/usr/lib/postfix"|\1"%{_libdir}/postfix"|' \ src/global/mail_params.h @@ -548,6 +552,12 @@ fi %{postfix_doc_dir}/README_FILES/* %changelog +* Tue Mar 01 2022 xingwei - 2:3.3.1-17 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:set lmdb database by default in main.cf + * Wed Feb 23 2022 xihaochen - 2:3.3.1-16 - Type:bugfix - ID:NA