From 8424b7db08e70f16c22f80cd3dcc72062fc1d77c Mon Sep 17 00:00:00 2001 From: eaglegai Date: Tue, 25 May 2021 09:59:56 +0800 Subject: [PATCH] set lmdb database by default in main.cf --- ...use-lmdb-by-default-instead-of-libdb.patch | 34 +++++++++++++++++++ postfix.spec | 10 +++++- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 postfix-use-lmdb-by-default-instead-of-libdb.patch 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 0000000..164134e --- /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 9e7025a..86a76dd 100644 --- a/postfix.spec +++ b/postfix.spec @@ -23,7 +23,7 @@ Name: postfix Summary: Postfix Mail Transport Agent Version: 3.3.1 -Release: 11 +Release: 12 Epoch: 2 URL: http://www.postfix.org License: (IBM and GPLv2+) or (EPL-2.0 and GPLv2+) @@ -44,6 +44,7 @@ Patch9: pflogsumm-1.1.5-datecalc.patch Patch10: pflogsumm-1.1.5-ipv6-warnings-fix.patch Patch6000: fix-postfix-build-failed.patch +Patch9000: postfix-use-lmdb-by-default-instead-of-libdb.patch BuildRequires: lmdb-devel 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 tinycdb-devel openssl-devel procps-ng @@ -112,6 +113,7 @@ maps with Postfix, you need this. %patch4 -p1 -b .large-fs %patch6000 -p1 +%patch9000 -p1 sed -i \ 's|^\(\s*#define\s\+DEF_SHLIB_DIR\s\+\)"/usr/lib/postfix"|\1"%{_libdir}/postfix"|' \ @@ -512,6 +514,12 @@ fi %{postfix_doc_dir}/README_FILES/* %changelog +* Tue May 25 2021 gaihuiying - 2:3.3.1-12 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:set lmdb database by default in main.cf + * Fri Jan 15 2021 gaihuiying - 2:3.3.1-11 - Type:requirement - ID:NA