From 53226c268b25954545c4232b29283e16b6772bd3 Mon Sep 17 00:00:00 2001 From: cvsdist Date: Thu, 9 Sep 2004 12:11:53 +0000 Subject: [PATCH] =?UTF-8?q?auto-import=20changelog=20data=20from=20sendmai?= =?UTF-8?q?l-8.11.0-8.src.rpm=20Tue=20Aug=2022=202000=20Nalin=20Dahyabhai?= =?UTF-8?q?=20=20-=20apply=20fixes=20for=20LDAP=20maps?= =?UTF-8?q?=20being=20closed=20too=20soon=20Mon=20Aug=2014=202000=20Nalin?= =?UTF-8?q?=20Dahyabhai=20=20-=20provide=20/usr/lib/sasl?= =?UTF-8?q?/Sendmail.conf=20so=20that=20people=20know=20we=20can=20use=20i?= =?UTF-8?q?t=20=20=20=20=20(#16064)=20Mon=20Aug=2007=202000=20Florian=20La?= =?UTF-8?q?=20Roche=20=20-=20enable=20listening?= =?UTF-8?q?=20on=20the=20smtp=20port=20again=20Fri=20Aug=2004=202000=20Nal?= =?UTF-8?q?in=20Dahyabhai=20=20-=20fix=20"missing=20find?= =?UTF-8?q?=5Fm4.sh"=20problem=20by=20defining=20M4=3D/usr/bin/m4=20(#1476?= =?UTF-8?q?7)=20Mon=20Jul=2031=202000=20Nalin=20Dahyabhai=20=20-=20okay,=20enable=20LDAP=20support=20again=20-=20enable?= =?UTF-8?q?=20SMTP=20auth=20support=20via=20Cyrus=20SASL=20Tue=20Jul=2025?= =?UTF-8?q?=202000=20Nalin=20Dahyabhai=20=20-=20disable?= =?UTF-8?q?=20the=20LDAP=20support=20until=20we=20can=20remove=20the=20sen?= =?UTF-8?q?dmail->OpenLDAP->perl=20=20=20=20=20dep=20-=20fix=20prereq=20Tu?= =?UTF-8?q?e=20Jul=2025=202000=20Florian=20La=20Roche=20=20-=20update=20to=20sendmail=208.11.0=20-=20add=20LD?= =?UTF-8?q?AP=20support=20Thu=20Jul=2020=202000=20Bill=20Nottingham=20=20-=20move=20initscript=20back=20Wed=20Jul=201?= =?UTF-8?q?2=202000=20Prospector=20=20-=20automatic?= =?UTF-8?q?=20rebuild=20Sun=20Jul=2009=202000=20Florian=20La=20Roche=20=20-=20require=20procmail=20-=20add=20?= =?UTF-8?q?further=20aliases=20Sat=20Jul=2008=202000=20Florian=20La=20Roch?= =?UTF-8?q?e=20=20-=20prereq=20init.d=20-=20fi?= =?UTF-8?q?x=20typo=20Tue=20Jul=2004=202000=20Florian=20La=20Roche=20=20-=20ignore=20error=20from=20useradd?= =?UTF-8?q?=20Fri=20Jun=2030=202000=20Than=20Ngo=20=20-=20?= =?UTF-8?q?FHS=20fixes=20-=20/etc/rc.d/init.d=20->=20/etc/init.d=20-=20fix?= =?UTF-8?q?=20initscript=20Fri=20Jun=2023=202000=20Florian=20La=20Roche=20?= =?UTF-8?q?=20-=20change=20to=20/usr/share/man?= =?UTF-8?q?=20Wed=20Jun=2021=202000=20Preston=20Brown=20=20-=20turn=20off=20daemon=20behaviour=20by=20default=20Sun=20?= =?UTF-8?q?Jun=2018=202000=20Bill=20Nottingham=20=20-?= =?UTF-8?q?=20rebuild,=20fix=20dependencies=20Sat=20Jun=2010=202000=20Bill?= =?UTF-8?q?=20Nottingham=20=20-=20prereq=20/usr/sbin/u?= =?UTF-8?q?seradd=20Fri=20May=2019=202000=20Florian=20La=20Roche=20=20-=20enable=20MAP=5FREGEX=20-=20enable?= =?UTF-8?q?=20tcp=5Fwrapper=20support=20Thu=20May=2018=202000=20Florian=20?= =?UTF-8?q?La=20Roche=20=20-=20fix=20etc/mail/?= =?UTF-8?q?aliases=20->=20/etc/aliases=20in=20sendmail-redhat.mc=20Wed=20M?= =?UTF-8?q?ay=2003=202000=20Bill=20Nottingham=20=20-?= =?UTF-8?q?=20update=20to=208.10.1=20-=20fix=20build=20without=20sendmail?= =?UTF-8?q?=20installed=20-=20add=20'mailnull'=20user=20Wed=20Mar=2015=202?= =?UTF-8?q?000=20Bill=20Nottingham=20=20-=20update=20t?= =?UTF-8?q?o=208.10.0=20-=20remove=20compatiblity=20chkconfig=20links=20-?= =?UTF-8?q?=20add=20a=20mailnull=20user=20for=20sendmail=20to=20use=20Thu?= =?UTF-8?q?=20Feb=2017=202000=20Cristian=20Gafton=20=20?= =?UTF-8?q?-=20break=20the=20hard=20link=20for=20makemap=20and=20create=20?= =?UTF-8?q?it=20as=20a=20symlnk=20(#8223)=20Thu=20Feb=2017=202000=20Bernha?= =?UTF-8?q?rd=20Rosenkr=E4nzer=20=20-=20Fix=20location=20?= =?UTF-8?q?of=20mailertable=20(Bug=20#6035)=20Sat=20Feb=2005=202000=20Bill?= =?UTF-8?q?=20Nottingham=20=20-=20fixes=20for=20non-ro?= =?UTF-8?q?ot=20builds=20(#8178)=20Wed=20Feb=2002=202000=20Florian=20La=20?= =?UTF-8?q?Roche=20=20-=20change=20perms=20on?= =?UTF-8?q?=20/etc/sysconfig/sendmail=20from=200755=20to=200644=20-=20allo?= =?UTF-8?q?w=20compressed=20man-pages=20Thu=20Dec=2002=201999=20Cristian?= =?UTF-8?q?=20Gafton=20=20-=20add=20patch=20to=20preven?= =?UTF-8?q?t=20the=20DoS=20when=20rebuilding=20aliases=20Wed=20Sep=2001=20?= =?UTF-8?q?1999=20Jeff=20Johnson=20=20-=20install=20man=20?= =?UTF-8?q?pages,=20not=20groff=20output=20(#3746).=20-=20use=20dnl=20not?= =?UTF-8?q?=20'#'=20in=20m4=20comment=20(#3749).=20-=20add=20FEATURE(mailt?= =?UTF-8?q?ertable)=20to=20the=20config=20--=20example=20file=20needs=20th?= =?UTF-8?q?is=20=20=20=20=20(#4649).=20-=20use=20db2=20not=20db1.=20Tue=20?= =?UTF-8?q?Aug=2031=201999=20Jeff=20Johnson=20=20-=20add?= =?UTF-8?q?=20127.0.0.1=20to=20/etc/mail/access=20to=20avoid=20IDENT:=20re?= =?UTF-8?q?lay=20problem=20(#3178).=20Tue=20Aug=2031=201999=20Bill=20Notti?= =?UTF-8?q?ngham=20=20-=20chkconfig=20--del=20in=20pre?= =?UTF-8?q?un,=20not=20postun=20(#3982)=20Mon=20Aug=2016=201999=20Bill=20N?= =?UTF-8?q?ottingham=20=20-=20initscript=20munging=20F?= =?UTF-8?q?ri=20Jul=2002=201999=20Cristian=20Gafton=20?= =?UTF-8?q?=20-=20fixed=20typo=20bug=20in=20comment=20in=20the=20default?= =?UTF-8?q?=20.mc=20file=20(#2812)=20Mon=20Apr=2019=201999=20Cristian=20Ga?= =?UTF-8?q?fton=20=20-=20fox=20the=20awk=20scripts=20in?= =?UTF-8?q?=20the=20postinstall=20-=20enable=20FEATURE(accept=5Funresolvab?= =?UTF-8?q?le=5Fdomains)=20by=20default=20to=20make=20laptop=20=20=20=20?= =?UTF-8?q?=20users=20happy.=20Sun=20Apr=2018=201999=20Cristian=20Gafton?= =?UTF-8?q?=20=20-=20make=20the=20redhat.mc=20be=20a=20?= =?UTF-8?q?separate=20source=20files.=20Sanitize=20patches=20that=20used?= =?UTF-8?q?=20=20=20=20=20to=20touch=20it.=20-=20install=20redhat.mc=20as?= =?UTF-8?q?=20/etc/sendmail.mc=20so=20that=20people=20can=20easily=20modif?= =?UTF-8?q?y=20=20=20=20=20their=20sendmail.cf=20configurations.=20Mon=20A?= =?UTF-8?q?pr=2005=201999=20Cristian=20Gafton=20=20-=20?= =?UTF-8?q?fixed=20virtusertable=20patch=20-=20make=20smrsh=20look=20into?= =?UTF-8?q?=20/etc/smrsh=20Mon=20Mar=2029=201999=20Jeff=20Johnson=20=20-=20remove=20noreplace=20attr=20from=20sednmail.cf?= =?UTF-8?q?.=20Thu=20Mar=2025=201999=20Cristian=20Gafton=20=20-=20provide=20a=20more=20sane=20/etc/mail/access=20defau?= =?UTF-8?q?lt=20config=20file=20-=20use=20makemap=20to=20initializa=20the?= =?UTF-8?q?=20empty=20databases,=20not=20touch=20-=20added=20a=20small,=20?= =?UTF-8?q?but=20helpful=20/etc/mail/Makefile=20Mon=20Mar=2022=201999=20Je?= =?UTF-8?q?ff=20Johnson=20=20-=20correxct=20dangling=20sym?= =?UTF-8?q?links.=20-=20check=20for=20map=20file=20existence=20in=20%post.?= =?UTF-8?q?=20Sun=20Mar=2021=201999=20Cristian=20Gafton=20=20-=20auto=20rebuild=20in=20the=20new=20build=20environment?= =?UTF-8?q?=20(release=203)=20Fri=20Mar=2019=201999=20Jeff=20Johnson=20=20-=20improved=208.9.3=20config=20from=20Mike=20M?= =?UTF-8?q?cHenry=20=20Tue=20Mar=2016=201999=20Cristian?= =?UTF-8?q?=20Gafton=20=20-=20version=208.9.3=20Tue=20D?= =?UTF-8?q?ec=2029=201998=20Cristian=20Gafton=20=20-=20?= =?UTF-8?q?build=20for=206.0=20-=20use=20the=20libdb1=20stuff=20correctly?= =?UTF-8?q?=20Mon=20Sep=2021=201998=20Michael=20K.=20Johnson=20=20-=20Allow=20empty=20QUEUE=20in=20/etc/sysconfig/se?= =?UTF-8?q?ndmail=20for=20those=20who=20want=20to=20run=20=20=20=20=20send?= =?UTF-8?q?mail=20in=20daemon=20mode=20without=20processing=20the=20queue?= =?UTF-8?q?=20regularly.=20Thu=20Sep=2017=201998=20Michael=20K.=20Johnson?= =?UTF-8?q?=20=20-=20/etc/sysconfig/sendmail=20Fri=20?= =?UTF-8?q?Aug=2028=201998=20Jeff=20Johnson=20=20-=20recom?= =?UTF-8?q?pile=20statically=20linked=20binary=20for=205.2/sparc=20Tue=20M?= =?UTF-8?q?ay=2005=201998=20Prospector=20System=20=20-=20?= =?UTF-8?q?translations=20modified=20for=20de,=20fr,=20tr=20Sat=20May=2002?= =?UTF-8?q?=201998=20Cristian=20Gafton=20=20-=20enhance?= =?UTF-8?q?d=20initscripts=20Fri=20May=2001=201998=20Cristian=20Gafton=20=20-=20added=20a=20rmail=20patch=20Wed=20Oct?= =?UTF-8?q?=2029=201997=20Donnie=20Barnes=20=20-=20argh!?= =?UTF-8?q?=20Fixed=20some=20of=20the=20db1=20handling=20that=20had=20to?= =?UTF-8?q?=20be=20added=20for=20glibc=202.1=20Fri=20Oct=2024=201997=20Don?= =?UTF-8?q?nie=20Barnes=20=20-=20added=20support=20for=20d?= =?UTF-8?q?b1=20on=20SPARC=20Thu=20Oct=2016=201997=20Donnie=20Barnes=20=20-=20added=20chkconfig=20support=20-=20various?= =?UTF-8?q?=20spec=20file=20cleanups=20-=20changed=20group=20to=20Networki?= =?UTF-8?q?ng/Daemons=20(from=20Daemons).=20Sure,=20it=20runs=20on=20non?= =?UTF-8?q?=20=20=20=20=20networked=20systems,=20but=20who=20really=20*nee?= =?UTF-8?q?ds*=20it=20then=3F=20Wed=20Oct=2008=201997=20Donnie=20Barnes=20?= =?UTF-8?q?=20-=20made=20/etc/mail/deny.db=20a=20ghost=20-?= =?UTF-8?q?=20removed=20preun=20that=20used=20to=20remove=20deny.db=20(gho?= =?UTF-8?q?st=20handles=20that=20now)=20-=20NOTE:=20upgrading=20from=20the?= =?UTF-8?q?=20sendmail=20packages=20in=204.8,=204.8.1,=20and=20possibly=20?= =?UTF-8?q?4.9=20(all=20Red=20Hat=20betas=20between=204.2=20and=205.0)=20c?= =?UTF-8?q?ould=20cause=20problems.=20You=20may=20=20=20=20=20need=20to=20?= =?UTF-8?q?do=20a=20makemap=20in=20/etc/mail=20and=20a=20newaliases=20afte?= =?UTF-8?q?r=20upgrading=20from=20=20=20=20=20those=20packages.=20Upgradin?= =?UTF-8?q?g=20from=204.2=20or=20prior=20should=20be=20fine.=20Mon=20Oct?= =?UTF-8?q?=2006=201997=20Erik=20Troan=20=20-=20made=20ali?= =?UTF-8?q?ases.db=20a=20ghost=20Tue=20Sep=2023=201997=20Donnie=20Barnes?= =?UTF-8?q?=20=20-=20fixed=20preuninstall=20script=20to=20?= =?UTF-8?q?handle=20aliases.db=20on=20upgrades=20properly=20Mon=20Sep=2015?= =?UTF-8?q?=201997=20Donnie=20Barnes=20=20-=20fixed=20post?= =?UTF-8?q?-install=20output=20and=20changed=20/var/spool/mqueue=20to=2075?= =?UTF-8?q?5=20Thu=20Sep=2011=201997=20Donnie=20Barnes=20?= =?UTF-8?q?=20-=20fixed=20/usr/lib/sendmail-cf=20paths=20Tue=20Sep=2009=20?= =?UTF-8?q?1997=20Donnie=20Barnes=20=20-=20updated=20to=20?= =?UTF-8?q?8.8.7=20-=20added=20some=20spam=20filtration=20-=20combined=20s?= =?UTF-8?q?ome=20makefile=20patches=20-=20added=20BuildRoot=20support=20We?= =?UTF-8?q?d=20Sep=2003=201997=20Erik=20Troan=20=20-=20mar?= =?UTF-8?q?ked=20initscript=20symlinks=20as=20missingok=20-=20run=20newali?= =?UTF-8?q?ses=20after=20creating=20/var/spool/mqueue=20Thu=20Jun=2012=201?= =?UTF-8?q?997=20Erik=20Troan=20=20-=20built=20against=20g?= =?UTF-8?q?libc,=20udated=20release=20to=20-6=20(skipped=20-5!)=20Tue=20Ap?= =?UTF-8?q?r=2001=201997=20Erik=20Troan=20=20-=20Added=20-?= =?UTF-8?q?nsl=20on=20the=20Alpha=20(for=20glibc=20to=20provide=20NIS=20fu?= =?UTF-8?q?nctions).=20Mon=20Mar=2003=201997=20Erik=20Troan=20=20-=20Added=20nis=20support.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .cvsignore | 2 + sendmail-redhat.mc | 46 ++++ sendmail.init | 92 ++++++++ sendmail.spec | 556 +++++++++++++++++++++++++++++++++++++++++++++ sendmail.sysconfig | 2 + sources | 2 + 6 files changed, 700 insertions(+) create mode 100644 sendmail-redhat.mc create mode 100644 sendmail.init create mode 100644 sendmail.spec create mode 100644 sendmail.sysconfig diff --git a/.cvsignore b/.cvsignore index e69de29..c391e4e 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1,2 @@ +check.tar +sendmail.8.11.0.tar.gz diff --git a/sendmail-redhat.mc b/sendmail-redhat.mc new file mode 100644 index 0000000..71a0144 --- /dev/null +++ b/sendmail-redhat.mc @@ -0,0 +1,46 @@ +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 +dnl m4 /etc/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') +define(`confDEF_USER_ID',``8:12'')dnl +undefine(`UUCP_RELAY')dnl +undefine(`BITNET_RELAY')dnl +define(`confAUTO_REBUILD')dnl +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(`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 +dnl define(`confTO_QUEUEWARN', `4h')dnl +dnl define(`confTO_QUEUERETURN', `5d')dnl +dnl define(`confQUEUE_LA', `12')dnl +dnl define(`confREFUSE_LA', `18')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(local_procmail)dnl +FEATURE(`access_db')dnl +FEATURE(`blacklist_recipients')dnl +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. +FEATURE(`accept_unresolvable_domains')dnl +dnl FEATURE(`relay_based_on_MX')dnl +MAILER(smtp)dnl +MAILER(procmail)dnl diff --git a/sendmail.init b/sendmail.init new file mode 100644 index 0000000..cc441f7 --- /dev/null +++ b/sendmail.init @@ -0,0 +1,92 @@ +#!/bin/sh +# +# sendmail This shell script takes care of starting and stopping +# sendmail. +# +# chkconfig: 2345 80 30 +# description: Sendmail is a Mail Transport Agent, which is the program \ +# that moves mail from one machine to another. +# processname: sendmail +# config: /etc/sendmail.cf +# pidfile: /var/run/sendmail.pid + +# Source function library. +. /etc/init.d/functions + +# Source networking configuration. +. /etc/sysconfig/network + +# Source sendmail configureation. +if [ -f /etc/sysconfig/sendmail ] ; then + . /etc/sysconfig/sendmail +else + DAEMON=no + QUEUE=1h +fi + +# Check that networking is up. +[ ${NETWORKING} = "no" ] && exit 0 + +[ -f /usr/sbin/sendmail ] || exit 0 + +RETVAL=0 + +start() { + # Start daemons. + + echo -n "Starting sendmail: " + /usr/bin/newaliases > /dev/null 2>&1 + for i in virtusertable access domaintable mailertable ; do + if [ -f /etc/mail/$i ] ; then + makemap hash /etc/mail/$i < /etc/mail/$i + fi + done + daemon /usr/sbin/sendmail $([ "$DAEMON" = yes ] && echo -bd) \ + $([ -n "$QUEUE" ] && echo -q$QUEUE) + RETVAL=$? + echo + [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sendmail + return $RETVAL +} + +stop() { + # Stop daemons. + echo -n "Shutting down sendmail: " + killproc sendmail + RETVAL=$? + echo + [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sendmail + return $RETVAL +} + +# See how we were called. +case "$1" in + start) + start + ;; + stop) + stop + ;; + restart|reload) + stop + start + RETVAL=$? + ;; + condrestart) + if [ -f /var/lock/subsys/sendmail ]; then + stop + start + RETVAL=$? + fi + ;; + status) + status sendmail + RETVAL=$? + ;; + *) + echo "Usage: sendmail {start|stop|restart|condrestart|status}" + exit 1 +esac + +exit $RETVAL + diff --git a/sendmail.spec b/sendmail.spec new file mode 100644 index 0000000..b6814d3 --- /dev/null +++ b/sendmail.spec @@ -0,0 +1,556 @@ +%define initdir /etc/rc.d/init.d + +Summary: A widely used Mail Transport Agent (MTA). +Name: sendmail +Version: 8.11.0 +Release: 8 +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 +Patch0: sendmail-8.11.0-redhat.patch +Patch1: sendmail-8.10.0-makemapman.patch +Patch2: sendmail-8.10.0-smrsh-paths.patch +Patch3: sendmail-8.8.7-rmail.patch +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 +Buildroot: %{_tmppath}/%{name}-root +Prereq: /sbin/chkconfig /usr/sbin/useradd /etc/init.d +Requires: procmail + +%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 e-mail. Sendmail is a +behind-the-scenes program which actually moves your e-mail over +networks or the Internet to where you want it to go. + +If you ever need to reconfigure Sendmail, you'll 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. + +Install the sendmail-doc package if you need documentation about +Sendmail. + +%package cf +Summary: The files needed to reconfigure Sendmail. +Group: System Environment/Daemons + +%description cf +This package includes the configuration files which you'd need to +generate the sendmail.cf file distributed with the sendmail package. +You'll need the sendmail-cf package if you ever need to reconfigure +and rebuild your sendmail.cf file. For example, the default +sendmail.cf file is not configured for UUCP. If someday you needed to +send and receive mail over UUCP, you'd need to install the sendmail-cf +package to help you reconfigure Sendmail. + +Install the sendmail-cf package if you need to reconfigure your +sendmail.cf file. + +%prep +%setup -q +%patch0 -p1 -b .redhat +%patch1 -p1 -b .makemapman +%patch2 -p1 -b .smrsh +%patch3 -p1 -b .rmail +%patch4 -p1 -b .aliases +%patch5 -p1 -b .movestuff +%patch6 -p0 +%patch7 -p1 -b .m4path +pushd sendmail +patch -s -p1 -b -z .shapiro -l < %{PATCH8} +popd + +sed -e 's|@@PATH@@|\.\.|' < %{SOURCE6} > cf/cf/redhat.mc + +%build +export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -DUSE_VENDOR_CF_PATH=1" + +cd sendmail +sh Build -f ../redhat.config.m4 +cd .. + +cd mailstats +sh Build -f ../redhat.config.m4 +cd .. + +cd rmail +sh Build -f ../redhat.config.m4 +cd .. + +cd makemap +sh Build -f ../redhat.config.m4 +cd .. + +cd praliases +sh Build -f ../redhat.config.m4 +cd .. + +cd smrsh +sh Build -f ../redhat.config.m4 +cd .. + +cd cf/cf +m4 redhat.mc > redhat.cf + +%install +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 +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` \ + 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` \ + 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` \ + 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` \ + 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` \ + 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` \ + 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 +cp smrsh/README $RPM_BUILD_ROOT%{_docdir}/sendmail/README.smrsh +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 +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 +echo "# local-host-names - include all aliases for your machine here." > $RPM_BUILD_ROOT/etc/mail/local-host-names + +ln -sf ../sbin/sendmail $RPM_BUILD_ROOT/usr/lib/sendmail +install -d -m755 $RPM_BUILD_ROOT/var/spool/mqueue + +# dangling symlinks +for f in hoststat mailq newaliases purgestat + do + ln -sf ../sbin/sendmail $RPM_BUILD_ROOT/usr/bin/${f} + done +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 +# 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 +# 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/usr/bin/makemap -C $RPM_BUILD_ROOT/etc/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 +install -m644 %{SOURCE3} $RPM_BUILD_ROOT/etc/aliases +$RPM_BUILD_ROOT/usr/bin/makemap -C $RPM_BUILD_ROOT/etc/sendmail.cf hash $RPM_BUILD_ROOT/etc/aliases.db < %{SOURCE3} + +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 + +strip $RPM_BUILD_ROOT/usr/sbin/{mailstats,praliases,sendmail} +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 + +%clean +rm -rf $RPM_BUILD_ROOT + +%pre +/usr/sbin/useradd -u 47 -d /var/spool/mqueue -r -s /dev/null mailnull >/dev/null 2>&1 || : + +%postun +if [ "$1" -ge "1" ]; then + %{initdir}/sendmail condrestart >/dev/null 2>&1 +fi +if [ $1 = 0 ]; then + /usr/sbin/userdel mailnull > /dev/null 2>&1 || : +fi + +%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 + +# +# 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) +# +{ /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} + sleep 1 + fi + done +} > /dev/null 2>&1 + +/sbin/chkconfig --add sendmail + +%preun +if [ $1 = 0 ]; then + %{initdir}/sendmail stop >/dev/null 2>&1 + /sbin/chkconfig --del sendmail +fi + +%triggerpostun -- sendmail < 8.10.0 +/sbin/chkconfig --add sendmail + +%files +%defattr(-,root,root) +/usr/sbin/mailstats +/usr/sbin/praliases +/usr/bin/hoststat +/usr/bin/purgestat +/usr/bin/rmail +/usr/bin/makemap +/usr/sbin/makemap +/usr/sbin/sendmail +/usr/bin/newaliases +/usr/bin/mailq +/usr/sbin/smrsh +/usr/lib/sendmail + +%{_mandir}/man8/rmail.8* +%{_mandir}/man8/praliases.8* +%{_mandir}/man8/mailstats.8* +%{_mandir}/man8/makemap.8* +%{_mandir}/man8/sendmail.8* +%{_mandir}/man5/aliases.5* +%{_mandir}/man1/newaliases.1* +%{_mandir}/man1/mailq.1* + +/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 +%config(noreplace) /etc/mail/local-host-names +%config(noreplace) /etc/aliases +%attr(0644,root,mail) %ghost /etc/aliases.db +%attr(0755,root,mail) %dir /var/spool/mqueue +%dir /etc/smrsh +%dir /etc/mail + +%config /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 + +%config /etc/sysconfig/sendmail + +%config %{initdir}/sendmail + +%config %{_libdir}/sasl/Sendmail.conf + +%files cf +%defattr(-,root,root) +/usr/lib/sendmail-cf + +%files doc +%defattr(-,root,root) +%{_docdir}/sendmail + +%changelog +* 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. diff --git a/sendmail.sysconfig b/sendmail.sysconfig new file mode 100644 index 0000000..cada3c9 --- /dev/null +++ b/sendmail.sysconfig @@ -0,0 +1,2 @@ +DAEMON=yes +QUEUE=1h diff --git a/sources b/sources index e69de29..1ed3de3 100644 --- a/sources +++ b/sources @@ -0,0 +1,2 @@ +861eb2c2153e5339785f15aaef7713ed check.tar +95a21f6838dc0489924ca71d98e40edf sendmail.8.11.0.tar.gz