fix newaliases command error and postfix service start execption after sendmail install

This commit is contained in:
yangl777 2022-10-12 03:16:33 +00:00 committed by yangl777
parent d7004ee4e5
commit d90ce16648
2 changed files with 11 additions and 5 deletions

View File

@ -54,7 +54,7 @@ makealiasesdb() {
if [ "$(readlink -e /usr/bin/newaliases)" = /usr/sbin/sendmail.sendmail ]
then
/usr/bin/newaliases > /dev/null
touch -r /etc/aliases.db aliasesdb-stamp 2> /dev/null
touch -r /etc/aliases.dir /etc/aliases.pag aliasesdb-stamp 2> /dev/null
else
rm -f aliasesdb-stamp
fi

View File

@ -1,6 +1,6 @@
Name: sendmail
Version: 8.17.1
Release: 4
Release: 5
Summary: A classic mail transfer agent from the Unix world
License: Sendmail
URL: http://www.sendmail.org/
@ -21,7 +21,7 @@ Source13: sendmail-etc-mail-local-host-names
Source14: sendmail-etc-mail-mailertable
Source15: sendmail-etc-mail-trusted-users
BuildRequires: openssl-devel openldap-devel libnsl2-devel
BuildRequires: openssl-devel openldap-devel libnsl2-devel gdbm-devel
BuildRequires: cyrus-sasl-devel groff ghostscript m4 systemd setup >= 2.5.31-1
BuildRequires: gcc
Requires: bash >= 2.0 setup >= 2.5.31-1 %{_sbindir}/saslauthd
@ -95,9 +95,9 @@ cp devtools/M4/UNIX/library.m4 devtools/M4/UNIX/sharedlibrary.m4
export CFLAGS="${RPM_OPT_FLAGS}"
cat << EOF > config.m4
define(\`confMAPDEF', \`-DNIS -DMAP_REGEX -DSOCKETMAP -DNAMED_BIND=1')
define(\`confMAPDEF', \`-DNDBM -DNIS -DMAP_REGEX -DSOCKETMAP -DNAMED_BIND=1')
define(\`confOPTIMIZE', \`\`\`\`${RPM_OPT_FLAGS}'''')
define(\`confLIBS', \`-lnsl -lcrypt -lresolv')
define(\`confLIBS', \`-lgdbm -lgdbm_compat -lnsl -lcrypt -lresolv')
define(\`confSTDIR', \`%{_localstatedir}/log/mail')
define(\`confLDOPTS', \`-Xlinker -z -Xlinker relro -Xlinker -z -Xlinker now')
define(\`confMANOWN', \`root')
@ -467,6 +467,12 @@ exit 0
%changelog
* Wed Oct 12 2022 yanglu<yanglu72@h-partners.com> - 8.17.1-5
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: fix newaliases command error and postfix service start execption after sendmail install
* Thu Jul 28 2022 yanglu<yanglu72@h-partner.com> - 8.17.1-4
- Type:bugfix
- ID:NA