## package options %define with_fsl no %define with_tls yes %define with_sasl1 no %define with_sasl2 yes %define with_milter yes %define with_ldap yes %define with_mysql no %define enable_pie no %define old_setup no %define sendmailcf /usr/share/sendmail-cf %define stdir /var/log/mail %define smshell /sbin/nologin %define initdir /etc/rc.d/init.d Summary: A widely used Mail Transport Agent (MTA). Name: sendmail Version: 8.13.0 Release: 1 License: Sendmail Group: System Environment/Daemons Provides: smtpdaemon Source0: ftp://ftp.sendmail.org/pub/sendmail/sendmail.%{version}.tar.gz Source1: sendmail.init %if "%{old_setup}" == "yes" Source3: aliases %endif Source4: sendmail.sysconfig Source5: sendmail.etc-mail-Makefile Source6: sendmail-redhat.mc Source7: Sendmail-sasl1.conf Source8: sendmail.pam Source9: sendmail-8.12.5-newconfig.readme Source11: Sendmail-sasl2.conf Patch3: sendmail-8.12.2-makemapman.patch Patch4: sendmail-8.12.11-smrsh-paths.patch Patch5: sendmail-8.12.2-movefiles.patch Patch7: sendmail-8.13.0-pid.patch Patch9: sendmail-8.12.7-hesiod.patch Patch10: sendmail-8.12.7-manpage.patch Patch11: sendmail-8.13.0-dynamic.patch Patch97: patch-src::MAXNAME_1024.patch Patch98: patch-src::MAXRWSETS_220.patch Patch99: patch-src::mailertable_by_mail.patch Buildroot: %{_tmppath}/%{name}-root BuildRequires: tcp_wrappers BuildRequires: db4-devel BuildRequires: hesiod-devel PreReq: /usr/sbin/alternatives Provides: %{_sbindir}/sendmail %{_bindir}/mailq %{_bindir}/newaliases Provides: %{_bindir}/rmail %{_mandir}/man1/mailq.1.gz Provides: %{_mandir}/man1/newaliases.1.gz %{_mandir}/man5/aliases.5.gz PreReq: chkconfig >= 1.3 PreReq: /usr/sbin/useradd /bin/mktemp fileutils gawk sed sh-utils Requires: procmail Requires: bash >= 2.0 %if "%{old_setup}" != "yes" Requires: setup >= 2.5.31-1 BuildRequires: setup >= 2.5.31-1 #Requires: /etc/aliases %endif %if "%{with_fsl}" == "yes" BuildRequires: fsl >= 1.2.0 PreReq: fsl >= 1.2.0 %endif %if "%{with_tls}" == "yes" BuildRequires: openssl-devel PreReq: openssl %endif %if "%{with_sasl1}" == "yes" || "%{with_sasl2}" == "yes" BuildRequires: cyrus-sasl-devel, openssl-devel PreReq: cyrus-sasl, openssl %endif %if "%{with_ldap}" == "yes" BuildRequires: openldap-devel, openssl-devel PreReq: openldap, openssl %endif %if "%{with_mysql}" == "yes" BuildRequires: mysql-devel PreReq: mysql %endif %description The Sendmail program is a very widely used Mail Transport Agent (MTA). MTAs send mail from one machine to another. Sendmail is not a client program, which you use to read your email. Sendmail is a behind-the-scenes program which actually moves your email over networks or the Internet to where you want it to go. If you ever need to reconfigure Sendmail, you will also need to have the sendmail.cf package installed. If you need documentation on Sendmail, you can install the sendmail-doc package. %package doc Summary: Documentation about the Sendmail Mail Transport Agent program. Group: Documentation %description doc The sendmail-doc package contains documentation about the Sendmail Mail Transport Agent (MTA) program, including release notes, the Sendmail FAQ, and a few papers written about Sendmail. The papers are provided in PostScript(TM) and troff formats. %package devel Summary: Extra development include files and development files. Group: System Environment/Daemons %description devel Include files and devel libraries for e.g. the milter addons as part of sendmail. %package cf Summary: The files needed to reconfigure Sendmail. Group: System Environment/Daemons Requires: m4 %description cf This package includes the configuration files you need to generate the sendmail.cf file distributed with the sendmail package. You will need the sendmail-cf package if you ever need to reconfigure and rebuild your sendmail.cf file. %prep %setup -q %patch3 -p1 -b .makemapman %patch4 -p1 -b .smrsh_paths %patch5 -p1 -b .movefiles %patch7 -p1 -b .pid %patch9 -p1 -b .hesiod %patch10 -p1 -b .manpage %patch11 -p1 -b .dynamic %patch97 -p0 -b .maxname_1024 %patch98 -p0 -b .maxrwsets_220 %patch99 -p0 -b .mailertable_by_mail %build # generate redhat config file cat > redhat.config.m4 << EOF define(\`confMAPDEF', \`-DNEWDB -DNIS -DHESIOD -DMAP_REGEX') define(\`confOPTIMIZE', \`${RPM_OPT_FLAGS}') define(\`confENVDEF', \`-I/usr/include/db4 -I/usr/kerberos/include -Wall -DXDEBUG=0 -DTCPWRAPPERS -DNETINET6 -DHES_GETMAILHOST -DUSE_VENDOR_CF_PATH=1 -D_FFR_WORKAROUND_BROKEN_NAMESERVERS -D_FFR_SMTP_SSL') define(\`confLIBDIRS', \`-L/usr/kerberos/%{_lib}') define(\`confLIBS', \`-lnsl -lwrap -lhesiod -lcrypt -ldb') define(\`confMANOWN', \`root') define(\`confMANGRP', \`root') define(\`confMANMODE', \`644') define(\`confMAN1SRC', \`1') define(\`confMAN5SRC', \`5') define(\`confMAN8SRC', \`8') define(\`confSTDIR', \`%{stdir}') define(\`STATUS_FILE', \`%{stdir}/statistics') EOF %ifarch ppc ppc64 cat >> redhat.config.m4 << EOF APPENDDEF(\`confOPTIMIZE', \`-DSM_CONF_SHM=0') EOF # %define enable_pie no %endif %if "%{enable_pie}" == "yes" %ifarch s390 s390x %define _fpie -fPIE %else %define _fpie -fpie %endif cat >> redhat.config.m4 << EOF APPENDDEF(\`confOPTIMIZE', \`%{_fpie}') APPENDDEF(\`confLIBS', \`-pie') EOF %endif %if "%{with_tls}" == "yes" cat >> redhat.config.m4 << EOF APPENDDEF(\`conf_sendmail_ENVDEF', \`-DSTARTTLS')dnl APPENDDEF(\`conf_sendmail_LIBS', \`-lssl -lcrypto')dnl EOF %endif %if "%{with_sasl1}" == "yes" cat >> redhat.config.m4 << EOF APPENDDEF(\`confENVDEF', \`-DSASL=1 -D_FFR_UNSAFE_SASL')dnl APPENDDEF(\`confLIBS', \`-lsasl -lcrypto')dnl EOF %endif %if "%{with_sasl2}" == "yes" cat >> redhat.config.m4 << EOF APPENDDEF(\`confENVDEF', \`-DSASL=2 -D_FFR_UNSAFE_SASL')dnl APPENDDEF(\`confLIBS', \`-lsasl2 -lcrypto')dnl EOF %endif %if "%{with_milter}" == "yes" cat >> redhat.config.m4 << EOF APPENDDEF(\`conf_sendmail_ENVDEF', \`-DMILTER')dnl APPENDDEF(\`conf_libmilter_ENVDEF', \`-D_FFR_MILTER_ROOT_UNSAFE')dnl EOF %endif %if "%{with_ldap}" == "yes" cat >> redhat.config.m4 << EOF APPENDDEF(\`confMAPDEF', \`-DLDAPMAP')dnl APPENDDEF(\`confENVDEF', \`-DSM_CONF_LDAP_MEMFREE=1')dnl APPENDDEF(\`confLIBS', \`-lldap -llber -lssl -lcrypto')dnl EOF %endif %if "%{with_mysql}" == "yes" cat >> redhat.config.m4 << EOF APPENDDEF(\`confMAPDEF',\`-DMYSQLMAP')dnl APPENDDEF(\`confLIBS',\`%{l_ldflags mysql .} -lmysqlclient -lz -lm')dnl EOF %endif # set path to cyrus-imapd deliver perl -pi -e 's:/usr/cyrus/bin/deliver:/usr/lib/cyrus-imapd/deliver:' cf/mailer/cyrus.m4 DIRS="libsmutil sendmail mailstats rmail praliases smrsh makemap" %if "%{with_milter}" == "yes" DIRS="libmilter $DIRS" %endif for i in $DIRS; do pushd $i sh Build -f ../redhat.config.m4 popd done %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT cd $RPM_BUILD_ROOT mkdir -p etc/sysconfig .%{initdir} etc/pam.d mkdir -p usr/bin usr/include/libmilter usr/%{_lib} usr/lib mkdir -p .%{_mandir}/man{1,5,8} mkdir -p usr/sbin var/log var/spool .%{sendmailcf} cd - OBJDIR=obj.$(uname -s).$(uname -r).$(arch) nameuser=`id -nu` namegroup=`id -ng` Make() { make $@ \ DESTDIR=$RPM_BUILD_ROOT \ MANROOT=%{_mandir}/man \ SBINOWN=${nameuser} SBINGRP=${namegroup} \ UBINOWN=${nameuser} UBINGRP=${namegroup} \ MANOWN=${nameuser} MANGRP=${namegroup} \ INCOWN=${nameuser} INCGRP=${namegroup} \ LIBOWN=${nameuser} LIBGRP=${namegroup} \ GBINOWN=${nameuser} GBINGRP=${namegroup} \ CFOWN=${nameuser} CFGRP=${namegroup} \ MSPQOWN=${nameuser} } Make install -C $OBJDIR/libmilter Make install -C $OBJDIR/libsmutil Make install -C $OBJDIR/sendmail Make install -C $OBJDIR/mailstats Make force-install -C $OBJDIR/rmail Make install -C $OBJDIR/praliases Make install -C $OBJDIR/smrsh Make install -C $OBJDIR/makemap touch $RPM_BUILD_ROOT/rootfile root=.. while [ ! -r $RPM_BUILD_ROOT/%{_bindir}/${root}/rootfile ] ; do root=${root}/.. done ln -sf ${root}%{_sbindir}/makemap $RPM_BUILD_ROOT/%{_bindir}/makemap # Install docs by hand for the sendmail-doc package. DOC=$RPM_BUILD_ROOT%{_docdir}/sendmail mkdir -p $DOC cp -ar FAQ LICENSE KNOWNBUGS README RELEASE_NOTES doc $DOC cp sendmail/README $DOC/README.sendmail cp sendmail/SECURITY $DOC/SECURITY cp smrsh/README $DOC/README.smrsh cp libmilter/README $DOC/README.libmilter cp cf/README $DOC/README.cf cp %{SOURCE9} $DOC/README.redhat # Install the cf files for the sendmail-cf package. cp -ar cf/* $RPM_BUILD_ROOT%{sendmailcf} install -d -m755 $RPM_BUILD_ROOT/etc/mail sed -e 's|@@PATH@@|%{sendmailcf}|' < %{SOURCE6} > $RPM_BUILD_ROOT/etc/mail/sendmail.mc sed -e 's|%{sendmailcf}|\.\.|' < $RPM_BUILD_ROOT/etc/mail/sendmail.mc > cf/cf/redhat.mc %if "%{stdir}" != "/etc/mail" perl -pi -e 's:/etc/mail/statistics:%{stdir}/statistics:' cf/cf/redhat.mc %endif (cd cf/cf && m4 redhat.mc > redhat.cf) install -m 644 cf/cf/redhat.cf $RPM_BUILD_ROOT/etc/mail/sendmail.cf install -m 644 cf/cf/submit.mc $RPM_BUILD_ROOT/etc/mail/submit.mc echo "# local-host-names - include all aliases for your machine here." \ > $RPM_BUILD_ROOT/etc/mail/local-host-names ( echo "# trusted-users - users that can send mail as others without a warning" echo "# apache, mailman, majordomo, uucp, are good candidates" ) \ > $RPM_BUILD_ROOT/etc/mail/trusted-users #root=.. #while [ ! -r $RPM_BUILD_ROOT/%{_libdir}/${root}/rootfile ] ; do # root=${root}/.. #done #ln -sf ${root}%{_sbindir}/sendmail $RPM_BUILD_ROOT/%{_libdir}/sendmail ln -sf ../sbin/sendmail $RPM_BUILD_ROOT/usr/lib/sendmail.sendmail install -d -m775 $RPM_BUILD_ROOT/var/spool/mqueue install -d -m755 $RPM_BUILD_ROOT/var/spool/clientmqueue # dangling symlinks root=.. while [ ! -r $RPM_BUILD_ROOT/%{_bindir}/${root}/rootfile ] ; do root=${root}/.. done for f in hoststat mailq newaliases purgestat ; do ln -sf ${root}%{_sbindir}/sendmail $RPM_BUILD_ROOT%{_bindir}/${f} done install -d -m755 $RPM_BUILD_ROOT/etc/smrsh cat < $RPM_BUILD_ROOT/etc/mail/access # Check the /usr/share/doc/sendmail/README.cf file for a description # of the format of this file. (search for access_db in that file) # The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc # package. # # by default we allow relaying from localhost... localhost.localdomain RELAY localhost RELAY 127.0.0.1 RELAY EOF for map in virtusertable access domaintable mailertable ; do touch $RPM_BUILD_ROOT/etc/mail/${map} chmod 0644 $RPM_BUILD_ROOT/etc/mail/${map} $RPM_BUILD_ROOT%{_bindir}/makemap -C $RPM_BUILD_ROOT/etc/mail/sendmail.cf hash $RPM_BUILD_ROOT/etc/mail/${map}.db < $RPM_BUILD_ROOT/etc/mail/${map} chmod 0644 $RPM_BUILD_ROOT/etc/mail/${map}.db done %if "%{old_setup}" == "yes" install -m644 %{SOURCE3} $RPM_BUILD_ROOT/etc/aliases $RPM_BUILD_ROOT/usr/bin/makemap -C $RPM_BUILD_ROOT/etc/mail/sendmail.cf hash $RPM_BUILD_ROOT/etc/aliases.db < %{SOURCE3} %else $RPM_BUILD_ROOT/usr/bin/makemap -C $RPM_BUILD_ROOT/etc/mail/sendmail.cf hash $RPM_BUILD_ROOT/etc/aliases.db < /etc/aliases %endif install -m644 %SOURCE4 $RPM_BUILD_ROOT/etc/sysconfig/sendmail install -m755 %SOURCE1 $RPM_BUILD_ROOT%{initdir}/sendmail install -m 644 %{SOURCE5} $RPM_BUILD_ROOT/etc/mail/Makefile chmod u+w $RPM_BUILD_ROOT/usr/sbin/{mailstats,praliases} chmod u+w $RPM_BUILD_ROOT/usr/bin/rmail %if "%{with_sasl1}" == "yes" install -m755 -d $RPM_BUILD_ROOT%{_libdir}/sasl install -m 644 %{SOURCE7} $RPM_BUILD_ROOT%{_libdir}/sasl/Sendmail.conf %endif %if "%{with_sasl2}" == "yes" install -m755 -d $RPM_BUILD_ROOT%{_libdir}/sasl2 install -m 644 %{SOURCE11} $RPM_BUILD_ROOT%{_libdir}/sasl2/Sendmail.conf %endif install -m 644 %{SOURCE8} $RPM_BUILD_ROOT/etc/pam.d/smtp.sendmail install -m 755 -d $RPM_BUILD_ROOT%{_libdir} install -m 644 $OBJDIR/libmilter/libmilter.a $RPM_BUILD_ROOT%{_libdir} install -m 644 $OBJDIR/libsmutil/libsmutil.a $RPM_BUILD_ROOT%{_libdir} install -m 644 $OBJDIR/libsm/libsm.a $RPM_BUILD_ROOT%{_libdir} # allow stripping of the sendmail app chmod 755 $RPM_BUILD_ROOT%{_sbindir}/sendmail mv $RPM_BUILD_ROOT%{_sbindir}/sendmail $RPM_BUILD_ROOT%{_sbindir}/sendmail.sendmail for i in mailq newaliases rmail; do mv $RPM_BUILD_ROOT%{_bindir}/$i $RPM_BUILD_ROOT%{_bindir}/$i.sendmail done mv $RPM_BUILD_ROOT%{_mandir}/man1/mailq.1 $RPM_BUILD_ROOT%{_mandir}/man1/mailq.sendmail.1 mv $RPM_BUILD_ROOT%{_mandir}/man1/newaliases.1 $RPM_BUILD_ROOT%{_mandir}/man1/newaliases.sendmail.1 mv $RPM_BUILD_ROOT%{_mandir}/man5/aliases.5 $RPM_BUILD_ROOT%{_mandir}/man5/aliases.sendmail.5 mv $RPM_BUILD_ROOT%{_mandir}/man8/sendmail.8 $RPM_BUILD_ROOT%{_mandir}/man8/sendmail.sendmail.8 %if "%{stdir}" != "/etc/mail" perl -pi -e 's:/etc/mail/statistics:%{stdir}/statistics:' $RPM_BUILD_ROOT%{_mandir}/man*/* %endif %if "%{_libdir}" == "/usr/lib64" rm -fr $RPM_BUILD_ROOT/usr/lib/libmilter.a %endif rm -rf $RPM_BUILD_ROOT/rootfile %clean rm -rf $RPM_BUILD_ROOT %pre /usr/sbin/useradd -u 47 -d /var/spool/mqueue -r -s %{smshell} mailnull >/dev/null 2>&1 /usr/sbin/useradd -u 51 -d /var/spool/mqueue -r -s %{smshell} smmsp >/dev/null 2>&1 exit 0 %postun if [ "$1" -ge "1" ]; then %{initdir}/sendmail condrestart >/dev/null 2>&1 mta=`readlink /etc/alternatives/mta` if [ "$mta" == "%{_sbindir}/sendmail.sendmail" ]; then /usr/sbin/alternatives --set mta %{_sbindir}/sendmail.sendmail fi fi exit 0 %post # # Convert old format to new # if [ -f /etc/mail/deny ] ; then cat /etc/mail/deny | \ awk 'BEGIN{ print "# Entries from obsoleted /etc/mail/deny"} \ {print $1" REJECT"}' >> /etc/mail/access cp /etc/mail/deny /etc/mail/deny.rpmorig fi for oldfile in relay_allow ip_allow name_allow ; do if [ -f /etc/mail/$oldfile ] ; then cat /etc/mail/$oldfile | \ awk "BEGIN { print \"# Entries from obsoleted /etc/mail/$oldfile\" ;} \ { print \$1\" RELAY\" }" >> /etc/mail/access cp /etc/mail/$oldfile /etc/mail/$oldfile.rpmorig fi done # # Remove deprecated config flags which are probably harmless to remove # cf=`/bin/mktemp /etc/mail/sendmail.cf.XXXXXX` if [ "$cf" != "" ] ; then sed 's/^O AutoRebuildAliases$/#&/g' /etc/mail/sendmail.cf > ${cf} && \ cat ${cf} > /etc/mail/sendmail.cf rm ${cf} fi /sbin/chkconfig --add sendmail # # Set up the alternatives files for MTAs. # /usr/sbin/alternatives --install %{_sbindir}/sendmail mta %{_sbindir}/sendmail.sendmail 90 \ --slave %{_bindir}/mailq mta-mailq %{_bindir}/mailq.sendmail \ --slave %{_bindir}/newaliases mta-newaliases %{_bindir}/newaliases.sendmail \ --slave %{_bindir}/rmail mta-rmail %{_bindir}/rmail.sendmail \ --slave /usr/lib/sendmail mta-sendmail /usr/lib/sendmail.sendmail \ --slave %{_sysconfdir}/pam.d/smtp mta-pam %{_sysconfdir}/pam.d/smtp.sendmail \ --slave %{_mandir}/man8/sendmail.8.gz mta-sendmailman %{_mandir}/man8/sendmail.sendmail.8.gz \ --slave %{_mandir}/man1/mailq.1.gz mta-mailqman %{_mandir}/man1/mailq.sendmail.1.gz \ --slave %{_mandir}/man1/newaliases.1.gz mta-newaliasesman %{_mandir}/man1/newaliases.sendmail.1.gz \ --slave %{_mandir}/man5/aliases.5.gz mta-aliasesman %{_mandir}/man5/aliases.sendmail.5.gz \ --initscript sendmail # # Oops, these files moved # if [ -f /etc/sendmail.cw ]; then cat /etc/sendmail.cw | \ awk 'BEGIN { print "# Entries from obsoleted /etc/sendmail.cw" ;} \ { print $1 }' >> /etc/mail/local-host-names cp /etc/sendmail.cw /etc/sendmail.cw.rpmorig fi # # Rebuild maps (next reboot will rebuild also) # { chown root /etc/aliases.db /etc/mail/access.db /etc/mail/mailertable.db \ /etc/mail/domaintable.db /etc/mail/virtusertable.db /usr/bin/newaliases for map in virtusertable access domaintable mailertable ; do if [ -f /etc/mail/${map} ]; then /usr/bin/makemap hash /etc/mail/${map} < /etc/mail/${map} fi done } > /dev/null 2>&1 %preun if [ $1 = 0 ]; then %{initdir}/sendmail stop >/dev/null 2>&1 /sbin/chkconfig --del sendmail /usr/sbin/alternatives --remove mta %{_sbindir}/sendmail.sendmail fi exit 0 %triggerpostun -- sendmail < 8.10.0 /sbin/chkconfig --add sendmail %triggerpostun -- sendmail < 8.11.6-11 /usr/sbin/alternatives --auto mta %files %defattr(-,root,root) /usr/bin/hoststat /usr/bin/makemap /usr/bin/purgestat /usr/sbin/mailstats /usr/sbin/makemap /usr/sbin/praliases %attr(2755,root,smmsp)/usr/sbin/sendmail.sendmail /usr/bin/rmail.sendmail /usr/bin/newaliases.sendmail /usr/bin/mailq.sendmail /usr/sbin/smrsh /usr/lib/sendmail.sendmail %{_mandir}/man8/rmail.8* %{_mandir}/man8/praliases.8* %{_mandir}/man8/mailstats.8* %{_mandir}/man8/makemap.8* %{_mandir}/man8/sendmail.sendmail.8* %{_mandir}/man8/smrsh.8* %{_mandir}/man5/aliases.sendmail.5* %{_mandir}/man1/newaliases.sendmail.1* %{_mandir}/man1/mailq.sendmail.1* %config(noreplace) %{stdir}/statistics %config(noreplace) /etc/mail/sendmail.cf %config(noreplace) /etc/mail/submit.cf %attr(0644,root,root) %config(noreplace) /etc/mail/sendmail.mc %attr(0644,root,root) %config(noreplace) /etc/mail/submit.mc %config(noreplace) /etc/mail/local-host-names %if "%{old_setup}" == "yes" %config(noreplace) /etc/aliases %endif %attr(0644,root,root) %ghost /etc/aliases.db %attr(0770,smmsp,smmsp) %dir /var/spool/clientmqueue %attr(0700,root,mail) %dir /var/spool/mqueue %dir /etc/smrsh %dir /etc/mail %config(noreplace) /etc/mail/Makefile %attr(0644,root,root) %ghost /etc/mail/virtusertable.db %attr(0644,root,root) %config(noreplace) /etc/mail/virtusertable %attr(0644,root,root) %ghost /etc/mail/access.db %attr(0644,root,root) %config(noreplace) /etc/mail/access %attr(0644,root,root) %ghost /etc/mail/domaintable.db %attr(0644,root,root) %config(noreplace) /etc/mail/domaintable %attr(0644,root,root) %ghost /etc/mail/mailertable.db %attr(0644,root,root) %config(noreplace) /etc/mail/mailertable %attr(0644,root,root) %config(noreplace) /etc/mail/helpfile %attr(0644,root,root) %config(noreplace) /etc/mail/trusted-users %config(noreplace) /etc/sysconfig/sendmail %config %{initdir}/sendmail %config %{_libdir}/sasl*/Sendmail*.conf %config(noreplace) /etc/pam.d/smtp.sendmail %files cf %defattr(-,root,root) %{sendmailcf} %files devel %defattr(-,root,root) %dir %{_includedir}/libmilter %{_includedir}/libmilter/*.h %{_libdir}/libmilter.a %{_libdir}/libsmutil.a %{_libdir}/libsm.a %files doc %defattr(-,root,root) %{_docdir}/sendmail %changelog * Mon Jun 21 2004 Thomas Woerner 8.13.0-1 - new version 8.13.0 - made /etc/mail/Makefile complain missing sendmail-cf package (#123348) - fixed ownership of %%{_includedir}/libmilter (#73977) - moved back to /usr/share/ssl/certs as certificate directory (see sendmail.mc) - extended sendmail.mc for spam protection * Tue Jun 15 2004 Elliot Lee - rebuilt * Thu Apr 15 2004 Dan Walsh 8.12.11-4.6 - Fix selinuxenabled location * Wed Apr 7 2004 Dan Walsh 8.12.11-4.5 - Fix security context of pid file for selinux * Fri Apr 2 2004 Thomas Woerner 8.12.11-4.4 - fixed alternatives slave for sendmail.sendmail * Thu Apr 1 2004 Thomas Woerner 8.12.11-4.3 - set path to cyrus-imapd deliver * Wed Mar 31 2004 Thomas Woerner 8.12.11-4.2 - fixed spec file * Wed Mar 31 2004 Thomas Woerner 8.12.11-4.1 - added authinfo to possible sendmail maps: /etc/mail/Makefile (#119010) - fixed minor version in changelog * Wed Mar 17 2004 Thomas Woerner 8.12.11-4 - new slave in alternatives for sendmail man page * Tue Mar 02 2004 Elliot Lee - rebuilt * Thu Feb 19 2004 Thomas Woerner 8.12.11-3.2 - removed buildreq for gdbm-devel * Thu Feb 19 2004 Thomas Woerner 8.12.11-3 - RH3.0E version: sasl1, no pie, old_setup (provide /etc/aliases) - new switches for pie and old_setup * Thu Feb 5 2004 Thomas Woerner 8.12.11-2.1 - new Sendmail.conf for sasl1 (#114726) * Wed Jan 28 2004 Thomas Woerner 8.12.11-2 - added information for saslauthd and AUTH (#113463) - fixed STATUS_FILE in sendmail-redhat.mc (#114302) - reset mta after update if mta was sendmail (#114257) - enabled pie for ia64 again * Mon Jan 26 2004 Thomas Woerner 8.12.11-1.3 - removed /etc/aliases (now in setup) * Thu Jan 22 2004 Thomas Woerner 8.12.11-1.2 - /usr/lib/sendmail is in alternatives, now - removed trailing / from stdir - fixed define for STATUS_FILE * Wed Jan 21 2004 Thomas Woerner 8.12.11-1.1 - disabled pie for ia64 * Tue Jan 20 2004 Thomas Woerner 8.12.11-1 - new version 8.12.11 - pie * Mon Jan 12 2004 Thomas Woerner 8.12.10-7 - fc2 version (with sasl2) * Mon Jan 12 2004 Thomas Woerner 8.12.10-6 - reverted to sasl1 for 3.0E: added with_sasl1 - spec file cleanup - new location for statistics file (/var/log/) * Sun Dec 14 2003 Florian La Roche - Fix download url. * Sat Dec 13 2003 Jeff Johnson 8.12.10-5 - rebuild against db-4.2.52. * Thu Dec 11 2003 Florian La Roche - fix pam alternatives handling - add patch from Jakub Jelinek for PIE * Fri Dec 05 2003 Karsten Hopp 8.12.10-3 - fix usage of RPM_OPT_FLAGS variable in spec file - add makecert.sh script to -doc subpackage - add cert paths to sendmail.mc * Wed Nov 26 2003 Karsten Hopp - fix alternatives (#109313) - enable TLS * Mon Oct 27 2003 Florian La Roche - add some more system account entries into /etc/aliases - add example for a mixed IPv6/IPv4 setup * Fri Oct 24 2003 Harald Hoyer 8.12.10-2 - added with_ options * Thu Sep 25 2003 Jeff Johnson 8.12.10-1.2 - rebuild against db-4.2.42. * Thu Sep 18 2003 Florian La Roche - update to 8.12.10 * Wed Sep 17 2003 Florian La Roche - add security patches for CAN-2003-0694 and CAN-2003-0681 * Mon Sep 01 2003 Florian La Roche - move debug information from sendmail into debuginfo rpm - on %%post make sure /etc/aliases.db and /etc/mail/*.db is correctly owned by root - do not set confTRUSTED_USER to smmsp in sendmail-redhat.mc * Fri Aug 08 2003 Florian La Roche - run "make -C /etc/mail" (maybe generating new sendmail.cf, then newaliases - added $SENDMAIL_OPTARG that could be set by /etc/sysconfig/sendmail #99224 * Wed Jul 30 2003 Florian La Roche - adjust rpm license tag to say "Sendmail" * Fri Jul 04 2003 Florian La Roche - enable pie only for a few archs - enable full optims for s390 again, compiler seems to be fixed * Mon Jun 30 2003 Florian La Roche - apply patch from Ulrich Drepper to support -pie * Wed Jun 04 2003 Elliot Lee - rebuilt * Sat May 31 2003 Florian La Roche - make init script more robust #91879 * Sun May 11 2003 Florian La Roche - sendmail-cf requires m4, #90513 * Fri May 9 2003 Nalin Dahyabhai 8.12.9-6 - move Sendmail.conf from /usr/lib/sasl to /usr/lib/sasl2 and change the default pwcheck method to "saslauthd" * Mon May 5 2003 Nalin Dahyabhai 8.12.9-5 - configure to use libsasl2 instead of libsasl to avoid linking with both (we also link to libldap, which now uses libsasl2) - link with -ldb instead of -ldb-4.0 on all releases after RHL 7.3 instead of just 7.3 (all versions of db4-devel thereafter are expected to provide the right linking setup) * Tue Apr 15 2003 Florian La Roche - add a "umask 022" before building the *.cf files in /etc/mail/Makefile * Fri Apr 04 2003 Florian La Roche - mark /etc/mail/Makefile as config(noreplace) #87688 - mark /etc/pam.d/smtp as config(noreplace) #87731 * Sun Mar 30 2003 Florian La Roche - update to 8.12.9 * Wed Mar 26 2003 Florian La Roche - call make with the target "all" #86005 - add start/stop/restart as Makefile targets - add another security patch * Wed Mar 05 2003 Florian La Roche - add correct db4-devel requirements for newer releases - completely re-do many ifdef code in the spec-file - fix some issues building for older RHL releases * Mon Feb 24 2003 Elliot Lee - rebuilt * Mon Feb 24 2003 Elliot Lee - rebuilt * Mon Feb 24 2003 Florian La Roche - update to 8.12.8 * Tue Feb 11 2003 Florian La Roche - rebuilt * Wed Jan 22 2003 Tim Powers - rebuilt * Wed Jan 22 2003 Florian La Roche - add a confTRUSTED_USER line into sendmail.mc, submit.mc is already ok - add patch from sendmail.org for cf/m4/proto.m4 * Mon Jan 13 2003 Florian La Roche - do not reject all numeric login names if hesiod support is compiled in. #80060 - remove reference to non-existing man-pages #74552 * Sun Jan 12 2003 Florian La Roche - sendmail-8.12.7-etrn.patch from Jos Vos - submit.mc: enable "use_ct_file" by default #80519 - add _FFR_MILTER_ROOT_UNSAFE #78223 * Sat Jan 11 2003 Florian La Roche - update to 8.12.7 - hack to make lib64 version work - downgrade s390 optims to make it compile * Mon Jan 6 2003 Nalin Dahyabhai - add openssl-devel as a build-time requirement - preprocess the config file to add the right version of %%{_lib} - add kerberos -I and -L flags to build configuration, needed for newer versions of libssl * Wed Dec 11 2002 Florian La Roche - always have a queue run interval for sm-msp-queue #81424 - Jos Vos suggests adding another variable for sm-client queue-run * Mon Dec 02 2002 Florian La Roche - add the following changes from Adrian Havill to our default sendmail.mc file: - added commented-out-by-default common AUTH/SSL examples - updated m4 example and rpm reference - added more comment documentation - add commented out confAUTO_REBUILD example - improve description about MASQUERADE_AS * Mon Nov 18 2002 Florian La Roche - add to submit.mc: define(`_MTA_HOST_', `[127.0.0.1]') to deliver directly to localhost IP instead of going through DNS - submit.mc: exchange msp and use_ct_file to better enable it - do not undefine UUCP_RELAY and BITNET_RELAY - sendmail.mc: use LOCAL_DOMAIN instead of "Cw" directly - sendmail.mc: add commented out MASQUERADE_AS example - re-enable DAEMON variable for now * Tue Nov 12 2002 Nalin Dahyabhai - remove absolute path names from the PAM configuration, allowing it to be used by any arch on a multilib system * Sun Nov 03 2002 Florian La Roche - fix mailman alias #75129 * Sat Nov 02 2002 Florian La Roche - update to 8.12.6 * Fri Oct 04 2002 Phil Knirsch 8.12.5-7.2 - Drop optflags to default to build correctly on s390(x). * Thu Sep 12 2002 Than Ngo 8.12.5-7.1 - Added fix to build on x86_64 * Thu Aug 29 2002 Florian La Roche - clean up some specfile cruft - add more pseudo accounts to /etc/aliases * Thu Jul 25 2002 Phil Knirsch - Only generate new cf files if the /usr/share/sendmail-cf/m4/cf.m4 exists. * Wed Jul 24 2002 Phil Knirsch - Changed the behaviour in /etc/mail/Makefile to generate the sendmail.cf and submit.cf from the mc files if they changed. - Added a small README.redhat that descibed the new mc file behaviour and the split into sendmail.cf and submit.cf. * Wed Jul 24 2002 Florian La Roche - suggestions form Stephane Lentz: - add correct include statement into submit.mc (like sendmail.mc) - add commented out further suggestions into submit.mc - disable ident lookups * Thu Jul 11 2002 Florian La Roche - fix initscript for the second daemon and pidfile location #67910 * Mon Jul 01 2002 Florian La Roche - update to 8.12.5 * Thu Jun 27 2002 Florian La Roche - add further queue runs, slight spec-file cleanups * Fri Jun 21 2002 Tim Powers - automated rebuild * Tue Jun 11 2002 Florian La Roche - update to 8.12.4, adjust smrsh patch * Thu May 23 2002 Tim Powers - automated rebuild * Sat Apr 13 2002 Florian La Roche - update to 8.12.3 * Tue Mar 26 2002 Tim Powers - rebuilt * Mon Mar 25 2002 Florian La Roche - fix alternatives --remove #61737 - add sendmail/SECURITY as docu #61870, #61545 * Wed Mar 20 2002 Florian La Roche - add libsm.a #61270 - change from /etc/sendmail.cf to /etc/mail/sendmail.cf - add milter patch * Wed Mar 13 2002 Bill Nottingham - ignore DAEMON=no; that configuration no longer functions * Wed Mar 13 2002 Florian La Roche - make sure more version information is in the cf file #54418 - do not use "-b" flag when patching in spec file - require newer chkconfig version #61035 - fix preun script #60880 - add TMPF to access file creation #60956 * Sat Mar 09 2002 Florian La Roche - mv include files to /usr/include/libmilter/ #60795 - do not use "-f" option to virtusertable #60196 - ad an example smarthost entry to config file #58298 * Fri Mar 8 2002 Bill Nottingham 8.12.2-5 - use alternatives --initscript support - run chkconfig --add before alternatives * Thu Feb 28 2002 Bill Nottingham 8.12.2-3 - run alternatives --remove in %preun - add some prereqs * Mon Feb 25 2002 Nalin Dahyabhai 8.12.2-2 - fix smmsp useradd invocation in %%pre - switch back to db3 for storing db files * Wed Feb 20 2002 Nalin Dahyabhai 8.12.2-1 - update to 8.12.2 (adds STARTTLS support without need for sfio) - don't forcibly strip binaries; let the build root handle it - add creation of the smmsp account (51/51) in %%pre - enable hesiod map support - modify default config to use an MSP - comment out 'O AutoRebuildAliases' in %%post, otherwise sendmail will fail to restart on upgrades * Wed Feb 20 2002 Florian La Roche - add proper ifdefs around new alternative stuff to also be able to build this for older releases * Fri Feb 1 2002 Bill Nottingham 8.11.6-12 - %triggerpostun on older versions to make sure alternatives work on upgrades * Thu Jan 31 2002 Bill Nottingham 8.11.6-11 - clean up alternatives somewhat, provide /usr/sbin/sendmail & friends * Thu Jan 31 2002 Bernhard Rosenkraenzer 8.11.6-10 - Use alternatives * Tue Jan 22 2002 Florian La Roche - fix quotation in spec-file * Thu Jan 10 2002 Florian La Roche - integrate ugly logic to compile this src.rpm also on older Red Hat Linux releases - clean up spec file and patches a bit - add db4 support * Wed Jan 09 2002 Florian La Roche - fix another path to correct docu - include sendmail/README in the docu - compile with -D_FFR_WORKAROUND_BROKEN_NAMESERVERS, but do not enable this at runtime - devel subpackage files owned by root now * Fri Dec 07 2001 Florian La Roche - change "-q" to "-s" as option to make #57216 - move milter lib into separate "devel" sub-package - add include files to devel sub-package #56064 - fix pointer in access file to docu #54351 * Mon Sep 10 2001 Florian La Roche - add libmilter docu - add support for userdb to /etc/mail/Makefile - use "btree" database files if a userdb is used - buildrequires tcp_wrappers * Fri Aug 31 2001 Florian La Roche - fix libmilter support - fix init script to use /etc/mail/Makefile #52932 * Sat Aug 25 2001 Florian La Roche - add libmilter library * Thu Aug 23 2001 Florian La Roche - update to 8.11.6 - correctly use /etc/mail/statistics * Thu Aug 09 2001 Florian La Roche - change init script back to older conventions #51297 - remove DoS patch, not needed anymore #51247 * Mon Aug 06 2001 Florian La Roche - add option '-t' to procmail for local mail delivery * Tue Jul 24 2001 Florian La Roche - point to the map files in sendmail.cf as pointed out by David Beveridge * Mon Jul 23 2001 Florian La Roche - add build requires #49695 - do not call "userdel" * Tue Jul 10 2001 Florian La Roche - change sendmail.cf to "noreplace" * Thu Jun 07 2001 Florian La Roche - update to 8.11.4 * Wed May 09 2001 Florian La Roche - update to 8.11.3 - add "localhost.localdomain" to the list of hostnames accepted for local delivery "Cw" in /etc/mail/sendmail.mc - add patches from Pekka Savola - Enable IPv6 at compile time, patch for glibc 2.2 from PLD - Add a commented-out IPv6 daemon .mc line to sendmail.mc - buildrequire: openldap-devel, cyrus-sasl-devel * Fri Mar 2 2001 Nalin Dahyabhai - rebuild in new environment * Tue Feb 27 2001 Florian La Roche - add noreplace for /etc/sysconfig/sendmail and /etc/mail/sendmail.mc * Wed Feb 21 2001 Florian La Roche - add changes from Christopher McCrory : - prepare /etc/mail/Makefile for more maps not shipped with this rpm - changed sendmail.mc to include some more commented out options, so that people are directly pointed at important options - add /etc/pam.d/smtp for AUTH - add FEATURE(use_ct_file) and /etc/mail/trusted-users * Fri Feb 16 2001 Tim Powers - don't obsolete postfix and exim, only conflict (for RHN purposes) * Thu Feb 15 2001 Trond Eivind Glomsrød - obsolete and conflict with exim and postfix * Wed Feb 14 2001 Florian La Roche - fix devision by zero bug in #20395 - mv /usr/lib/sendmail-cf /usr/share/sendmail-cf * Wed Feb 7 2001 Trond Eivind Glomsrød - i18n tweaks to initscript * Wed Feb 07 2001 Florian La Roche - aliases.db should be owned by group root * Wed Jan 24 2001 Florian La Roche - prepare for startup-script translation * Tue Jan 23 2001 Florian La Roche - enable daemon mode again, but only listen to the loopback device instead of all devices. - do not include check.tar with old anti-spam rules * Fri Jan 12 2001 Florian La Roche - fix configuration of /etc/aliases * Mon Jan 08 2001 Florian La Roche - fix interoperation problems with communigate pro - disable msa * Thu Jan 04 2001 Florian La Roche - update to (security release) 8.11.2 - build also on RHL 6.x #16061 - include smrsh man-page #17901 - use the "-f" flag for makemap to preserve case for virtusertable and userdb in /etc/mail/Makefile - suggested by Harald Hoyer - fix /usr/doc -> usr/share/doc in docu #20611 - wrong path in sendmail.mc #20691 - tcp-wrapper support wasn't enabled correctly #21642 - do not expose user "root" when masquerading like in older releases #21643 - disable the VRFY and EXPN smtp commands #21801 - disable queue-runs for normal users (restrictqrun privacy flag) - fix typo in sendmail.mc #21880, #22682 - disable daemon mode to see what needs fixing * Mon Oct 02 2000 Florian La Roche - update to 8.11.1 * Fri Sep 08 2000 Nalin Dahyabhai - rebuild in new environment * Tue Aug 22 2000 Nalin Dahyabhai - apply fixes for LDAP maps being closed too soon * Mon Aug 14 2000 Nalin Dahyabhai - provide /usr/lib/sasl/Sendmail.conf so that people know we can use it (#16064) * Mon Aug 7 2000 Florian La Roche - enable listening on the smtp port again * Fri Aug 4 2000 Nalin Dahyabhai - fix "missing find_m4.sh" problem by defining M4=/usr/bin/m4 (#14767) * Mon Jul 31 2000 Nalin Dahyabhai - okay, enable LDAP support again - enable SMTP auth support via Cyrus SASL * Tue Jul 25 2000 Nalin Dahyabhai - disable the LDAP support until we can remove the sendmail->OpenLDAP->perl dep - fix prereq * Tue Jul 25 2000 Florian La Roche - update to sendmail 8.11.0 - add LDAP support * Thu Jul 20 2000 Bill Nottingham - move initscript back * Wed Jul 12 2000 Prospector - automatic rebuild * Sun Jul 9 2000 Florian La Roche - require procmail - add further aliases * Sat Jul 8 2000 Florian La Roche - prereq init.d - fix typo * Tue Jul 4 2000 Florian La Roche - ignore error from useradd * Fri Jun 30 2000 Than Ngo - FHS fixes - /etc/rc.d/init.d -> /etc/init.d - fix initscript * Fri Jun 23 2000 Florian La Roche - change to /usr/share/man * Wed Jun 21 2000 Preston Brown - turn off daemon behaviour by default * Mon Jun 18 2000 Bill Nottingham - rebuild, fix dependencies * Sat Jun 10 2000 Bill Nottingham - prereq /usr/sbin/useradd * Fri May 19 2000 Florian La Roche - enable MAP_REGEX - enable tcp_wrapper support * Thu May 18 2000 Florian La Roche - fix etc/mail/aliases -> /etc/aliases in sendmail-redhat.mc * Wed May 3 2000 Bill Nottingham - update to 8.10.1 - fix build without sendmail installed - add 'mailnull' user * Wed Mar 15 2000 Bill Nottingham - update to 8.10.0 - remove compatiblity chkconfig links - add a mailnull user for sendmail to use * Thu Feb 17 2000 Cristian Gafton - break the hard link for makemap and create it as a symlnk (#8223) * Thu Feb 17 2000 Bernhard Rosenkränzer - Fix location of mailertable (Bug #6035) * Sat Feb 5 2000 Bill Nottingham - fixes for non-root builds (#8178) * Wed Feb 2 2000 Florian La Roche - change perms on /etc/sysconfig/sendmail from 0755 to 0644 - allow compressed man-pages * Thu Dec 02 1999 Cristian Gafton - add patch to prevent the DoS when rebuilding aliases * Wed Sep 1 1999 Jeff Johnson - install man pages, not groff output (#3746). - use dnl not '#' in m4 comment (#3749). - add FEATURE(mailtertable) to the config -- example file needs this (#4649). - use db2 not db1. * Tue Aug 31 1999 Jeff Johnson - add 127.0.0.1 to /etc/mail/access to avoid IDENT: relay problem (#3178). * Tue Aug 31 1999 Bill Nottingham - chkconfig --del in preun, not postun (#3982) * Mon Aug 16 1999 Bill Nottingham - initscript munging * Fri Jul 02 1999 Cristian Gafton - fixed typo bug in comment in the default .mc file (#2812) * Mon Apr 19 1999 Cristian Gafton - fox the awk scripts in the postinstall - enable FEATURE(accept_unresolvable_domains) by default to make laptop users happy. * Sun Apr 18 1999 Cristian Gafton - make the redhat.mc be a separate source files. Sanitize patches that used to touch it. - install redhat.mc as /etc/sendmail.mc so that people can easily modify their sendmail.cf configurations. * Mon Apr 05 1999 Cristian Gafton - fixed virtusertable patch - make smrsh look into /etc/smrsh * Mon Mar 29 1999 Jeff Johnson - remove noreplace attr from sednmail.cf. * Thu Mar 25 1999 Cristian Gafton - provide a more sane /etc/mail/access default config file - use makemap to initializa the empty databases, not touch - added a small, but helpful /etc/mail/Makefile * Mon Mar 22 1999 Jeff Johnson - correxct dangling symlinks. - check for map file existence in %post. * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 3) * Fri Mar 19 1999 Jeff Johnson - improved 8.9.3 config from Mike McHenry * Tue Mar 16 1999 Cristian Gafton - version 8.9.3 * Tue Dec 29 1998 Cristian Gafton - build for 6.0 - use the libdb1 stuff correctly * Mon Sep 21 1998 Michael K. Johnson - Allow empty QUEUE in /etc/sysconfig/sendmail for those who want to run sendmail in daemon mode without processing the queue regularly. * Thu Sep 17 1998 Michael K. Johnson - /etc/sysconfig/sendmail * Fri Aug 28 1998 Jeff Johnson - recompile statically linked binary for 5.2/sparc * Tue May 05 1998 Prospector System - translations modified for de, fr, tr * Sat May 02 1998 Cristian Gafton - enhanced initscripts * Fri May 01 1998 Cristian Gafton - added a rmail patch * Wed Oct 29 1997 Donnie Barnes - argh! Fixed some of the db1 handling that had to be added for glibc 2.1 * Fri Oct 24 1997 Donnie Barnes - added support for db1 on SPARC * Thu Oct 16 1997 Donnie Barnes - added chkconfig support - various spec file cleanups - changed group to Networking/Daemons (from Daemons). Sure, it runs on non networked systems, but who really *needs* it then? * Wed Oct 08 1997 Donnie Barnes - made /etc/mail/deny.db a ghost - removed preun that used to remove deny.db (ghost handles that now) - NOTE: upgrading from the sendmail packages in 4.8, 4.8.1, and possibly 4.9 (all Red Hat betas between 4.2 and 5.0) could cause problems. You may need to do a makemap in /etc/mail and a newaliases after upgrading from those packages. Upgrading from 4.2 or prior should be fine. * Mon Oct 06 1997 Erik Troan - made aliases.db a ghost * Tue Sep 23 1997 Donnie Barnes - fixed preuninstall script to handle aliases.db on upgrades properly * Mon Sep 15 1997 Donnie Barnes - fixed post-install output and changed /var/spool/mqueue to 755 * Thu Sep 11 1997 Donnie Barnes - fixed /usr/lib/sendmail-cf paths * Tue Sep 09 1997 Donnie Barnes - updated to 8.8.7 - added some spam filtration - combined some makefile patches - added BuildRoot support * Wed Sep 03 1997 Erik Troan - marked initscript symlinks as missingok - run newalises after creating /var/spool/mqueue * Thu Jun 12 1997 Erik Troan - built against glibc, udated release to -6 (skipped -5!) * Tue Apr 01 1997 Erik Troan - Added -nsl on the Alpha (for glibc to provide NIS functions). * Mon Mar 03 1997 Erik Troan - Added nis support.