1 Summary: A widely used Mail Transport Agent (MTA).
2 Summary(pl): Sendmail -- aplikacja do obs³ugi poczty elektronicznej
7 Group: System Environment/Daemons
8 Group(pl): Sieciowe/Serwery
10 Source0: ftp://ftp.cs.berkeley.edu/ucb/sendmail/%{name}.%{version}.tar.gz
11 Source1: sendmail.init
12 Source2: http://www.informatik.uni-kiel.de/%7Eca/email/rules/check.tar
14 Source4: sendmail.sysconfig
15 Source5: sendmail-8.9.3-etc-mail-Makefile
16 Source6: sendmail-redhat.mc
17 Patch0: sendmail-8.10.0-redhat.patch
18 Patch1: sendmail-8.10.0-makemapman.patch
19 Patch2: sendmail-8.10.0-smrsh-paths.patch
20 Patch3: sendmail-8.8.7-rmail.patch
21 #Patch4: sendmail-8.10.0-aliasesDoS.patch
22 #Patch5: sendmail-8.10.0-movefiles.patch
23 #Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Prereq: /sbin/chkconfig
34 The Sendmail program is a very widely used Mail Transport Agent (MTA).
35 MTAs send mail from one machine to another. Sendmail is not a client
36 program, which you use to read your e-mail. Sendmail is a
37 behind-the-scenes program which actually moves your e-mail over
38 networks or the Internet to where you want it to go.
40 If you ever need to reconfigure Sendmail, you'll also need to have the
41 sendmail.cf package installed. If you need documentation on Sendmail,
42 you can install the sendmail-doc package.
46 Sendmail jest programem umo¿liwiaj±cym wymianê poczty elektronicznej
47 miêdzy komputerami w sieci internet. Zajmuje siê przekazywaniem poczty
48 elektronicznej miêdzy bramkami pocztowymi i dostarczaniem przesy³ek na
49 konta docelowe. Bardzo dobrze obs³uguje aliasy pocztowe a jego
50 dodatkowym atutem jest prosta konfiguracja. Dziêki rozbudowanym
51 mo¿liwo¶ciom konfiguracyjnym jest w stanie dostarczaæ przesy³ki za
52 po¶rednictwem protoko³ów: SMTP, ESMTP, UUCP, X.400 i innych.
54 Je¿eli masz zamiar korzystaæ z poczty elektronicznej w sieci internet
55 oraz 6bone to zainstaluj ten pakiet
58 Summary: Documentation about the Sendmail Mail Transport Agent program.
59 Summary(pl): Dokumentacja do Sendmaila.
62 ###### /home/lukasz/rpm/groups: no such file
65 The sendmail-doc package contains documentation about the Sendmail
66 Mail Transport Agent (MTA) program, including release notes, the
67 Sendmail FAQ and a few papers written about Sendmail. The papers are
68 provided in PostScript(TM) and troff formats.
70 Install the sendmail-doc package if you need documentation about
74 Ten pakiet zawiera dokumentacjê do programu Sendmail Mail Transport
75 Agent (MTA). Dokumentacja zwawiera informacje o zmianach w bie¿±cej
76 wersji, FAQ - najczêsciej zadawane pytania. Dokumentacja dostêpna jest
77 w formacie PostScript(TM) oraz troff. Je¿eli potrzebujesz dokumntacji
78 - zainstaluj ten pakiet.
81 Summary: The files needed to reconfigure Sendmail.
82 Summary(pl): Pliki konfiguracyjne oraz makra m4 dla sendmaila
83 Group: System Environment/Daemons
84 ###### /home/lukasz/rpm/groups: no such file
86 Requires: %{name} = %{version}
90 This package includes the configuration files which you'd need to
91 generate the sendmail.cf file distributed with the sendmail package.
92 You'll need the sendmail-cf package if you ever need to reconfigure
93 and rebuild your sendmail.cf file. For example, the default
94 sendmail.cf file is not configured for UUCP. If someday you needed to
95 send and receive mail over UUCP, you'd need to install the sendmail-cf
96 package to help you reconfigure Sendmail.
98 Install the sendmail-cf package if you need to reconfigure your
101 %description -l pl cf
102 Pakiet ten zawiera wszystkie pliki konfiguracyjne u¿ywane do gene-
103 rowania pliku sendmail.cf, znajduj±cego siê w pakiecie bazowym.
104 Bêdziesz potrzebowa³ tego pakietu je¿eli chcesz zmieniæ i przebudowaæ
105 konfiguracjê swojego sendmaila. Na przyk³ad, standardowy plik konfigu-
106 racyjny nie zawiera wspomagania dla poczty po UUCP. Je¿eli chcesz wy-
107 sy³aæ i odbieraæ pocztê po UUCP bêdziesz potrzebowa³ tego pakietu.
111 %patch0 -p1 -b .redhat
112 %patch1 -p1 -b .makemapman
113 %patch2 -p1 -b .smrsh
114 %patch3 -p1 -b .rmail
115 #%patch4 -p1 -b .aliases
116 #%patch5 -p1 -b .movestuff
119 #tar xf $RPM_SOURCE_DIR/check.tar -C cf
120 #chown root.root cf/hack/* cf/README.check
123 sed -e 's|@@PATH@@|\.\.|' < %{SOURCE6} > cf/cf/redhat.mc
126 export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -DUSE_VENDOR_CF_PATH=1"
129 sh Build -f ../redhat.config.m4
133 sh Build -f ../redhat.config.m4
137 sh Build -f ../redhat.config.m4
141 sh Build -f ../redhat.config.m4
145 sh Build -f ../redhat.config.m4
149 sh Build -f ../redhat.config.m4
153 m4 redhat.mc > redhat.cf
156 rm -rf $RPM_BUILD_ROOT
157 install -d $RPM_BUILD_ROOT
160 install -d etc/rc.d/init.d etc/rc.d/rc{0,1,2,3,4,5,6}.d etc/sysconfig
161 install -d usr/bin usr/lib usr/man/man{1,5,8} usr/sbin var/log var/spool usr/lib/sendmail-cf
164 OBJDIR=obj.$(uname -s).$(uname -r).$(arch)
166 make DESTDIR=$RPM_BUILD_ROOT SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \
167 install -C $OBJDIR/sendmail
168 make DESTDIR=$RPM_BUILD_ROOT SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \
169 install -C $OBJDIR/mailstats
170 make DESTDIR=$RPM_BUILD_ROOT SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \
171 install -C $OBJDIR/praliases
172 make DESTDIR=$RPM_BUILD_ROOT SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \
173 force-install -C $OBJDIR/rmail
174 make DESTDIR=$RPM_BUILD_ROOT SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \
175 install -C $OBJDIR/makemap
176 ln -sf ../sbin/makemap $RPM_BUILD_ROOT%{_bindir}/makemap
177 make DESTDIR=$RPM_BUILD_ROOT SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \
178 install -C $OBJDIR/smrsh
180 # install docs by hand
181 install -d $RPM_BUILD_ROOT%{_prefix}/doc/sendmail
182 cp -ar FAQ LICENSE KNOWNBUGS README RELEASE_NOTES doc $RPM_BUILD_ROOT%{_prefix}/doc/sendmail
183 cp smrsh/README $RPM_BUILD_ROOT%{_prefix}/doc/sendmail/README.smrsh
184 cp cf/README $RPM_BUILD_ROOT%{_prefix}/doc/sendmail/README.cf
186 # install the cf files
188 cp -ar * $RPM_BUILD_ROOT%{_libdir}/sendmail-cf
191 install -d $RPM_BUILD_ROOT/etc/mail
194 install cf/cf/redhat.cf $RPM_BUILD_ROOT/etc/sendmail.cf
195 sed -e 's|@@PATH@@|%{_libdir}/sendmail-cf|' < %{SOURCE6} > $RPM_BUILD_ROOT/etc/mail/sendmail.mc
196 echo "# local-host-names - include all aliases for your machine here." > $RPM_BUILD_ROOT/etc/mail/local-host-names
198 ln -sf ../sbin/sendmail $RPM_BUILD_ROOT%{_libdir}/sendmail
199 install -d -m755 $RPM_BUILD_ROOT/var/spool/mqueue
202 for f in hoststat mailq newaliases purgestat
204 ln -sf ../sbin/sendmail $RPM_BUILD_ROOT%{_bindir}/${f}
206 install -d $RPM_BUILD_ROOT/etc/smrsh
208 cat <<EOF > $RPM_BUILD_ROOT/etc/mail/access
209 # Check the %{_prefix}/doc/sendmail-%{version}/README.cf file for a description
210 # of the format of this file. (search for access_db in that file)
211 # The %{_prefix}/doc/sendmail-%{version}/README.cf is part of the sendmail-doc
214 # by default we allow relaying from localhost...
215 localhost.localdomain RELAY
220 for map in virtusertable access domaintable mailertable
222 touch $RPM_BUILD_ROOT/etc/mail/${map}
223 makemap hash $RPM_BUILD_ROOT/etc/mail/${map}.db < $RPM_BUILD_ROOT/etc/mail/${map}
225 install %{SOURCE3} $RPM_BUILD_ROOT/etc/aliases
226 makemap hash $RPM_BUILD_ROOT/etc/aliases.db < %{SOURCE3}
228 install %SOURCE4 $RPM_BUILD_ROOT/etc/sysconfig/sendmail
229 install -m755 %SOURCE1 $RPM_BUILD_ROOT/etc/rc.d/init.d/sendmail
231 install %{SOURCE5} $RPM_BUILD_ROOT/etc/mail/Makefile
233 chmod u+w $RPM_BUILD_ROOT%{_sbindir}/{mailstats,praliases}
234 chmod u+w $RPM_BUILD_ROOT%{_bindir}/rmail
236 strip $RPM_BUILD_ROOT%{_sbindir}/{mailstats,praliases,sendmail}
237 strip $RPM_BUILD_ROOT%{_bindir}/rmail
240 rm -rf $RPM_BUILD_ROOT
244 # Convert old format to new
246 if [ -f /etc/mail/deny ] ; then
247 cat /etc/mail/deny | \
248 awk 'BEGIN{ print "# Entries from obsoleted /etc/mail/deny"} \
249 {print $1" REJECT"}' >> /etc/mail/access
250 cp /etc/mail/deny /etc/mail/deny.rpmorig
252 for oldfile in relay_allow ip_allow name_allow ; do
253 if [ -f /etc/mail/$oldfile ] ; then
254 cat /etc/mail/$oldfile | \
255 awk "BEGIN { print \"# Entries from obsoleted /etc/mail/$oldfile\" ;} \
256 { print $1\" RELAY\" }" >> /etc/mail/access
257 cp /etc/mail/$oldfile /etc/mail/$oldfile.rpmorig
262 # Oops, these files moved
264 if [ -f /etc/sendmail.cw ] ; then
265 cat /etc/sendmail.cw | \
266 awk 'BEGIN { print "# Entries from obsoleted /etc/sendmail.cw" ;} \
267 { print $1 }' >> /etc/mail/local-host-names
268 cp /etc/sendmail.cw /etc/sendmail.cw.rpmorig
271 # Rebuild maps (next reboot will rebuild also)
273 { /usr/bin/newaliases
274 for map in virtusertable access domaintable mailertable
276 if [ -f /etc/mail/${map} ] ; then
277 /usr/bin/makemap hash /etc/mail/${map} < /etc/mail/${map}
283 /sbin/chkconfig --add sendmail
287 /sbin/chkconfig --del sendmail
290 # removal of compatibility links
291 %triggerpostun -- sendmail < 8.10.1
292 /sbin/chkconfig --add sendmail
295 %defattr(644,root,root,755)
296 %attr(755,root,root) %{_sbindir}/mailstats
297 %attr(755,root,root) %{_sbindir}/praliases
298 %attr(755,root,root) %{_bindir}/hoststat
299 %attr(755,root,root) %{_bindir}/purgestat
300 %attr(755,root,root) %{_bindir}/rmail
301 %attr(755,root,root) %{_bindir}/makemap
302 %attr(755,root,root) %{_sbindir}/makemap
303 %attr(755,root,root) %{_sbindir}/sendmail
304 %attr(755,root,root) %{_bindir}/newaliases
305 %attr(755,root,root) %{_bindir}/mailq
306 %attr(755,root,root) %{_sbindir}/smrsh
309 %{_mandir}/man8/rmail.8*
310 %{_mandir}/man8/praliases.8*
311 %{_mandir}/man8/mailstats.8*
312 %{_mandir}/man8/makemap.8*
313 %{_mandir}/man8/sendmail.8*
314 %{_mandir}/man5/aliases.5*
315 %{_mandir}/man1/newaliases.1*
316 %{_mandir}/man1/mailq.1*
319 # XXX can't do noreplace here or new sendmail will not deliver.
320 %config /etc/sendmail.cf
321 %attr(0644,root,root) %config /etc/mail/sendmail.mc
322 %config(noreplace) /etc/mail/local-host-names
323 %config(noreplace) /etc/aliases
324 %attr(0644,root,mail) %ghost /etc/aliases.db
325 %attr(0755,root,mail) %dir /var/spool/mqueue
329 %config /etc/mail/Makefile
330 %attr(0644,root,root) %ghost /etc/mail/virtusertable.db
331 %attr(0644,root,root) %config(noreplace) /etc/mail/virtusertable
333 %attr(0644,root,root) %ghost /etc/mail/access.db
334 %attr(0644,root,root) %config(noreplace) /etc/mail/access
336 %attr(0644,root,root) %ghost /etc/mail/domaintable.db
337 %attr(0644,root,root) %config(noreplace) /etc/mail/domaintable
339 %attr(0644,root,root) %ghost /etc/mail/mailertable.db
340 %attr(0644,root,root) %config(noreplace) /etc/mail/mailertable
342 %attr(0644,root,root) %config(noreplace) /etc/mail/helpfile
344 %config /etc/sysconfig/sendmail
346 %config /etc/rc.d/init.d/sendmail
349 %defattr(644,root,root,755)
350 %{_libdir}/sendmail-cf
353 %defattr(644,root,root,755)
354 %{_prefix}/doc/sendmail
356 * Mon Apr 05 1999 Cristian Gafton <gafton@redhat.com>
357 - fixed virtusertable patch
358 - make smrsh look into /etc/smrsh
360 * Mon Mar 29 1999 Jeff Johnson <jbj@redhat.com>
361 - remove noreplace attr from sednmail.cf.
363 * Thu Mar 25 1999 Cristian Gafton <gafton@redhat.com>
364 - provide a more sane /etc/mail/access default config file
365 - use makemap to initializa the empty databases, not touch
366 - added a small, but helpful /etc/mail/Makefile
368 * Mon Mar 22 1999 Jeff Johnson <jbj@redhat.com>
369 - correxct dangling symlinks.
370 - check for map file existence in %post.
372 * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
373 - auto rebuild in the new build environment (release 3)
374 * Fri Mar 19 1999 Jeff Johnson <jbj@redhat.com>
375 - improved 8.9.3 config from Mike McHenry <mmchen@minn.net>
377 * Tue Mar 16 1999 Cristian Gafton <gafton@redhat.com>
380 * Tue Dec 29 1998 Cristian Gafton <gafton@redhat.com>
382 - use the libdb1 stuff correctly
384 * Mon Sep 21 1998 Michael K. Johnson <johnsonm@redhat.com>
385 - Allow empty QUEUE in /etc/sysconfig/sendmail for those who
386 want to run sendmail in daemon mode without processing the
389 * Thu Sep 17 1998 Michael K. Johnson <johnsonm@redhat.com>
390 - /etc/sysconfig/sendmail
392 * Fri Aug 28 1998 Jeff Johnson <jbj@redhat.com>
393 - recompile statically linked binary for 5.2/sparc
395 * Tue May 05 1998 Prospector System <bugs@redhat.com>
396 - translations modified for de, fr, tr
397 * Sat May 02 1998 Cristian Gafton <gafton@redhat.com>
398 - enhanced initscripts
400 * Fri May 01 1998 Cristian Gafton <gafton@redhat.com>
401 - added a rmail patch
403 * Wed Oct 29 1997 Donnie Barnes <djb@redhat.com>
404 - argh! Fixed some of the db1 handling that had to be added for glibc 2.1
406 * Fri Oct 24 1997 Donnie Barnes <djb@redhat.com>
407 - added support for db1 on SPARC
409 * Thu Oct 16 1997 Donnie Barnes <djb@redhat.com>
410 - added chkconfig support
411 - various spec file cleanups
412 - changed group to Networking/Daemons (from Daemons). Sure, it runs on
413 non networked systems, but who really *needs* it then?
415 * Wed Oct 08 1997 Donnie Barnes <djb@redhat.com>
416 - made /etc/mail/deny.db a ghost
417 - removed preun that used to remove deny.db (ghost handles that now)
418 - NOTE: upgrading from the sendmail packages in 4.8, 4.8.1, and possibly
419 4.9 (all Red Hat betas between 4.2 and 5.0) could cause problems. You
420 may need to do a makemap in /etc/mail and a newaliases after upgrading
421 from those packages. Upgrading from 4.2 or prior should be fine.
423 * Mon Oct 06 1997 Erik Troan <ewt@redhat.com>
424 - made aliases.db a ghost
426 * Tue Sep 23 1997 Donnie Barnes <djb@redhat.com>
427 - fixed preuninstall script to handle aliases.db on upgrades properly
429 * Mon Sep 15 1997 Donnie Barnes <djb@redhat.com>
430 - fixed post-install output and changed /var/spool/mqueue to 755
432 * Thu Sep 11 1997 Donnie Barnes <djb@redhat.com>
433 - fixed /usr/lib/sendmail-cf paths
435 * Tue Sep 09 1997 Donnie Barnes <djb@redhat.com>
437 - added some spam filtration
438 - combined some makefile patches
439 - added BuildRoot support
441 * Wed Sep 03 1997 Erik Troan <ewt@redhat.com>
442 - marked initscript symlinks as missingok
443 - run newalises after creating /var/spool/mqueue
444 * Thu Jun 12 1997 Erik Troan <ewt@redhat.com>
445 - built against glibc, udated release to -6 (skipped -5!)
447 * Tue Apr 01 1997 Erik Troan <ewt@redhat.com>
448 - Added -nsl on the Alpha (for glibc to provide NIS functions).
450 * Mon Mar 03 1997 Erik Troan <ewt@redhat.com>