diff --git a/sendmail.etc-mail-make b/sendmail.etc-mail-make index f345b43f4170af05475ec78bb0500a67fe08ba45..e971685da8da29c7bc993f448cac197e9afbfebd 100644 --- a/sendmail.etc-mail-make +++ b/sendmail.etc-mail-make @@ -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 diff --git a/sendmail.spec b/sendmail.spec index 0a6bdbf2901046280fe8d1b70fd95305dae52751..3d22e2c13c5baacec6942b34ac7efe4bbc45a13c 100644 --- a/sendmail.spec +++ b/sendmail.spec @@ -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 - 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 - 8.17.1-4 - Type:bugfix - ID:NA