Compare commits
10 Commits
ef57f64d21
...
383a2e69e4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
383a2e69e4 | ||
|
|
11f2b616c2 | ||
|
|
9120237c41 | ||
|
|
85b19be8f1 | ||
|
|
98a046ac0e | ||
|
|
6337ad8a20 | ||
|
|
ebae80baae | ||
|
|
f9b0b41dc2 | ||
|
|
c150fe0bd2 | ||
|
|
5578c48ef3 |
@ -1,13 +0,0 @@
|
|||||||
diff --git a/src/cleanup/cleanup_message.c b/src/cleanup/cleanup_message.c
|
|
||||||
index 391c711..be5ce42 100644
|
|
||||||
--- a/src/cleanup/cleanup_message.c
|
|
||||||
+++ b/src/cleanup/cleanup_message.c
|
|
||||||
@@ -773,6 +773,8 @@ static void cleanup_header_done_callback(void *context)
|
|
||||||
/* Normalize whitespace. */
|
|
||||||
token = tok822_scan_limit(state->fullname, &dummy_token,
|
|
||||||
var_token_limit);
|
|
||||||
+ if (!token)
|
|
||||||
+ token = tok822_alloc(TOK822_QSTRING, state->fullname);
|
|
||||||
} else {
|
|
||||||
token = tok822_alloc(TOK822_QSTRING, state->fullname);
|
|
||||||
}
|
|
||||||
Binary file not shown.
BIN
postfix-3.8.4.tar.gz
Normal file
BIN
postfix-3.8.4.tar.gz
Normal file
Binary file not shown.
@ -51,15 +51,20 @@ conf_check() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
make_aliasesdb() {
|
make_aliasesdb() {
|
||||||
if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
|
local MAP=""
|
||||||
|
local ALIASESDB="$(/usr/sbin/postconf -h alias_database)"
|
||||||
|
[ "$ALIASESDB" = "hash:/etc/aliases" ] && MAP="db"
|
||||||
|
[ "$ALIASESDB" = "lmdb:/etc/aliases" ] && MAP="lmdb"
|
||||||
|
|
||||||
|
if [ "$MAP" = "db" -o "$MAP" = "lmdb" ]
|
||||||
then
|
then
|
||||||
# /etc/aliases.db may be used by other MTA, make sure nothing
|
# /etc/aliases.db|lmdb may be used by other MTA, make sure nothing
|
||||||
# has touched it since our last newaliases call
|
# has touched it since our last newaliases call
|
||||||
[ /etc/aliases -nt /etc/aliases.db ] ||
|
[ /etc/aliases -nt /etc/aliases.$MAP ] ||
|
||||||
[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
|
[ "$ALIASESDB_STAMP" -nt /etc/aliases.$MAP ] ||
|
||||||
[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
|
[ "$ALIASESDB_STAMP" -ot /etc/aliases.$MAP ] || return
|
||||||
/usr/bin/newaliases
|
/usr/bin/newaliases
|
||||||
touch -r /etc/aliases.db "$ALIASESDB_STAMP"
|
touch -r /etc/aliases.$MAP "$ALIASESDB_STAMP"
|
||||||
else
|
else
|
||||||
/usr/bin/newaliases
|
/usr/bin/newaliases
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -3,15 +3,20 @@
|
|||||||
ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp
|
ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp
|
||||||
|
|
||||||
make_aliasesdb() {
|
make_aliasesdb() {
|
||||||
if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
|
local MAP=""
|
||||||
|
local ALIASESDB="$(/usr/sbin/postconf -h alias_database)"
|
||||||
|
[ "$ALIASESDB" = "hash:/etc/aliases" ] && MAP="db"
|
||||||
|
[ "$ALIASESDB" = "lmdb:/etc/aliases" ] && MAP="lmdb"
|
||||||
|
|
||||||
|
if [ "$MAP" = "db" -o "$MAP" = "lmdb" ]
|
||||||
then
|
then
|
||||||
# /etc/aliases.db may be used by other MTA, make sure nothing
|
# /etc/aliases.db|lmdb may be used by other MTA, make sure nothing
|
||||||
# has touched it since our last newaliases call
|
# has touched it since our last newaliases call
|
||||||
[ /etc/aliases -nt /etc/aliases.db ] ||
|
[ /etc/aliases -nt /etc/aliases.$MAP ] ||
|
||||||
[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
|
[ "$ALIASESDB_STAMP" -nt /etc/aliases.$MAP ] ||
|
||||||
[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return 0
|
[ "$ALIASESDB_STAMP" -ot /etc/aliases.$MAP ] || return 0
|
||||||
/usr/bin/newaliases
|
/usr/bin/newaliases
|
||||||
touch -r /etc/aliases.db "$ALIASESDB_STAMP"
|
touch -r /etc/aliases.$MAP "$ALIASESDB_STAMP"
|
||||||
else
|
else
|
||||||
/usr/bin/newaliases
|
/usr/bin/newaliases
|
||||||
fi
|
fi
|
||||||
|
|||||||
43
postfix.spec
43
postfix.spec
@ -22,12 +22,12 @@
|
|||||||
|
|
||||||
Name: postfix
|
Name: postfix
|
||||||
Summary: Postfix Mail Transport Agent
|
Summary: Postfix Mail Transport Agent
|
||||||
Version: 3.7.2
|
Version: 3.8.4
|
||||||
Release: 4
|
Release: 1
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
URL: http://www.postfix.org
|
URL: http://www.postfix.org
|
||||||
License: (IPL-1.0 and GPLv2+) or (EPL-2.0 and GPLv2+)
|
License: (IPL-1.0 and GPLv2+) or (EPL-2.0 and GPLv2+)
|
||||||
Source0: ftp://ftp.porcupine.org/mirrors/postfix-release/official/%{name}-%{version}.tar.gz
|
Source0: http://ftp.porcupine.org/mirrors/postfix-release/official/%{name}-%{version}.tar.gz
|
||||||
Source1: postfix-etc-init.d-postfix
|
Source1: postfix-etc-init.d-postfix
|
||||||
Source2: postfix.service
|
Source2: postfix.service
|
||||||
Source3: postfix.aliasesdb
|
Source3: postfix.aliasesdb
|
||||||
@ -44,7 +44,6 @@ Patch5: pflogsumm-1.1.5-datecalc.patch
|
|||||||
Patch6: pflogsumm-1.1.5-ipv6-warnings-fix.patch
|
Patch6: pflogsumm-1.1.5-ipv6-warnings-fix.patch
|
||||||
Patch11: postfix-use-lmdb-by-default-instead-of-libdb.patch
|
Patch11: postfix-use-lmdb-by-default-instead-of-libdb.patch
|
||||||
Patch12: postfix-set-default_data_type-to-lmdb.patch
|
Patch12: postfix-set-default_data_type-to-lmdb.patch
|
||||||
Patch13: backport-postfix-3.6.2-whitespace-name-fix.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 pcre2-devel mariadb-connector-c-devel postgresql-devel sqlite-devel openssl-devel procps-ng
|
BuildRequires: cyrus-sasl-devel pcre2-devel mariadb-connector-c-devel postgresql-devel sqlite-devel openssl-devel procps-ng
|
||||||
@ -53,7 +52,7 @@ Requires(post): systemd-sysv %{_sbindir}/alternatives %{_bindir}/openssl
|
|||||||
Requires(pre): %{_sbindir}/groupadd %{_sbindir}/useradd
|
Requires(pre): %{_sbindir}/groupadd %{_sbindir}/useradd
|
||||||
Requires(preun): %{_sbindir}/alternatives
|
Requires(preun): %{_sbindir}/alternatives
|
||||||
%{?systemd_requires}
|
%{?systemd_requires}
|
||||||
Requires: diffutils findutils
|
Requires: diffutils findutils %{name}-help
|
||||||
|
|
||||||
Provides: MTA smtpd smtpdaemon server(smtp)
|
Provides: MTA smtpd smtpdaemon server(smtp)
|
||||||
Provides: %{name}-mysql %{name}-sqlite %{name}-ldap %{name}-pcre
|
Provides: %{name}-mysql %{name}-sqlite %{name}-ldap %{name}-pcre
|
||||||
@ -107,7 +106,6 @@ PostgreSQL maps with Postfix, you need this.
|
|||||||
|
|
||||||
%patch11 -p1
|
%patch11 -p1
|
||||||
%patch12 -p1
|
%patch12 -p1
|
||||||
%patch13 -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"|' \
|
||||||
@ -121,6 +119,9 @@ pushd pflogsumm-1.1.5
|
|||||||
%patch6 -p1 -b .ipv6-warnings-fix
|
%patch6 -p1 -b .ipv6-warnings-fix
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
sed -i makedefs -e '\@Linux\.@s|345|3456|'
|
||||||
|
sed -i src/util/sys_defs.h -e 's@defined(LINUX5)@defined(LINUX5) || defined(LINUX6)@'
|
||||||
|
|
||||||
for f in README_FILES/TLS_{LEGACY_,}README TLS_ACKNOWLEDGEMENTS; do
|
for f in README_FILES/TLS_{LEGACY_,}README TLS_ACKNOWLEDGEMENTS; do
|
||||||
iconv -f iso8859-1 -t utf8 -o ${f}{_,} &&
|
iconv -f iso8859-1 -t utf8 -o ${f}{_,} &&
|
||||||
touch -r ${f}{,_} && mv -f ${f}{_,}
|
touch -r ${f}{,_} && mv -f ${f}{_,}
|
||||||
@ -555,6 +556,36 @@ fi
|
|||||||
%{postfix_doc_dir}/README_FILES/*
|
%{postfix_doc_dir}/README_FILES/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jan 02 2024 gaihuiying <eaglegai@163.com> - 2:3.8.4-1
|
||||||
|
- Type:requirements
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:update postfix to 3.8.4
|
||||||
|
|
||||||
|
* Mon Aug 28 2023 gaihuiying <eaglegai@163.com> - 2:3.8.1-2
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:strip for smtp qmgr
|
||||||
|
|
||||||
|
* Tue Jul 25 2023 gaihuiying <eaglegai@163.com> - 2:3.8.1-1
|
||||||
|
- Type:requirements
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:update postfix to 3.8.1
|
||||||
|
|
||||||
|
* Tue Jun 13 2023 zhouyihang <zhouyihang3@h-partners.com> - 2:3.7.4-2
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:add require of help to fix empty symlink
|
||||||
|
|
||||||
|
* Sat Mar 11 2023 xinghe <xinghe2@h-partners.com> - 2:3.7.4-1
|
||||||
|
- Type:requirements
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:update postfix to 3.7.4
|
||||||
|
|
||||||
* Fri Mar 10 2023 gaihuiying <eaglegai@163.com> - 2:3.7.2-4
|
* Fri Mar 10 2023 gaihuiying <eaglegai@163.com> - 2:3.7.2-4
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user