1 Summary: A widely used Mail Transport Agent (MTA).
2 Summary(pl): Sendmail -- aplikacja do obs³ugi poczty elektronicznej
7 Group: System Environment/Daemons
9 Group(pl): Sieciowe/Serwery
11 Source0: ftp://ftp.cs.berkeley.edu/ucb/sendmail/%{name}.%{version}.tar.gz
12 Source1: sendmail.init
13 Source2: http://www.informatik.uni-kiel.de/%7Eca/email/rules/check.tar
15 Source4: sendmail.sysconfig
16 Source5: sendmail-8.9.3-etc-mail-Makefile
17 Source6: sendmail-redhat.mc
18 Patch0: sendmail-8.10.0-redhat.patch
19 Patch1: sendmail-8.10.0-makemapman.patch
20 Patch2: sendmail-8.10.0-smrsh-paths.patch
21 Patch3: sendmail-8.8.7-rmail.patch
22 #Patch4: sendmail-8.10.0-aliasesDoS.patch
23 #Patch5: sendmail-8.10.0-movefiles.patch
24 #Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Prereq: /sbin/chkconfig
35 The Sendmail program is a very widely used Mail Transport Agent (MTA).
36 MTAs send mail from one machine to another. Sendmail is not a client
37 program, which you use to read your e-mail. Sendmail is a
38 behind-the-scenes program which actually moves your e-mail over
39 networks or the Internet to where you want it to go.
41 If you ever need to reconfigure Sendmail, you'll also need to have the
42 sendmail.cf package installed. If you need documentation on Sendmail,
43 you can install the sendmail-doc package.
47 Sendmail jest programem umo¿liwiaj±cym wymianê poczty elektronicznej
48 miêdzy komputerami w sieci internet. Zajmuje siê przekazywaniem poczty
49 elektronicznej miêdzy bramkami pocztowymi i dostarczaniem przesy³ek na
50 konta docelowe. Bardzo dobrze obs³uguje aliasy pocztowe a jego
51 dodatkowym atutem jest prosta konfiguracja. Dziêki rozbudowanym
52 mo¿liwo¶ciom konfiguracyjnym jest w stanie dostarczaæ przesy³ki za
53 po¶rednictwem protoko³ów: SMTP, ESMTP, UUCP, X.400 i innych.
55 Je¿eli masz zamiar korzystaæ z poczty elektronicznej w sieci internet
56 oraz 6bone to zainstaluj ten pakiet
59 Summary: Documentation about the Sendmail Mail Transport Agent program.
60 Summary(pl): Dokumentacja do Sendmaila.
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
85 Requires: %{name} = %{version}
89 This package includes the configuration files which you'd need to
90 generate the sendmail.cf file distributed with the sendmail package.
91 You'll need the sendmail-cf package if you ever need to reconfigure
92 and rebuild your sendmail.cf file. For example, the default
93 sendmail.cf file is not configured for UUCP. If someday you needed to
94 send and receive mail over UUCP, you'd need to install the sendmail-cf
95 package to help you reconfigure Sendmail.
97 Install the sendmail-cf package if you need to reconfigure your
100 %description -l pl cf
101 Pakiet ten zawiera wszystkie pliki konfiguracyjne u¿ywane do gene-
102 rowania pliku sendmail.cf, znajduj±cego siê w pakiecie bazowym.
103 Bêdziesz potrzebowa³ tego pakietu je¿eli chcesz zmieniæ i przebudowaæ
104 konfiguracjê swojego sendmaila. Na przyk³ad, standardowy plik konfigu-
105 racyjny nie zawiera wspomagania dla poczty po UUCP. Je¿eli chcesz wy-
106 sy³aæ i odbieraæ pocztê po UUCP bêdziesz potrzebowa³ tego pakietu.
110 %patch0 -p1 -b .redhat
111 %patch1 -p1 -b .makemapman
112 %patch2 -p1 -b .smrsh
113 %patch3 -p1 -b .rmail
114 #%patch4 -p1 -b .aliases
115 #%patch5 -p1 -b .movestuff
118 #tar xf $RPM_SOURCE_DIR/check.tar -C cf
119 #chown root.root cf/hack/* cf/README.check
122 sed -e 's|@@PATH@@|\.\.|' < %{SOURCE6} > cf/cf/redhat.mc
125 export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -DUSE_VENDOR_CF_PATH=1"
128 sh Build -f ../redhat.config.m4
132 sh Build -f ../redhat.config.m4
136 sh Build -f ../redhat.config.m4
140 sh Build -f ../redhat.config.m4
144 sh Build -f ../redhat.config.m4
148 sh Build -f ../redhat.config.m4
152 m4 redhat.mc > redhat.cf
155 rm -rf $RPM_BUILD_ROOT
156 install -d $RPM_BUILD_ROOT
159 install -d etc/rc.d/init.d etc/rc.d/rc{0,1,2,3,4,5,6}.d etc/sysconfig
160 install -d usr/bin usr/lib usr/man/man{1,5,8} usr/sbin var/log var/spool usr/lib/sendmail-cf
163 OBJDIR=obj.$(uname -s).$(uname -r).$(arch)
165 make DESTDIR=$RPM_BUILD_ROOT SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \
166 install -C $OBJDIR/sendmail
167 make DESTDIR=$RPM_BUILD_ROOT SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \
168 install -C $OBJDIR/mailstats
169 make DESTDIR=$RPM_BUILD_ROOT SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \
170 install -C $OBJDIR/praliases
171 make DESTDIR=$RPM_BUILD_ROOT SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \
172 force-install -C $OBJDIR/rmail
173 make DESTDIR=$RPM_BUILD_ROOT SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \
174 install -C $OBJDIR/makemap
175 ln -sf ../sbin/makemap $RPM_BUILD_ROOT%{_bindir}/makemap
176 make DESTDIR=$RPM_BUILD_ROOT SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \
177 install -C $OBJDIR/smrsh
179 # install docs by hand
180 install -d $RPM_BUILD_ROOT%{_prefix}/doc/sendmail
181 cp -ar FAQ LICENSE KNOWNBUGS README RELEASE_NOTES doc $RPM_BUILD_ROOT%{_prefix}/doc/sendmail
182 cp smrsh/README $RPM_BUILD_ROOT%{_prefix}/doc/sendmail/README.smrsh
183 cp cf/README $RPM_BUILD_ROOT%{_prefix}/doc/sendmail/README.cf
185 # install the cf files
187 cp -ar * $RPM_BUILD_ROOT%{_libdir}/sendmail-cf
190 install -d $RPM_BUILD_ROOT%{_sysconfdir}/mail
193 install cf/cf/redhat.cf $RPM_BUILD_ROOT%{_sysconfdir}/sendmail.cf
194 sed -e 's|@@PATH@@|%{_libdir}/sendmail-cf|' < %{SOURCE6} > $RPM_BUILD_ROOT%{_sysconfdir}/mail/sendmail.mc
195 echo "# local-host-names - include all aliases for your machine here." > $RPM_BUILD_ROOT%{_sysconfdir}/mail/local-host-names
197 ln -sf ../sbin/sendmail $RPM_BUILD_ROOT%{_libdir}/sendmail
198 install -d -m755 $RPM_BUILD_ROOT/var/spool/mqueue
201 for f in hoststat mailq newaliases purgestat
203 ln -sf ../sbin/sendmail $RPM_BUILD_ROOT%{_bindir}/${f}
205 install -d $RPM_BUILD_ROOT%{_sysconfdir}/smrsh
207 cat <<EOF > $RPM_BUILD_ROOT%{_sysconfdir}/mail/access
208 # Check the %{_prefix}/doc/sendmail-%{version}/README.cf file for a description
209 # of the format of this file. (search for access_db in that file)
210 # The %{_prefix}/doc/sendmail-%{version}/README.cf is part of the sendmail-doc
213 # by default we allow relaying from localhost...
214 localhost.localdomain RELAY
219 for map in virtusertable access domaintable mailertable
221 touch $RPM_BUILD_ROOT%{_sysconfdir}/mail/${map}
222 makemap hash $RPM_BUILD_ROOT%{_sysconfdir}/mail/${map}.db < $RPM_BUILD_ROOT%{_sysconfdir}/mail/${map}
224 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/aliases
225 makemap hash $RPM_BUILD_ROOT%{_sysconfdir}/aliases.db < %{SOURCE3}
227 install %SOURCE4 $RPM_BUILD_ROOT/etc/sysconfig/sendmail
228 install -m755 %SOURCE1 $RPM_BUILD_ROOT/etc/rc.d/init.d/sendmail
230 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/mail/Makefile
232 chmod u+w $RPM_BUILD_ROOT%{_sbindir}/{mailstats,praliases}
233 chmod u+w $RPM_BUILD_ROOT%{_bindir}/rmail
235 strip $RPM_BUILD_ROOT%{_sbindir}/{mailstats,praliases,sendmail}
236 strip $RPM_BUILD_ROOT%{_bindir}/rmail
239 rm -rf $RPM_BUILD_ROOT
243 # Convert old format to new
245 if [ -f /etc/mail/deny ] ; then
246 cat /etc/mail/deny | \
247 awk 'BEGIN{ print "# Entries from obsoleted /etc/mail/deny"} \
248 {print $1" REJECT"}' >> /etc/mail/access
249 cp /etc/mail/deny /etc/mail/deny.rpmorig
251 for oldfile in relay_allow ip_allow name_allow ; do
252 if [ -f /etc/mail/$oldfile ] ; then
253 cat /etc/mail/$oldfile | \
254 awk "BEGIN { print \"# Entries from obsoleted /etc/mail/$oldfile\" ;} \
255 { print $1\" RELAY\" }" >> /etc/mail/access
256 cp /etc/mail/$oldfile /etc/mail/$oldfile.rpmorig
261 # Oops, these files moved
263 if [ -f /etc/sendmail.cw ] ; then
264 cat /etc/sendmail.cw | \
265 awk 'BEGIN { print "# Entries from obsoleted /etc/sendmail.cw" ;} \
266 { print $1 }' >> /etc/mail/local-host-names
267 cp /etc/sendmail.cw /etc/sendmail.cw.rpmorig
270 # Rebuild maps (next reboot will rebuild also)
272 { /usr/bin/newaliases
273 for map in virtusertable access domaintable mailertable
275 if [ -f /etc/mail/${map} ] ; then
276 /usr/bin/makemap hash /etc/mail/${map} < /etc/mail/${map}
282 /sbin/chkconfig --add sendmail
286 /sbin/chkconfig --del sendmail
289 # removal of compatibility links
290 %triggerpostun -- sendmail < 8.10.1
291 /sbin/chkconfig --add sendmail
294 %defattr(644,root,root,755)
295 %attr(755,root,root) %{_sbindir}/mailstats
296 %attr(755,root,root) %{_sbindir}/praliases
297 %attr(755,root,root) %{_bindir}/hoststat
298 %attr(755,root,root) %{_bindir}/purgestat
299 %attr(755,root,root) %{_bindir}/rmail
300 %attr(755,root,root) %{_bindir}/makemap
301 %attr(755,root,root) %{_sbindir}/makemap
302 %attr(755,root,root) %{_sbindir}/sendmail
303 %attr(755,root,root) %{_bindir}/newaliases
304 %attr(755,root,root) %{_bindir}/mailq
305 %attr(755,root,root) %{_sbindir}/smrsh
308 %{_mandir}/man8/rmail.8*
309 %{_mandir}/man8/praliases.8*
310 %{_mandir}/man8/mailstats.8*
311 %{_mandir}/man8/makemap.8*
312 %{_mandir}/man8/sendmail.8*
313 %{_mandir}/man5/aliases.5*
314 %{_mandir}/man1/newaliases.1*
315 %{_mandir}/man1/mailq.1*
318 # XXX can't do noreplace here or new sendmail will not deliver.
319 %config %{_sysconfdir}/sendmail.cf
320 %attr(0644,root,root) %config %{_sysconfdir}/mail/sendmail.mc
321 %config(noreplace) %{_sysconfdir}/mail/local-host-names
322 %config(noreplace) %{_sysconfdir}/aliases
323 %attr(0644,root,mail) %ghost %{_sysconfdir}/aliases.db
324 %attr(0755,root,mail) %dir /var/spool/mqueue
325 %dir %{_sysconfdir}/smrsh
326 %dir %{_sysconfdir}/mail
328 %config %{_sysconfdir}/mail/Makefile
329 %attr(0644,root,root) %ghost %{_sysconfdir}/mail/virtusertable.db
330 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/mail/virtusertable
332 %attr(0644,root,root) %ghost %{_sysconfdir}/mail/access.db
333 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/mail/access
335 %attr(0644,root,root) %ghost %{_sysconfdir}/mail/domaintable.db
336 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/mail/domaintable
338 %attr(0644,root,root) %ghost %{_sysconfdir}/mail/mailertable.db
339 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/mail/mailertable
341 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/mail/helpfile
343 %config /etc/sysconfig/sendmail
345 %config /etc/rc.d/init.d/sendmail
348 %defattr(644,root,root,755)
349 %{_libdir}/sendmail-cf
352 %defattr(644,root,root,755)
353 %{_prefix}/doc/sendmail