set lmdb database by default in main.cf
This commit is contained in:
parent
e04d9e00bb
commit
8424b7db08
34
postfix-use-lmdb-by-default-instead-of-libdb.patch
Normal file
34
postfix-use-lmdb-by-default-instead-of-libdb.patch
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
From 771dfac772b6d4893b6043b70336fae46e60351f Mon Sep 17 00:00:00 2001
|
||||||
|
From: eaglegai <eaglegai@163.com>
|
||||||
|
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
|
||||||
|
|
||||||
10
postfix.spec
10
postfix.spec
@ -23,7 +23,7 @@
|
|||||||
Name: postfix
|
Name: postfix
|
||||||
Summary: Postfix Mail Transport Agent
|
Summary: Postfix Mail Transport Agent
|
||||||
Version: 3.3.1
|
Version: 3.3.1
|
||||||
Release: 11
|
Release: 12
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
URL: http://www.postfix.org
|
URL: http://www.postfix.org
|
||||||
License: (IBM and GPLv2+) or (EPL-2.0 and GPLv2+)
|
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
|
Patch10: pflogsumm-1.1.5-ipv6-warnings-fix.patch
|
||||||
|
|
||||||
Patch6000: fix-postfix-build-failed.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: 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
|
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
|
%patch4 -p1 -b .large-fs
|
||||||
|
|
||||||
%patch6000 -p1
|
%patch6000 -p1
|
||||||
|
%patch9000 -p1
|
||||||
|
|
||||||
sed -i \
|
sed -i \
|
||||||
's|^\(\s*#define\s\+DEF_SHLIB_DIR\s\+\)"/usr/lib/postfix"|\1"%{_libdir}/postfix"|' \
|
's|^\(\s*#define\s\+DEF_SHLIB_DIR\s\+\)"/usr/lib/postfix"|\1"%{_libdir}/postfix"|' \
|
||||||
@ -512,6 +514,12 @@ fi
|
|||||||
%{postfix_doc_dir}/README_FILES/*
|
%{postfix_doc_dir}/README_FILES/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue May 25 2021 gaihuiying <gaihuiying1@huawei.com> - 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 <gaihuiying1@huawei.com> - 2:3.3.1-11
|
* Fri Jan 15 2021 gaihuiying <gaihuiying1@huawei.com> - 2:3.3.1-11
|
||||||
- Type:requirement
|
- Type:requirement
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user