From b3907f5adac969b6148d5ecd87d6788a7c640530 Mon Sep 17 00:00:00 2001 From: eaglegai Date: Thu, 3 Mar 2022 10:45:12 +0800 Subject: [PATCH] set default_data_tpye to lmdb (cherry picked from commit 6099ccdc55c57ed7299188c9b5e5592d94cbaa08) --- postfix-set-default_data_type-to-lmdb.patch | 22 +++++++++++++++++++++ postfix.spec | 10 +++++++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 postfix-set-default_data_type-to-lmdb.patch diff --git a/postfix-set-default_data_type-to-lmdb.patch b/postfix-set-default_data_type-to-lmdb.patch new file mode 100644 index 0000000..7570146 --- /dev/null +++ b/postfix-set-default_data_type-to-lmdb.patch @@ -0,0 +1,22 @@ +From 063980f92ca5963e8ed76e78d661bcbb3a381fa3 Mon Sep 17 00:00:00 2001 +From: eaglegai +Date: Thu, 3 Mar 2022 09:05:20 +0800 +Subject: [PATCH] set default_data_tpye to lmdb + +--- + conf/main.cf | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/conf/main.cf b/conf/main.cf +index 6d7b236..e27687e 100644 +--- a/conf/main.cf ++++ b/conf/main.cf +@@ -734,3 +734,6 @@ smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt + # plaintext (opportunistic TLS outbound). + # + smtp_tls_security_level = may ++ ++ ++default_database_type = lmdb +-- +2.33.0 \ No newline at end of file diff --git a/postfix.spec b/postfix.spec index ed06960..c1a53b1 100644 --- a/postfix.spec +++ b/postfix.spec @@ -23,7 +23,7 @@ Name: postfix Summary: Postfix Mail Transport Agent Version: 3.3.1 -Release: 18 +Release: 19 Epoch: 2 URL: http://www.postfix.org License: (IPL-1.0 and GPLv2+) or (EPL-2.0 and GPLv2+) @@ -47,6 +47,7 @@ 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 Patch11: postfix-use-lmdb-by-default-instead-of-libdb.patch +Patch12: postfix-set-default_data_type-to-lmdb.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 openssl-devel procps-ng @@ -112,6 +113,7 @@ PostgreSQL maps with Postfix, you need this. %patch9 -p1 %patch10 -p1 %patch11 -p1 +%patch12 -p1 sed -i \ 's|^\(\s*#define\s\+DEF_SHLIB_DIR\s\+\)"/usr/lib/postfix"|\1"%{_libdir}/postfix"|' \ @@ -554,6 +556,12 @@ fi %{postfix_doc_dir}/README_FILES/* %changelog +* Thu Mar 03 2022 gaihuiying - 2:3.3.1-19 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:set default_data_tpye to lmdb + * Tue Mar 01 2022 zhujunhao - 2:3.3.1-18 - Type:bugfix - ID:NA