- updated to 8.16.1 (includes security fix)
[packages/sendmail.git] / sendmail.spec
CommitLineData
e7f443ca 1# TODO:
b0d90d5e
PG
2# - make sid-milter support:
3# http://sourceforge.net/projects/sid-milter/
4# http://www.sendmail.net/
0f645c73 5# - fix re-entrancy of install
229843d7 6# - add tests bcond?
27e830f8
JB
7#
8# Conditional build:
cd0a03f5
JB
9%bcond_without ldap # without LDAP support
10%bcond_without tls # without TLS (SSL) support
cd0a03f5 11%bcond_with pgsql # with PostgreSQL support (bluelabs)
a67bd7a2 12
3c3d8557 13Summary: A widely used Mail Transport Agent (MTA)
2eecc50c
ER
14Summary(de.UTF-8): sendmail-Mail-Übertragungsagent
15Summary(es.UTF-8): Sendmail - agente de transporte de mail
16Summary(fr.UTF-8): Agent de transport de courrier sendmail
17Summary(ko.UTF-8): SMTP_AUTH와 TLS를 지원하는 Mail 전송 프로그램(MTA)
18Summary(pl.UTF-8): Sendmail - serwer poczty elektronicznej
19Summary(pt_BR.UTF-8): Sendmail - agente de transporte de mail
20Summary(ru.UTF-8): Почтовый транспортный агент sendmail
21Summary(tr.UTF-8): Elektronik posta hizmetleri sunucusu
22Summary(uk.UTF-8): Поштовий транспортний агент sendmail
991115b7 23Name: sendmail
229843d7
JB
24Version: 8.16.1
25Release: 1
51736bde 26License: BSD
6daff80a 27Group: Networking/Daemons/SMTP
70870392 28Source0: ftp://ftp.sendmail.org/pub/sendmail/%{name}.%{version}.tar.gz
229843d7 29# Source0-md5: 055f1d76c8027993a01ab6425aea4ae7
fba6af7e 30Source1: %{name}.init
a9ffb5f1 31Source2: %{name}.sysconfig
33585a8c 32Source3: %{name}.aliases
a9ffb5f1
JB
33# From http://doc.phpauction.org/sendmail/examples/
34Source4: %{name}-examples.tar.bz2
58f0209c 35# Source4-md5: d00d817cd456a947a7fc6c04072a7d68
fba6af7e
JB
36Source5: %{name}-etc-mail-Makefile
37Source6: %{name}.mc
38Source7: %{name}-config.m4
5e4bbbe3 39Source8: %{name}.sasl
f09d9a92
ŁJM
40Source9: %{name}.access
41Source10: %{name}.mailertable
42Source11: %{name}.virtusertable
43Source12: %{name}.domaintable
33585a8c 44Source13: %{name}-smtp.pamd
7ca6cd05 45Patch0: %{name}-makemapman.patch
46Patch1: %{name}-smrsh-paths.patch
47Patch2: %{name}-rmail.patch
48Patch3: %{name}-os-paths.patch
49Patch4: %{name}-m4path.patch
969b7703 50Patch5: %{name}-redirect.patch
51Patch6: %{name}-hprescan-dos.patch
229843d7
JB
52Patch7: %{name}-cyrus.patch
53# https://blue-labs.org/software/sm-pgsql/sendmail.php
54# https://blue-labs.org/software/sm-pgsql/bluelabs-smpgsql-8.14.3.patch.bz2
55Patch8: bluelabs-smpgsql-8.14.3.patch
8085d6ae 56URL: http://www.sendmail.org/
229843d7
JB
57BuildRequires: cyrus-sasl-devel >= 2.1.21
58BuildRequires: db-devel >= 4.2
59BuildRequires: libnsl-devel
f14e3699
JB
60# man or man-db
61BuildRequires: man-db
5ac997f0 62%{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
229843d7
JB
63%{?with_tls:BuildRequires: openssl-devel >= 0.9.8}
64%{?with_pgsql:BuildRequires: postgresql-devel >= 8.1}
9f232097 65BuildRequires: rpmbuild(macros) >= 1.310
6a8e33fc 66BuildRequires: sed >= 4.0
5c74aed0 67%ifarch sparc
68BuildRequires: sparc32
69%endif
72d0cb54
TP
70Requires(post): awk
71Requires(post): textutils
d8b83358 72Requires(post,preun): /sbin/chkconfig
1a0572f7 73Requires(post,preun): rc-scripts >= 0.4.0.20
a3d8aa7d
TP
74Requires(postun): /usr/sbin/groupdel
75Requires(postun): /usr/sbin/userdel
1a0572f7
ER
76Requires(pre): /bin/id
77Requires(pre): /usr/bin/getgid
78Requires(pre): /usr/sbin/groupadd
79Requires(pre): /usr/sbin/useradd
36363284 80Requires: db >= 4.1.25
caf50190 81Requires: m4
03b96e7e 82Requires: pam >= 0.79.0
1a0572f7 83Requires: procmail
48fb4f19 84Provides: group(smmsp)
25e2a595 85Provides: smtpdaemon
48fb4f19 86Provides: user(smmsp)
b2c4584b 87Obsoletes: sendmail-cf
88Obsoletes: sendmail-doc
1e16136c 89Obsoletes: smtpdaemon
48fb4f19 90BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
991115b7 91
5e4bbbe3 92%define _sysconfdir /etc/mail
56f7302f 93%define specflags -fPIC
5e4bbbe3 94
51736bde 95%description
96The Sendmail program is a very widely used Mail Transport Agent (MTA).
97MTAs send mail from one machine to another. Sendmail is not a client
98program, which you use to read your e-mail. Sendmail is a
99behind-the-scenes program which actually moves your e-mail over
100networks or the Internet to where you want it to go.
101
96bbf540
JR
102%description -l de.UTF-8
103Sendmail überträgt Mails zwischen Rechnern. Es implementiert eine
104allgemeine Mail-Routing-Funktion über das Netzwerk mit Aliasing und
c9b67936 105Weiterleiten von Nachrichten, automatischem Routing an
96bbf540
JR
106Netzwerk-Gateways und flexible Konfiguration. Wenn Sie E-Mails über
107das Internet senden und empfangen möchten, brauchen Sie sendmail.
108
109%description -l es.UTF-8
110sendmail es un agente de transporte de correo electrónico, que mueve
111mensajes entre máquinas. Implementa facilidades de internetwork y
112rutado, caracterizando cambio de nombres (aliases) y envío a nuevas
113direcciones ( forwarding ), rutado automático para gateways de la red
114y configuración flexible. Necesitarás del sendmail si deseas enviar y
115recibir mensajes a través de la Internet.
116
117%description -l fr.UTF-8
c9b67936 118Sendmail est un agent de transport de courrier, qui est le programme
96bbf540
JR
119transférent le courrier d'une machine à l'autre. Sendmail implémente
120une facilité générale de routage de courrier entre les réseaux, permet
6a8e33fc 121l'"aliasing" et le "forwarding", un routage automatique sur les
96bbf540
JR
122passerelles du réseau, et une configuration flexible.
123
124%description -l ko.UTF-8
125Sendamil은 매우 널리 사용되는 Mail 전송 프로그램이다(MTA). Mail 전송
126프로그램들(MTA)은 어떠한 machine에서 다른 machine으로 메일을 보내며
127Sendmail은 e-mail을 읽기위해 사용하는 client program은 아니다.
128Sendamil은 원하는 곳으로 Internet이나 Network를 통해 e-mail을 보내는
129역할을 하는 backgrond에서 작업을 하는 프로그램이다.
130
131%description -l pl.UTF-8
132Sendmail jest programem umożliwiającym wymianę poczty elektronicznej
133między komputerami w sieci (MTA). Zajmuje się przekazywaniem poczty
134elektronicznej między bramkami pocztowymi i dostarczaniem przesyłek na
135konta docelowe. Bardzo dobrze obsługuje aliasy pocztowe a jego
136dodatkowym atutem jest prosta konfiguracja. Dzięki rozbudowanym
137możliwościom konfiguracyjnym jest w stanie dostarczać przesyłki za
138pośrednictwem protokołów: SMTP, ESMTP, UUCP, X.400 i innych.
139
140%description -l pt_BR.UTF-8
141O sendmail é um agente de transporte de correio eletrônico, que move
142mensagens entre máquinas. Ele implementa facilidades de internetwork e
f48800c7 143roteamento, caracterizando troca de nomes (aliases) e remessa a novos
96bbf540
JR
144endereços ( forwarding ), roteamento automático para gateways da rede
145e configuração flexível.
146
147%description -l ru.UTF-8
148Sendmail - это Mail Transport Agent, программа пересылающая почту с
149машины на машину. Sendmail предоставляет стандартные средства
150межсетевой маршрутизации почты, aliasing, forwarding, автоматическую
151маршрутизацию для сетевых шлюзов и гибкий механизм конфигурации.
152
153%description -l tr.UTF-8
154Sendmail, bir mektubu bir makineden diğerine taşır. Pek çok davranışı
155ayarlanabilir. Internet üzerinden mektup almak veya göndermek
156istiyorsanız bu pakete gereksiniminiz olacaktır.
157
158%description -l uk.UTF-8
159Sendmail - це Mail Transport Agent, програма що пересилає пошту з
160машини на машину. Sendmail надає стандартні засоби міжмережевої
161маршрутизації пошти, aliasing, forwarding, автоматичну маршрутизацію
162для мережевих шлюзів та гнучкий механізм маршрутизації.
969b7703 163
541fcdae 164%package -n libmilter-devel
19aabebb 165Summary: Header files and static libmilter library
2eecc50c 166Summary(pl.UTF-8): Pliki nagłówkowe i statyczna biblioteka libmilter
06fc71d5 167Group: Development/Libraries
c2bc0e13 168Provides: sendmail-devel
169Obsoletes: sendmail-devel
06fc71d5 170
541fcdae 171%description -n libmilter-devel
19aabebb
JB
172Header files and static libmilter library.
173
96bbf540
JR
174%description -n libmilter-devel -l pl.UTF-8
175Pliki nagłówkowe i statyczna biblioteka libmilter.
06fc71d5 176
991115b7 177%prep
178%setup -q
f3b90650 179%patch0 -p1
ca3ee627 180%patch1 -p1
cf62cbce
JB
181%patch2 -p1
182%patch3 -p1
183%patch4 -p1
184%patch5 -p1
185%patch6 -p1
f14e3699
JB
186%patch7 -p1
187%{?with_pgsql:%patch8 -p1}
991115b7 188
c3fb8dbb 189sed -e 's|@@PATH@@|\.\.|' < %{SOURCE6} > cf/cf/pld.mc
991115b7 190
a67bd7a2 191cp -p %{SOURCE7} config.m4
0fa3694b 192
51736bde 193%build
0f645c73 194echo "define(\`confLIBSEARCHPATH', \`/%{_lib} %{_prefix}/%{_lib}')" >> config.m4
969b7703 195echo "define(\`confCC', \`%{__cc}')" >> config.m4
325f3945 196%ifarch sparc sparc64
74f91cbf 197echo "define(\`confOPTIMIZE', \`%{rpmcflags} -DUSE_VENDOR_CF_PATH=1 -DSM_CONF_SEM=0 -DNETINET6')" >> config.m4
198%else
969b7703 199echo "define(\`confOPTIMIZE', \`%{rpmcflags} -DUSE_VENDOR_CF_PATH=1 -DNETINET6')" >> config.m4
74f91cbf 200%endif
0f645c73 201echo "define(\`confLDOPTS', \`%{rpmldflags}')" >> config.m4
cd0a03f5 202%if %{with ldap}
aef0455c
JB
203echo "APPENDDEF(\`confMAPDEF', \`-DLDAPMAP')" >> config.m4
204echo "APPENDDEF(\`confLIBS', \`-lldap -llber')" >> config.m4
205%endif
cd0a03f5 206%if %{with pgsql}
00791ae1 207echo "APPENDDEF(\`confMAPDEF', \`-DPGSQLMAP')" >> config.m4
0f645c73 208echo "APPENDDEF(\`confLIBS', \`-lpq -lresolv -lcrypto')" >> config.m4
00791ae1 209%endif
cd0a03f5 210%if %{with tls}
aef0455c 211echo "APPENDDEF(\`confENVDEF', \`-DSTARTTLS')" >> config.m4
58d7fd3c 212echo "APPENDDEF(\`confENVDEF', \`-D_FFR_TLS_1')" >> config.m4
aef0455c 213echo "APPENDDEF(\`confLIBS', \`-lssl -lcrypto')" >> config.m4
27e830f8
JB
214%endif
215
5c74aed0 216%ifarch sparc
217%define Build sparc32 sh Build
218%else
219%define Build sh Build
220%endif
221
222cd sendmail && %{Build} -f ../config.m4
223cd ../mailstats && %{Build} -f ../config.m4
224cd ../rmail && %{Build} -f ../config.m4
225cd ../makemap && %{Build} -f ../config.m4
226cd ../praliases && %{Build} -f ../config.m4
227cd ../smrsh && %{Build} -f ../config.m4
228cd ../libmilter && %{Build} -f ../config.m4
21bd6be8 229cd ../cf/cf
c3fb8dbb 230m4 pld.mc > pld.cf
991115b7 231
51736bde 232%install
233rm -rf $RPM_BUILD_ROOT
2ad9de37 234install -d $RPM_BUILD_ROOT%{_mandir}/man{1,5,8} \
e93be470 235 $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,monit,sysconfig,sasl,smrsh,security} \
868c95f8 236 $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},/usr/lib} \
a6d88ee0 237 $RPM_BUILD_ROOT{%{_datadir}/sendmail-cf,%{_libdir}} \
2ad9de37
PG
238 $RPM_BUILD_ROOT/var/{log,spool/mqueue} \
239 $RPM_BUILD_ROOT{%{_sysconfdir},%{_includedir}}
51736bde 240
325f3945 241OBJDIR=obj.$(uname -s).$(uname -r).$(\
242%ifarch sparc
243sparc32 \
244%endif
245uname -m)
51736bde 246
215fd019
JB
247IDNU=`id -nu`
248IDNG=`id -ng`
249SMINSTOPT="DESTDIR=$RPM_BUILD_ROOT SBINOWN=$IDNU SBINGRP=$IDNG \
f3b90650 250 UBINOWN=$IDNU UBINGRP=$IDNG MANOWN=$IDNU MANGRP=$IDNG \
21bd6be8 251 CFOWN=$IDNU CFGRP=$IDNG MSPQOWN=$IDNU GBINGRP=$IDNG GBINOWN=$IDNU \
06fc71d5 252 BINOWN=$IDNU BINGRP=$IDNG LIBOWN=$IDNU LIBGRP=$IDNG INCOWN=$IDNU INCGRP=$IDNG"
253
cd6ea0c9
PG
254%{__make} -C $OBJDIR/sendmail install \
255 $SMINSTOPT
256%{__make} -C $OBJDIR/mailstats install \
257 $SMINSTOPT
258%{__make} -C $OBJDIR/praliases install \
259 $SMINSTOPT
260%{__make} -C $OBJDIR/rmail force-install \
261 $SMINSTOPT
262%{__make} -C $OBJDIR/makemap install \
263 $SMINSTOPT
264%{__make} -C $OBJDIR/smrsh install \
265 $SMINSTOPT
06fc71d5 266%{__make} -C $OBJDIR/libmilter install \
485ff0c7
JB
267 $SMINSTOPT \
268 LIBDIR=%{_libdir}
51736bde 269
cd6ea0c9 270ln -sf %{_sbindir}/makemap $RPM_BUILD_ROOT%{_bindir}/makemap
1afe6f39 271
51736bde 272# install the cf files
273cd cf
0f645c73
JB
274%{__rm} cf/{Build,Makefile}
275find . -name '*~' -o -name '*.orig' | xargs -r %{__rm}
32b7d288 276cp -a * $RPM_BUILD_ROOT%{_datadir}/sendmail-cf
51736bde 277cd -
278
93476486 279# sendmail.{cf,mc}
a67bd7a2 280cp -p cf/cf/pld.cf $RPM_BUILD_ROOT%{_sysconfdir}/sendmail.cf
a6d88ee0 281sed -e 's|@@PATH@@|%{_datadir}/sendmail-cf|' < %{SOURCE6} \
5e4bbbe3 282 > $RPM_BUILD_ROOT%{_sysconfdir}/sendmail.mc
93476486
JB
283
284# submit.mc (submit.cf is installed automatically)
a67bd7a2 285cp -p cf/cf/submit.mc $RPM_BUILD_ROOT%{_sysconfdir}
93476486 286
215fd019 287echo "# local-host-names - include all aliases for your machine here." \
5e4bbbe3 288 > $RPM_BUILD_ROOT%{_sysconfdir}/local-host-names
51736bde 289
868c95f8 290ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT/usr/lib/sendmail
51736bde 291
292# dangling symlinks
9f232097
ER
293for f in hoststat mailq newaliases purgestat; do
294 ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT%{_bindir}/${f}
215fd019 295done
51736bde 296
1782298e 297for map in virtusertable access domaintable mailertable; do
5e4bbbe3 298 touch $RPM_BUILD_ROOT%{_sysconfdir}/${map}
b9ffc414 299 $RPM_BUILD_ROOT%{_sbindir}/makemap -C $RPM_BUILD_ROOT%{_sysconfdir}/sendmail.cf hash \
5e4bbbe3 300 $RPM_BUILD_ROOT%{_sysconfdir}/${map}.db < $RPM_BUILD_ROOT%{_sysconfdir}/${map}
215fd019 301done
51736bde 302
5e4bbbe3 303install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/aliases
b9ffc414 304$RPM_BUILD_ROOT%{_sbindir}/makemap -C $RPM_BUILD_ROOT%{_sysconfdir}/sendmail.cf hash \
5e4bbbe3 305 $RPM_BUILD_ROOT%{_sysconfdir}/aliases.db < %{SOURCE3}
51736bde 306
a67bd7a2
ER
307cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/sendmail
308install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/sendmail
309cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/Makefile
310cp -p %{SOURCE8} $RPM_BUILD_ROOT/etc/sasl/Sendmail.conf
311cp -p %{SOURCE13} $RPM_BUILD_ROOT/etc/pam.d/smtp
312cp -p %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/access
313cp -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/mailertable
314cp -p %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/virtusertable
315cp -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/domaintable
991115b7 316
34729a6b
JR
317touch $RPM_BUILD_ROOT/etc/security/blacklist.smtp
318
1ae69775
JB
319%{__mv} smrsh/README README.smrsh
320%{__mv} cf/README README.cf
321%{__mv} doc/op/op.me .
2a5b1ce8 322
a9ffb5f1 323bzip2 -dc %{SOURCE4} | tar xf -
b2c4584b 324
f14e3699
JB
325%{__rm} $RPM_BUILD_ROOT%{_datadir}/sendmail-cf{,/cf}/README
326# foreign systems
327%{__rm} $RPM_BUILD_ROOT%{_datadir}/sendmail-cf/cf/cs-{hpux*,osf1,solaris*,sunos*,ultrix*}.mc
328%{__rm} $RPM_BUILD_ROOT%{_datadir}/sendmail-cf/cf/generic-{bsd*,hpux*,mpeix,nextstep*,osf1,solaris,sunos*,ultrix*}.{cf,mc}
329%{__rm} $RPM_BUILD_ROOT%{_datadir}/sendmail-cf/cf/s2k-{osf1,ultrix*}.mc
330%{__rm} $RPM_BUILD_ROOT%{_datadir}/sendmail-cf/ostype/{a-ux,aix*,altos,amdahl-uts,bsd*,darwin,dgux,domainos,dragonfly,dynix*,freebsd*,gnu,hpux*,irix*,isc*,maxion,mklinux,mpeix,nextstep,openbsd,osf1,powerux,ptx2,qnx,riscos*,sco*,sinix,solaris*,sunos*,svr4,ultrix*,unicos*,unixware*,unknown,uxpds}.m4
331# foreign machines
332%{__rm} $RPM_BUILD_ROOT%{_datadir}/sendmail-cf/cf/{chez.cs,huginn.cs,knecht,mail.cs,mail.eecs,mailspool.cs,python.cs,ucbarpa,ucbvax,vangogh.cs}.mc
333%{__rm} $RPM_BUILD_ROOT%{_datadir}/sendmail-cf/domain/{Berkeley.EDU,CS.Berkeley.EDU,EECS.Berkeley.EDU,S2K.Berkeley.EDU,berkeley-only}.m4
334%{__rm} $RPM_BUILD_ROOT%{_datadir}/sendmail-cf/hack/cssubdomain.m4
335# precompiled files
336%{__rm} $RPM_BUILD_ROOT%{_datadir}/sendmail-cf/cf/*.cf
337# MIB (package as mibs-*?)
338%{__rm} $RPM_BUILD_ROOT%{_datadir}/sendmail-cf/sendmail.schema
339
a7c38e21
ER
340# for perl-Sendmail-Milter
341install $OBJDIR/libsm/libsm.a $OBJDIR/libsmutil/libsmutil.a \
342 $RPM_BUILD_ROOT%{_libdir}
343
51736bde 344%clean
59d8b10c 345rm -rf $RPM_BUILD_ROOT
991115b7 346
93476486 347%pre
b1eedafd
ER
348%groupadd -g 25 smmsp
349%useradd -u 25 -d /var/spool/clientqueue -s /bin/false -c "Sendmail Message Submission Program" -g smmsp smmsp
93476486 350
991115b7 351%post
3a9160c0 352umask 022
51736bde 353#
354# Convert old format to new
355#
356if [ -f /etc/mail/deny ] ; then
c9b67936 357 cat /etc/mail/deny | \
358 awk 'BEGIN{ print "# Entries from obsoleted /etc/mail/deny"} \
359 {print $1" REJECT"}' >> /etc/mail/access
f8807059 360 mv -f /etc/mail/deny /etc/mail/deny.rpmorig
d8cea423 361fi
51736bde 362for oldfile in relay_allow ip_allow name_allow ; do
c9b67936 363 if [ -f /etc/mail/$oldfile ] ; then
364 cat /etc/mail/$oldfile | \
365 awk "BEGIN { print \"# Entries from obsoleted /etc/mail/$oldfile\" ;} \
366 { print $1\" RELAY\" }" >> /etc/mail/access
f8807059 367 mv -f /etc/mail/$oldfile /etc/mail/$oldfile.rpmorig
c9b67936 368 fi
51736bde 369done
991115b7 370
51736bde 371#
372# Oops, these files moved
373#
374if [ -f /etc/sendmail.cw ] ; then
1cfcd94c 375 cat /etc/sendmail.cw | \
c9b67936 376 awk 'BEGIN { print "# Entries from obsoleted /etc/sendmail.cw" ;} \
377 { print $1 }' >> /etc/mail/local-host-names
f8807059 378 mv -f /etc/sendmail.cw /etc/sendmail.cw.rpmorig
991115b7 379fi
51736bde 380#
381# Rebuild maps (next reboot will rebuild also)
382#
383{ /usr/bin/newaliases
c9b67936 384 for map in virtusertable access domaintable mailertable; do
385 if [ -f /etc/mail/${map} ] ; then
386 /usr/bin/makemap hash /etc/mail/${map} < /etc/mail/${map}
387 sleep 1
388 fi
389 done
51736bde 390} > /dev/null 2>&1
991115b7 391
4426b811 392/sbin/chkconfig --add sendmail
d8b83358 393%service sendmail restart "sendmail daemon"
51736bde 394
395%preun
4426b811 396if [ "$1" = "0" ]; then
d8b83358 397 %service sendmail stop
4426b811 398 /sbin/chkconfig --del sendmail
399fi
991115b7 400
93476486
JB
401%postun
402if [ "$1" = "0" ]; then
48fb4f19 403 %userremove smmsp
404 %groupremove smmsp
93476486
JB
405fi
406
51736bde 407# removal of compatibility links
408%triggerpostun -- sendmail < 8.10.1
409/sbin/chkconfig --add sendmail
991115b7 410
411%files
412%defattr(644,root,root,755)
feeec710 413%doc FAQ KNOWNBUGS README* op.me RELEASE_NOTES examples/
51736bde 414%attr(755,root,root) %{_sbindir}/mailstats
415%attr(755,root,root) %{_sbindir}/praliases
416%attr(755,root,root) %{_bindir}/hoststat
417%attr(755,root,root) %{_bindir}/purgestat
418%attr(755,root,root) %{_bindir}/rmail
419%attr(755,root,root) %{_bindir}/makemap
420%attr(755,root,root) %{_sbindir}/makemap
93476486 421%attr(2755,root,smmsp) %{_sbindir}/sendmail
51736bde 422%attr(755,root,root) %{_bindir}/newaliases
423%attr(755,root,root) %{_bindir}/mailq
424%attr(755,root,root) %{_sbindir}/smrsh
868c95f8 425/usr/lib/sendmail
51736bde 426
b89cc167
JB
427%{_mandir}/man1/mailq.1*
428%{_mandir}/man1/newaliases.1*
429%{_mandir}/man5/aliases.5*
51736bde 430%{_mandir}/man8/mailstats.8*
431%{_mandir}/man8/makemap.8*
b89cc167
JB
432%{_mandir}/man8/praliases.8*
433%{_mandir}/man8/rmail.8*
51736bde 434%{_mandir}/man8/sendmail.8*
b89cc167 435%{_mandir}/man8/smrsh.8*
51736bde 436
1cfcd94c
TP
437%dir /etc/smrsh
438%dir %{_sysconfdir}
51736bde 439/var/log/statistics
1a0572f7
ER
440%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sendmail.cf
441%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sendmail.mc
442%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/submit.cf
443%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/submit.mc
444%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/local-host-names
445%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/aliases
a9ffb5f1
JB
446%attr(644,root,mail) %ghost %{_sysconfdir}/aliases.db
447%attr(770,root,smmsp) %dir /var/spool/clientmqueue
448%attr(750,root,mail) %dir /var/spool/mqueue
5e4bbbe3 449
450%config %{_sysconfdir}/Makefile
1a0572f7 451%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/access
5e4bbbe3 452%ghost %{_sysconfdir}/access.db
1a0572f7 453%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/domaintable
5e4bbbe3 454%ghost %{_sysconfdir}/domaintable.db
1a0572f7 455%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mailertable
5e4bbbe3 456%ghost %{_sysconfdir}/mailertable.db
1a0572f7 457%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/virtusertable
1cfcd94c 458%ghost %{_sysconfdir}/virtusertable.db
5e4bbbe3 459%config(noreplace) %{_sysconfdir}/helpfile
51736bde 460
3c3d8557 461%attr(754,root,root) /etc/rc.d/init.d/sendmail
1a0572f7
ER
462%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/sendmail
463%config(noreplace) %verify(not md5 mtime size) /etc/sasl/Sendmail.conf
464%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/smtp
34729a6b 465%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.smtp
991115b7 466
a6d88ee0 467%dir %{_datadir}/sendmail-cf
468%dir %{_datadir}/sendmail-cf/cf
f14e3699
JB
469%{_datadir}/sendmail-cf/cf/clientproto.mc
470%{_datadir}/sendmail-cf/cf/cyrusproto.mc
471%{_datadir}/sendmail-cf/cf/generic-linux.mc
a6d88ee0 472%{_datadir}/sendmail-cf/cf/pld.mc
f14e3699
JB
473%{_datadir}/sendmail-cf/cf/submit.mc
474%{_datadir}/sendmail-cf/cf/tcpproto.mc
475%{_datadir}/sendmail-cf/cf/uucpproto.mc
476%dir %{_datadir}/sendmail-cf/domain
477%{_datadir}/sendmail-cf/domain/generic.m4
a6d88ee0 478%{_datadir}/sendmail-cf/feature
1ae69775 479%{_datadir}/sendmail-cf/hack
a6d88ee0 480%{_datadir}/sendmail-cf/m4
481%{_datadir}/sendmail-cf/mailer
482%dir %{_datadir}/sendmail-cf/ostype
483%{_datadir}/sendmail-cf/ostype/linux.m4
484%dir %{_datadir}/sendmail-cf/sh
485%{_datadir}/sendmail-cf/sh/makeinfo.sh
486%{_datadir}/sendmail-cf/siteconfig
06fc71d5 487
541fcdae 488%files -n libmilter-devel
19aabebb 489%defattr(644,root,root,755)
06fc71d5 490%{_libdir}/libmilter.a
a7c38e21
ER
491%{_libdir}/libsm.a
492%{_libdir}/libsmutil.a
19aabebb 493%{_includedir}/libmilter
This page took 0.205791 seconds and 4 git commands to generate.