From 83f6af44fb9f1e1f0ed23f1ea848a07f359812cc Mon Sep 17 00:00:00 2001 From: cvsdist Date: Sep 09 2004 12:12:06 +0000 Subject: auto-import changelog data from sendmail-8.11.2-14.src.rpm Fri Mar 02 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 07 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 --- diff --git a/.cvsignore b/.cvsignore index c391e4e..59e1420 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,2 +1 @@ -check.tar -sendmail.8.11.0.tar.gz +sendmail.8.11.2.tar.gz diff --git a/sendmail-redhat.mc b/sendmail-redhat.mc index 71a0144..33236f7 100644 --- a/sendmail-redhat.mc +++ b/sendmail-redhat.mc @@ -1,13 +1,10 @@ divert(-1) -dnl This is the macro config file used to generate the /etc/sendmail.cf -dnl file. If you modify thei file you will have to regenerate the -dnl /etc/sendmail.cf by running this macro config through the m4 -dnl preprocessor: +dnl This is the sendmail macro config file. If you make changes to this file, +dnl you need the sendmail-cf rpm installed and then have to generate a +dnl new /etc/sendmail.cf by running the following command: dnl -dnl m4 /etc/sendmail.mc > /etc/sendmail.cf +dnl m4 /etc/mail/sendmail.mc > /etc/sendmail.cf dnl -dnl You will need to have the sendmail-cf package installed for this to -dnl work. include(`@@PATH@@/m4/cf.m4') VERSIONID(`linux setup for Red Hat Linux')dnl OSTYPE(`linux') @@ -19,27 +16,38 @@ define(`confTO_CONNECT', `1m')dnl define(`confTRY_NULL_MX_LIST',true)dnl define(`confDONT_PROBE_INTERFACES',true)dnl define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl -define('ALIAS_FILE','/etc/aliases')dnl +define(`ALIAS_FILE', `/etc/aliases')dnl define(`STATUS_FILE', `/var/log/sendmail.st')dnl define(`UUCP_MAILER_MAX', `2000000')dnl define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl -dnl define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn')dnl +define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl +define(`confAUTH_OPTIONS', `A')dnl +dnl TRUST_AUTH_MECH(`DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl +dnl define(`confAUTH_MECHANISMS', `DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl dnl define(`confTO_QUEUEWARN', `4h')dnl dnl define(`confTO_QUEUERETURN', `5d')dnl dnl define(`confQUEUE_LA', `12')dnl dnl define(`confREFUSE_LA', `18')dnl +dnl FEATURE(delay_checks)dnl +FEATURE(`no_default_msa',`dnl')dnl FEATURE(`smrsh',`/usr/sbin/smrsh')dnl FEATURE(`mailertable',`hash -o /etc/mail/mailertable')dnl FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')dnl FEATURE(redirect)dnl FEATURE(always_add_domain)dnl FEATURE(use_cw_file)dnl +FEATURE(use_ct_file)dnl FEATURE(local_procmail)dnl FEATURE(`access_db')dnl FEATURE(`blacklist_recipients')dnl +EXPOSED_USER(`root')dnl +dnl This changes sendmail to only listen on the loopback device 127.0.0.1 +dnl and not on any other network devices. Comment this out if you want +dnl to accept email over the network. +DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA') dnl We strongly recommend to comment this one out if you want to protect dnl yourself from spam. However, the laptop and users on computers that do -dnl not hav 24x7 DNS do need this. +dnl not have 24x7 DNS do need this. FEATURE(`accept_unresolvable_domains')dnl dnl FEATURE(`relay_based_on_MX')dnl MAILER(smtp)dnl diff --git a/sendmail.init b/sendmail.init index cc441f7..f77a26a 100644 --- a/sendmail.init +++ b/sendmail.init @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # sendmail This shell script takes care of starting and stopping # sendmail. @@ -30,11 +30,12 @@ fi [ -f /usr/sbin/sendmail ] || exit 0 RETVAL=0 +prog="sendmail" start() { # Start daemons. - echo -n "Starting sendmail: " + echo -n $"Starting $prog: " /usr/bin/newaliases > /dev/null 2>&1 for i in virtusertable access domaintable mailertable ; do if [ -f /etc/mail/$i ] ; then @@ -51,7 +52,7 @@ start() { stop() { # Stop daemons. - echo -n "Shutting down sendmail: " + echo -n $"Shutting down $prog: " killproc sendmail RETVAL=$? echo @@ -84,9 +85,8 @@ case "$1" in RETVAL=$? ;; *) - echo "Usage: sendmail {start|stop|restart|condrestart|status}" + echo $"Usage: $0 {start|stop|restart|condrestart|status}" exit 1 esac exit $RETVAL - diff --git a/sendmail.pam b/sendmail.pam new file mode 100644 index 0000000..0bdfb24 --- /dev/null +++ b/sendmail.pam @@ -0,0 +1,3 @@ +#%PAM-1.0 +auth required /lib/security/pam_stack.so service=system-auth +account required /lib/security/pam_stack.so service=system-auth diff --git a/sendmail.spec b/sendmail.spec index b6814d3..5d71bfb 100644 --- a/sendmail.spec +++ b/sendmail.spec @@ -2,19 +2,19 @@ Summary: A widely used Mail Transport Agent (MTA). Name: sendmail -Version: 8.11.0 -Release: 8 +Version: 8.11.2 +Release: 14 Copyright: BSD Group: System Environment/Daemons Provides: smtpdaemon Source0: ftp://ftp.cs.berkeley.edu/ucb/sendmail/sendmail.%{version}.tar.gz Source1: sendmail.init -Source2: http://www.informatik.uni-kiel.de/%7Eca/email/rules/check.tar Source3: aliases Source4: sendmail.sysconfig Source5: sendmail-8.9.3-etc-mail-Makefile Source6: sendmail-redhat.mc Source7: Sendmail.conf +Source8: sendmail.pam Patch0: sendmail-8.11.0-redhat.patch Patch1: sendmail-8.10.0-makemapman.patch Patch2: sendmail-8.10.0-smrsh-paths.patch @@ -23,10 +23,12 @@ Patch4: sendmail-8.10.0-aliasesDoS.patch Patch5: sendmail-8.10.1-movefiles.patch Patch6: sendmail-8.10.1-manpath.patch Patch7: sendmail-8.11.0-m4path.patch -Patch8: ldapfix.patch +Patch8: sendmail-8.11.2-fix.patch Buildroot: %{_tmppath}/%{name}-root -Prereq: /sbin/chkconfig /usr/sbin/useradd /etc/init.d -Requires: procmail +BuildRequires: cyrus-sasl +Prereq: /sbin/chkconfig /usr/sbin/useradd +Conflicts: postfix exim +Requires: procmail, bash >= 2.0 %description The Sendmail program is a very widely used Mail Transport Agent (MTA). @@ -78,9 +80,7 @@ sendmail.cf file. %patch5 -p1 -b .movestuff %patch6 -p0 %patch7 -p1 -b .m4path -pushd sendmail -patch -s -p1 -b -z .shapiro -l < %{PATCH8} -popd +%patch8 -p1 sed -e 's|@@PATH@@|\.\.|' < %{SOURCE6} > cf/cf/redhat.mc @@ -119,26 +119,27 @@ rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT cd $RPM_BUILD_ROOT -mkdir -p etc/sysconfig $RPM_BUILD_ROOT%{initdir} -mkdir -p usr/bin usr/lib .%{_mandir}/man{1,5,8} usr/sbin var/log var/spool usr/lib/sendmail-cf +mkdir -p etc/sysconfig $RPM_BUILD_ROOT%{initdir} etc/pam.d +mkdir -p usr/bin usr/lib .%{_mandir}/man{1,5,8} usr/sbin var/log var/spool usr/share/sendmail-cf cd - OBJDIR=obj.$(uname -s).$(uname -r).$(arch) -make DESTDIR=$RPM_BUILD_ROOT SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \ +make DESTDIR=$RPM_BUILD_ROOT MANROOT=%{_mandir}/man SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \ install -C $OBJDIR/sendmail -make DESTDIR=$RPM_BUILD_ROOT SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \ +make DESTDIR=$RPM_BUILD_ROOT MANROOT=%{_mandir}/man SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \ install -C $OBJDIR/mailstats -make DESTDIR=$RPM_BUILD_ROOT SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \ +make DESTDIR=$RPM_BUILD_ROOT MANROOT=%{_mandir}/man SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \ install -C $OBJDIR/praliases -make DESTDIR=$RPM_BUILD_ROOT SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \ +make DESTDIR=$RPM_BUILD_ROOT MANROOT=%{_mandir}/man SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \ force-install -C $OBJDIR/rmail -make DESTDIR=$RPM_BUILD_ROOT SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \ +make DESTDIR=$RPM_BUILD_ROOT MANROOT=%{_mandir}/man SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \ install -C $OBJDIR/makemap ln -sf ../sbin/makemap $RPM_BUILD_ROOT/usr/bin/makemap -make DESTDIR=$RPM_BUILD_ROOT SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \ +make DESTDIR=$RPM_BUILD_ROOT MANROOT=%{_mandir}/man SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \ install -C $OBJDIR/smrsh + # install docs by hand mkdir -p $RPM_BUILD_ROOT%{_docdir}/sendmail cp -ar FAQ LICENSE KNOWNBUGS README RELEASE_NOTES doc $RPM_BUILD_ROOT%{_docdir}/sendmail @@ -147,16 +148,20 @@ cp cf/README $RPM_BUILD_ROOT%{_docdir}/sendmail/README.cf # install the cf files pushd cf -cp -ar * $RPM_BUILD_ROOT/usr/lib/sendmail-cf -rm -f $RPM_BUILD_ROOT/usr/lib/sendmail-cf/*/*.m4path +cp -ar * $RPM_BUILD_ROOT/usr/share/sendmail-cf +rm -f $RPM_BUILD_ROOT/usr/share/sendmail-cf/*/*.m4path popd mkdir -p $RPM_BUILD_ROOT/etc/mail install -m 644 cf/cf/redhat.cf $RPM_BUILD_ROOT/etc/sendmail.cf -sed -e 's|@@PATH@@|/usr/lib/sendmail-cf|' < %{SOURCE6} > $RPM_BUILD_ROOT/etc/mail/sendmail.mc +sed -e 's|@@PATH@@|/usr/share/sendmail-cf|' < %{SOURCE6} > $RPM_BUILD_ROOT/etc/mail/sendmail.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 + ln -sf ../sbin/sendmail $RPM_BUILD_ROOT/usr/lib/sendmail install -d -m755 $RPM_BUILD_ROOT/var/spool/mqueue @@ -169,9 +174,9 @@ for f in hoststat mailq newaliases purgestat mkdir -p $RPM_BUILD_ROOT/etc/smrsh cat < $RPM_BUILD_ROOT/etc/mail/access -# Check the /usr/doc/sendmail-%{version}/README.cf file for a description +# Check the /usr/share/doc/sendmail-%{version}/README.cf file for a description # of the format of this file. (search for access_db in that file) -# The /usr/doc/sendmail-%{version}/README.cf is part of the sendmail-doc +# The /usr/share/doc/sendmail-%{version}/README.cf is part of the sendmail-doc # package. # # by default we allow relaying from localhost... @@ -203,6 +208,7 @@ strip $RPM_BUILD_ROOT/usr/bin/rmail install -m755 -d $RPM_BUILD_ROOT%{_libdir}/sasl install -m 644 %{SOURCE7} $RPM_BUILD_ROOT%{_libdir}/sasl/Sendmail.conf +install -m 644 %{SOURCE8} $RPM_BUILD_ROOT/etc/pam.d/smtp %clean rm -rf $RPM_BUILD_ROOT @@ -232,7 +238,7 @@ 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 + { print \$1\" RELAY\" }" >> /etc/mail/access cp /etc/mail/$oldfile /etc/mail/$oldfile.rpmorig fi done @@ -290,6 +296,7 @@ fi %{_mandir}/man8/mailstats.8* %{_mandir}/man8/makemap.8* %{_mandir}/man8/sendmail.8* +%{_mandir}/man8/smrsh.8* %{_mandir}/man5/aliases.5* %{_mandir}/man1/newaliases.1* %{_mandir}/man1/mailq.1* @@ -297,10 +304,10 @@ fi /var/log/statistics # XXX can't do noreplace here or new sendmail will not deliver. %config /etc/sendmail.cf -%attr(0644,root,root) %config /etc/mail/sendmail.mc +%attr(0644,root,root) %config(noreplace) /etc/mail/sendmail.mc %config(noreplace) /etc/mail/local-host-names %config(noreplace) /etc/aliases -%attr(0644,root,mail) %ghost /etc/aliases.db +%attr(0644,root,root) %ghost /etc/aliases.db %attr(0755,root,mail) %dir /var/spool/mqueue %dir /etc/smrsh %dir /etc/mail @@ -319,22 +326,90 @@ fi %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 /etc/sysconfig/sendmail +%config(noreplace) /etc/sysconfig/sendmail %config %{initdir}/sendmail %config %{_libdir}/sasl/Sendmail.conf +/etc/pam.d/smtp %files cf %defattr(-,root,root) -/usr/lib/sendmail-cf +/usr/share/sendmail-cf %files doc %defattr(-,root,root) %{_docdir}/sendmail %changelog +* 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 diff --git a/sources b/sources index 1ed3de3..8a8e38f 100644 --- a/sources +++ b/sources @@ -1,2 +1 @@ -861eb2c2153e5339785f15aaef7713ed check.tar -95a21f6838dc0489924ca71d98e40edf sendmail.8.11.0.tar.gz +eee46aa3a3215e02c1aa7f1c49c5e99c sendmail.8.11.2.tar.gz