]> TLD Linux GIT Repositories - packages/postfix.git/blob - postfix.spec
- migrate configuration to /etc/postfix
[packages/postfix.git] / postfix.spec
1 #
2 # Conditional build:
3 %bcond_without  ldap    # without LDAP map module
4 %bcond_without  mysql   # without MySQL map module
5 %bcond_without  pgsql   # without PostgreSQL map module
6 %bcond_without  sqlite  # without SQLite map module
7 %bcond_without  sasl    # without SMTP AUTH support
8 %bcond_without  ssl     # without SSL/TLS support
9 %bcond_without  cdb     # without cdb map support
10 %bcond_without  epoll   # disable epoll for 2.4 kernels
11
12 Summary:        Postfix Mail Transport Agent
13 Summary(cs.UTF-8):      Postfix - program pro přepravu pošty (MTA)
14 Summary(es.UTF-8):      Postfix - Un MTA (Mail Transport Agent) de alto desempeño
15 Summary(fr.UTF-8):      Agent de transport de courrier Postfix
16 Summary(pl.UTF-8):      Serwer SMTP Postfix
17 Summary(pt_BR.UTF-8):   Postfix - Um MTA (Mail Transport Agent) de alto desempenho
18 Summary(sk.UTF-8):      Agent prenosu pošty Postfix
19 Name:           postfix
20 Version:        3.3.2
21 Release:        2
22 Epoch:          2
23 License:        distributable
24 Group:          Networking/Daemons/SMTP
25 Source0:        ftp://ftp.porcupine.org/mirrors/postfix-release/official/%{name}-%{version}.tar.gz
26 # Source0-md5:  4e6ed7056576e0c54cfce6040a0bb0ad
27 Source1:        %{name}.aliases
28 Source2:        %{name}.cron
29 Source3:        %{name}.init
30 Source4:        %{name}.sysconfig
31 Source5:        %{name}.sasl
32 Source6:        %{name}.pamd
33 Source7:        %{name}-bounce.cf.pl
34 # http://postfix.state-of-mind.de/bounce-templates/bounce.de-DE.cf
35 Source8:        %{name}-bounce.cf.de
36 Source9:        %{name}.monitrc
37 # -ource11-md5: d46103195b43ec5784ea2c166b238f71
38 Patch0:         %{name}-config.patch
39 Patch1:         %{name}-conf_msg.patch
40 Patch2:         %{name}-master.cf_cyrus.patch
41 Patch3:         %{name}-conf.patch
42 Patch4:         %{name}-link.patch
43 Patch5:         %{name}-scache_clnt.patch
44 URL:            http://www.postfix.org/
45 %{?with_sasl:BuildRequires:     cyrus-sasl-devel}
46 BuildRequires:  db-devel
47 # getifaddrs() with IPv6 support
48 BuildRequires:  glibc-devel >= 6:2.3.4
49 %{?with_mysql:BuildRequires:    mysql-devel}
50 %{?with_ldap:BuildRequires:     openldap-devel >= 2.0.12}
51 %{?with_ssl:BuildRequires:      openssl-devel >= 0.9.7l}
52 BuildRequires:  pcre-devel
53 BuildRequires:  perl-base
54 %{?with_pgsql:BuildRequires:    postgresql-devel}
55 BuildRequires:  rpm >= 4.4.9-56
56 BuildRequires:  rpmbuild(macros) >= 1.644
57 BuildRequires:  sed >= 4.0
58 %{?with_sqlite:BuildRequires:   sqlite3-devel}
59 %{?with_cdb:BuildRequires:      tinycdb-devel}
60 %{?with_mysql:BuildRequires:    zlib-devel}
61 Requires(post): /bin/hostname
62 Requires(post,postun):  /sbin/ldconfig
63 Requires(post,preun):   /sbin/chkconfig
64 Requires(postun):       /usr/sbin/groupdel
65 Requires(postun):       /usr/sbin/userdel
66 Requires(pre):  /bin/id
67 Requires(pre):  /usr/bin/getgid
68 Requires(pre):  /usr/sbin/groupadd
69 Requires(pre):  /usr/sbin/useradd
70 Requires:       /sbin/chkconfig
71 Requires:       diffutils
72 Requires:       findutils
73 Requires:       rc-scripts
74 Requires:       sed
75 %{?with_cdb:Requires:tinycdb}
76 Suggests:       cyrus-sasl-saslauthd
77 Provides:       group(postfix)
78 Provides:       smtpdaemon
79 Provides:       user(postfix)
80 Obsoletes:      smtpdaemon
81 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
82
83 %description
84 Postfix is attempt to provide an alternative to the widely-used
85 Sendmail program. Postfix attempts to be fast, easy to administer, and
86 hopefully secure, while at the same time being sendmail compatible
87 enough to not upset your users. This version has IPv6 support.
88
89 %description -l es.UTF-8
90 Postfix es una alternativa para el mundialmente utilizado sendmail. Si
91 desea tener un servidor SMTP *rápido*, debe instalar este paquete.
92
93 %description -l fr.UTF-8
94 Postfix (voir http://www.postfix.org/) se veut une alternative à
95 sendmail, responsable de l'acheminement de 70% des courriers
96 électroniques sur Internet. IBM en a suppotré le développement, mais
97 ne contrôle pas son évolution. Le but est d'installer Postfix sur le
98 plus grand nombre de systèmes possible. Dans cette optique, il a été
99 écrit pour être totalement sous le contrôle de l'utilisateur.
100
101 %description -l it.UTF-8
102 Postfix (http://www.postfix.org/) e' un'alternativa al programma
103 sendmail utilizzato per la gestione del 70 per cento della posta
104 Internet.
105
106 Seppur IBM supporti lo sviluppo di Postfix, non controlla la sua
107 evoluzione.
108
109 Consultate la pagine web http://www.moongroup.com/how-to.phtml nella
110 quale troverete le indicazioni per una corretta installazione e
111 configurazione di questo programma.
112
113 %description -l pl.UTF-8
114 Postfix jest próbą dostarczenia alternatywnego MTA w stosunku do
115 szeroko używanego sendmaila. Postfix w zamierzeniu ma być szybki,
116 łatwy w administrowaniu, bezpieczny oraz ma być na tyle kompatybilny z
117 sendmailem by nie denerwować użytkowników. Ta wersja obsługuje IPv6.
118
119 %description -l pt_BR.UTF-8
120 O Postfix é uma alternativa para o mundialmente utilizado sendmail. Se
121 você deseja um servidor SMTP *rápido*, instale este pacote.
122
123 %description -l sk.UTF-8
124 Postfix (pozri http://www.postfix.org/) má za cieľ byť alternatívou k
125 široko rozšírenému programu sendmail, zodpovednému za 70% všetkej
126 elektronickej pošty doručenej na Internete.
127
128 Aj keď IBM podporovala vývoj Postfixu, zdržiava sa vplyvu na jeho
129 vývoj. Cieľom je inštalácia Postfixu na čo najväčšom počte systémov.
130 Do tohoto momentu je softvér poskytovaný bez ovplyvňovania, takže sa
131 môže vyvíjať podľa jeho používateľov.
132
133 Určite si prečítajte http://www.moongroup.com/how-to.phtml, kde sú
134 popísané kroky potrebné pred a po inštalácii Postfixu.
135
136 %package devel
137 Summary:        Postfix loadable modules development package
138 Summary(pl.UTF-8):      Pakiet dla programistów ładowanych modułów do postfiksa
139 Group:          Development/Libraries
140 Requires:       %{name} = %{epoch}:%{version}-%{release}
141
142 %description devel
143 Header files to build additional map types for Postfix.
144
145 %description devel -l pl.UTF-8
146 Pliki nagłówkowe do tworzenia dodatkowych typów map dla Postfiksa.
147
148 %package dict-ldap
149 Summary:        LDAP map support for Postfix
150 Summary(pl.UTF-8):      Obsługa map LDAP dla Postfiksa
151 Group:          Networking/Daemons/SMTP
152 Requires:       %{name} = %{epoch}:%{version}-%{release}
153 Requires:       openldap >= 2.3.6
154
155 %description dict-ldap
156 This package provides support for LDAP maps in Postfix.
157
158 %description dict-ldap -l pl.UTF-8
159 Ten pakiet dodaje obsługę map LDAP do Postfiksa.
160
161 %package dict-mysql
162 Summary:        MySQL map support for Postfix
163 Summary(pl.UTF-8):      Obsługa map MySQL dla Postfiksa
164 Group:          Networking/Daemons/SMTP
165 Requires:       %{name} = %{epoch}:%{version}-%{release}
166
167 %description dict-mysql
168 This package provides support for MySQL maps in Postfix.
169
170 %description dict-mysql -l pl.UTF-8
171 Ten pakiet dodaje obsługę map MySQL do Postfiksa.
172
173 %package dict-pcre
174 Summary:        PCRE map support for Postfix
175 Summary(pl.UTF-8):      Obsługa map PCRE dla Postfiksa
176 Group:          Networking/Daemons/SMTP
177 Requires:       %{name} = %{epoch}:%{version}-%{release}
178
179 %description dict-pcre
180 This package provides support for PCRE maps in Postfix.
181
182 %description dict-pcre -l pl.UTF-8
183 Ten pakiet dodaje obsługę map PCRE do Postfiksa.
184
185 %package dict-pgsql
186 Summary:        PostgreSQL map support for Postfix
187 Summary(pl.UTF-8):      Obsługa map PostgreSQL dla Postfiksa
188 Group:          Networking/Daemons/SMTP
189 Requires:       %{name} = %{epoch}:%{version}-%{release}
190
191 %description dict-pgsql
192 This package provides support for PostgreSQL maps in Postfix.
193
194 %description dict-pgsql -l pl.UTF-8
195 Ten pakiet dodaje obsługę map PostgreSQL do Postfiksa.
196
197 %package dict-sqlite
198 Summary:        SQLite map support for Postfix
199 Summary(pl.UTF-8):      Obsługa map SQLite dla Postfiksa
200 Group:          Networking/Daemons/SMTP
201 Requires:       %{name} = %{epoch}:%{version}-%{release}
202
203 %description dict-sqlite
204 This package provides support for SQLite maps in Postfix.
205
206 %description dict-sqlite -l pl.UTF-8
207 Ten pakiet dodaje obsługę map SQLite do Postfiksa.
208
209 %package qshape
210 Summary:        qshape - Print Postfix queue domain and age distribution
211 Summary(pl.UTF-8):      qshape - wypisywanie rozkładu domen i wieku z kolejki Postfiksa
212 Group:          Networking/Daemons/SMTP
213 Requires:       %{name} = %{epoch}:%{version}-%{release}
214
215 %description qshape
216 The qshape program helps the administrator understand the Postfix
217 queue message distribution in time and by sender domain or recipient
218 domain. The program needs read access to the queue directories and
219 queue files, so it must run as the superuser or the mail_owner
220 specified in main.cf (typically postfix).
221
222 %description qshape -l pl.UTF-8
223 Program qshape pomaga administratorowi zrozumieć rozkład kolejki
224 wiadomości Postfiksa w czasie i w zależności od domeny nadawcy lub
225 adresata. Program wymaga prawa odczytu do katalogów kolejki i plików
226 kolejki, więc musi być uruchamiany przez superużytkownika lub
227 użytkownika mail_owner podanego w main.cf (zwykle nazywającego się
228 postfix).
229
230 %package -n monit-rc-%{name}
231 Summary:        monit support for Postfix
232 Summary(pl.UTF-8):      Wsparcie monita dla Postfiksa
233 Group:          Applications/System
234 Requires:       %{name} = %{epoch}:%{version}-%{release}
235 Requires:       monit
236
237 %description -n monit-rc-%{name}
238 monitrc file for monitoring Postfix.
239
240 %description -n monit-rc-%{name} -l pl.UTF-8
241 Plik monitrc do monitorowania serwera Postfix.
242
243 %prep
244 %setup -q
245 %patch0 -p1
246 %patch1 -p1
247 %patch2 -p1
248 sed -i '/scache_clnt_create/s/server/var_scache_service/' src/global/scache_clnt.c
249 %patch3 -p1
250 %patch4 -p1
251 %patch5 -p1
252
253 %build
254 %{__make} -f Makefile.init makefiles
255 %{__make} tidy
256 CC="%{__cc}"
257 export CC
258 %{__make} -j1 \
259         dynamicmaps=yes \
260         shared=yes \
261         shlib_directory=%{_libdir}/postfix \
262         DEBUG="" \
263         OPT="%{rpmcflags} %{rpmcppflags} -D_FILE_OFFSET_BITS=64" \
264         CCARGS="%{!?with_epoll:-DNO_EPOLL} %{?with_ldap:-DHAS_LDAP} -DHAS_PCRE %{?with_sasl:-DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl} %{?with_mysql:-DHAS_MYSQL -I/usr/include/mysql} %{?with_pgsql:-DHAS_PGSQL} %{?with_ssl:-DUSE_TLS} %{?with_cdb:-DHAS_CDB} %{?with_sqlite:-DHAS_SQLITE}" \
265         %{?with_cdb:AUXLIBS_CDB="-lcdb"} \
266         %{?with_ldap:AUXLIBS_LDAP="-lldap -llber"} \
267         %{?with_mysql:AUXLIBS_MYSQL="-lmysqlclient"} \
268         AUXLIBS_PCRE="-lpcre" \
269         %{?with_pgsql:AUXLIBS_PGSQL="-lpq"} \
270         %{?with_sqlite:AUXLIBS_SQLITE="-lsqlite3 -lpthread"} \
271         AUXLIBS="%{?with_sasl:-lsasl} %{?with_ssl:-lssl -lcrypto}"
272
273 %install
274 rm -rf $RPM_BUILD_ROOT
275 install -d $RPM_BUILD_ROOT/etc/{cron.daily,rc.d/init.d,sysconfig,pam.d,security,monit} \
276         $RPM_BUILD_ROOT%{_sysconfdir}/{postfix,sasl} \
277         $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}/postfix,/usr/lib}\
278         $RPM_BUILD_ROOT{%{_includedir}/postfix,%{_mandir}} \
279         $RPM_BUILD_ROOT%{_var}/spool/postfix/{active,corrupt,deferred,maildrop,private,saved,bounce,defer,incoming,pid,public} \
280         $RPM_BUILD_ROOT%{_var}/lib/postfix
281
282 %{__rm} -f html/Makefile.in conf/{LICENSE,main.cf.default}
283
284 install -p bin/* $RPM_BUILD_ROOT%{_sbindir}
285 install -p libexec/* $RPM_BUILD_ROOT%{_libdir}/postfix
286 ln $RPM_BUILD_ROOT%{_libdir}/postfix/smtp $RPM_BUILD_ROOT%{_libdir}/postfix/lmtp
287 ln $RPM_BUILD_ROOT%{_libdir}/postfix/qmgr $RPM_BUILD_ROOT%{_libdir}/postfix/nqmgr
288 cp -a conf/* $RPM_BUILD_ROOT%{_sysconfdir}/postfix
289 sed -e's,^daemon_directory = .*,daemon_directory = %{_libdir}/postfix,' \
290         conf/main.cf > $RPM_BUILD_ROOT%{_sysconfdir}/postfix/main.cf
291
292 sed -e 's,${LIB_PREFIX},%{_libdir}/postfix/postfix-,g;s,${LIB_SUFFIX},.so,g' \
293         conf/dynamicmaps.cf > $RPM_BUILD_ROOT%{_sysconfdir}/postfix/dynamicmaps.cf
294
295 for f in dns global master util tls; do
296         cp -a lib/libpostfix-${f}.so $RPM_BUILD_ROOT%{_libdir}/libpostfix-${f}.so.1
297         ln -sf lib${f}.so.1 $RPM_BUILD_ROOT%{_libdir}/libpostfix-${f}.so
298 done
299 for f in cdb mysql ldap pcre pgsql sqlite; do
300         install -p lib/postfix-${f}.so $RPM_BUILD_ROOT%{_libdir}/postfix
301 done
302 cp -a include/*.h $RPM_BUILD_ROOT%{_includedir}/postfix
303
304 cp -a man/man* $RPM_BUILD_ROOT%{_mandir}
305
306 cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/postfix/aliases
307 install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.daily/postfix
308 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/postfix
309 cp -a %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/postfix
310 cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/sasl/smtpd.conf
311 cp -a %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/smtp
312 cp -a %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/postfix/bounce.cf.pl
313 cp -a %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/postfix/bounce.cf.de
314 cp -a %{SOURCE9} $RPM_BUILD_ROOT/etc/monit/%{name}.monitrc
315 install -p auxiliary/rmail/rmail $RPM_BUILD_ROOT%{_bindir}/rmail
316 install -p auxiliary/qshape/qshape.pl $RPM_BUILD_ROOT%{_bindir}/qshape
317
318 ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT%{_bindir}/mailq
319 ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT%{_bindir}/newaliases
320 ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT/usr/lib/sendmail
321
322 touch $RPM_BUILD_ROOT%{_sysconfdir}/postfix/\
323         {aliases,access,canonical,relocated,transport,virtual}{,.db}
324
325 touch $RPM_BUILD_ROOT/etc/security/blacklist.smtp
326
327 > $RPM_BUILD_ROOT/var/spool/postfix/.nofinger
328
329 %{__rm} -rf $RPM_BUILD_ROOT%{_sysconfdir}/postfix/makedefs.out
330 %{__rm} -f $RPM_BUILD_ROOT%{_sysconfdir}/postfix/TLS_LICENSE
331
332 %{__rm} -f $RPM_BUILD_ROOT%{_sysconfdir}/postfix/{postfix-script,postfix-tls-script,postfix-wrapper,post-install,postmulti-script}
333
334 %clean
335 rm -rf $RPM_BUILD_ROOT
336
337 %pre
338 %groupadd -g 62 postfix
339 %groupadd -g 63 maildrop
340 %useradd -u 62 -d /var/spool/postfix -s /bin/false -c "Postfix User" -g postfix postfix
341
342 %post
343 /sbin/ldconfig
344 if ! grep -q "^postmaster:" %{_sysconfdir}/postfix/aliases; then
345         echo "Adding Entry for postmaster in %{_sysconfdir}/postfix/aliases" >&2
346         echo "postmaster: root" >>%{_sysconfdir}/postfix/aliases
347 fi
348 if [ "$1" = "1" ]; then
349         # only on installation, not upgrade; set sane defaults
350         # postfix expects gethostname() to return FQDN, which is obviously wrong
351         if ! grep -qE "^my(domain|hostname)" %{_sysconfdir}/postfix/main.cf; then
352                 domain=$(/bin/hostname -d 2>/dev/null)
353                 [ -n "$domain" -a "$domain" != 'localdomain' ] && \
354                         postconf -e mydomain="$domain"
355         fi
356 else
357         %{_sbindir}/postfix upgrade-configuration
358 fi
359
360 %{_bindir}/newaliases
361 /sbin/chkconfig --add postfix
362 %service postfix restart "Postfix Daemon"
363
364 %preun
365 if [ "$1" = "0" ]; then
366         %service postfix stop
367         /sbin/chkconfig --del postfix
368 fi
369
370 %postun
371 /sbin/ldconfig
372 if [ "$1" = "0" ]; then
373         %groupremove maildrop
374         %userremove postfix
375         %groupremove postfix
376 fi
377
378 %triggerun -- %{name} < 2:3.3.2-2
379 if [ $1 -le 1 ]; then
380         exit 0
381 fi
382 set -x
383 for f in /etc/mail/{access,aliases,body_checks,bounce.cf.*,canonical,dynamicmaps.cf,generic,header_checks,main.cf,master.cf,postfix-files,relocated,transport,virtual}; do
384   f=${f##*/}
385   [ -f "/etc/mail/$f" ] && mv "/etc/mail/$f" "/etc/postfix/$f" 2>/dev/null || :
386 done
387 find /etc/postfix -type f 2>/dev/null | xargs sed -i -e 's|/etc/mail|/etc/postfix|g' 2>/dev/null
388 for f in /etc/mail/*.db; do
389         f=${f##*/}
390         [ "$f" = "*.db" ] && break
391         [ -f "/etc/mail/$f" ] && rm "/etc/mail/$f" 2>/dev/null || :
392         f=${f%%.db}
393         [ -f "/etc/mail/$f" ] && mv "/etc/mail/$f" /etc/postfix 2>/dev/null || :
394         if [ "$f" = "aliases" ]; then
395                 /usr/sbin/postalias "/etc/postfix/aliases" 2>/dev/null || :
396         else
397                 /usr/sbin/postmap "/etc/postfix/$f" 2>/dev/null || :
398         fi
399 done
400 [ -n "$(find /etc/mail -type d -empty 2>/dev/null)" ] && rmdir /etc/mail 2>/dev/null || :
401 set +x
402
403 %triggerpostun -- %{name} < 2:3.3.2-2
404 echo
405 echo "Warning! Configuration has been migrated to /etc/postfix."
406 echo "It may be required to move some files manually from /etc/mail"
407 echo "to /etc/postfix and/or run postmap on some files in /etc/postfix."
408 echo
409
410 %files
411 %defattr(644,root,root,755)
412 %doc html COMPATIBILITY HISTORY LICENSE RELEASE_NOTES* TLS_*
413 %doc README_FILES/*README
414 %doc examples/smtpd-policy
415 %dir %{_sysconfdir}/postfix
416 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/access
417 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/aliases
418 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/bounce.cf.default
419 %lang(de) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/bounce.cf.de
420 %lang(pl) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/bounce.cf.pl
421 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/canonical
422 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/generic
423 #%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/regexp_table
424 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/relocated
425 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/transport
426 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/virtual
427 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/header_checks
428 #%ghost %{_sysconfdir}/postfix/*.db
429 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/dynamicmaps.cf
430 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/main.cf
431 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/master.cf
432 %{_sysconfdir}/postfix/postfix-files
433 %attr(740,root,root) /etc/cron.daily/postfix
434 %attr(754,root,root) /etc/rc.d/init.d/postfix
435 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/postfix
436 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/smtp
437 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.smtp
438 %{?with_sasl:%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sasl/smtpd.conf}
439 %attr(755,root,root) %{_libdir}/libpostfix-*.so.*
440 %attr(755,root,root) %{_bindir}/mailq
441 %attr(755,root,root) %{_bindir}/newaliases
442 %attr(755,root,root) %{_bindir}/rmail
443 %attr(755,root,root) %{_sbindir}/s*
444 %attr(755,root,root) %{_sbindir}/postfix
445 %attr(755,root,root) %{_sbindir}/postalias
446 %attr(2755,root,maildrop) %{_sbindir}/postdrop
447 %attr(755,root,root) %{_sbindir}/postkick
448 %attr(755,root,root) %{_sbindir}/postl*
449 %attr(755,root,root) %{_sbindir}/postc*
450 %attr(755,root,root) %{_sbindir}/postmap
451 %attr(755,root,root) %{_sbindir}/postmulti
452 %attr(2755,root,maildrop) %{_sbindir}/postqueue
453 %attr(755,root,root) %{_sbindir}/postsuper
454 %attr(755,root,root) %{_sbindir}/posttls-finger
455 %attr(755,root,root) %{_sbindir}/qmqp-sink
456 %attr(755,root,root) %{_sbindir}/qmqp-source
457 %attr(755,root,root) /usr/lib/sendmail
458 %dir %{_libdir}/postfix
459 %attr(755,root,root) %{_libdir}/postfix/[!d]*
460 %attr(755,root,root) %exclude %{_libdir}/postfix/postfix-ldap.so
461 %attr(755,root,root) %exclude %{_libdir}/postfix/postfix-mysql.so
462 %attr(755,root,root) %exclude %{_libdir}/postfix/postfix-pcre.so
463 %attr(755,root,root) %exclude %{_libdir}/postfix/postfix-pgsql.so
464 %attr(755,root,root) %exclude %{_libdir}/postfix/postfix-sqlite.so
465 %attr(755,root,root) %{_libdir}/postfix/discard
466 %attr(755,root,root) %{_libdir}/postfix/dnsblog
467 %attr(755,root,root) %dir %{_var}/spool/postfix
468 %attr(700,postfix,root) %dir %{_var}/spool/postfix/active
469 %attr(700,postfix,root) %dir %{_var}/spool/postfix/bounce
470 %attr(700,postfix,root) %dir %{_var}/spool/postfix/corrupt
471 %attr(700,postfix,root) %dir %{_var}/spool/postfix/defer
472 %attr(700,postfix,root) %dir %{_var}/spool/postfix/deferred
473 %attr(700,postfix,root) %dir %{_var}/spool/postfix/incoming
474 %attr(1730,postfix,maildrop) %dir %{_var}/spool/postfix/maildrop
475 %attr(755,root,root) %dir %{_var}/spool/postfix/pid
476 %attr(700,postfix,root) %dir %{_var}/spool/postfix/private
477 %attr(710,postfix,maildrop) %dir %{_var}/spool/postfix/public
478 %attr(700,postfix,root) %dir %{_var}/spool/postfix/saved
479 %attr(644,postfix,root) %{_var}/spool/postfix/.nofinger
480 %attr(700,postfix,root) %{_var}/lib/postfix
481 %{_mandir}/man1/mailq.1*
482 %{_mandir}/man1/newaliases.1*
483 %{_mandir}/man1/post*.1*
484 %{_mandir}/man1/qmqp-*.1*
485 %{_mandir}/man1/sendmail.1*
486 %{_mandir}/man1/smtp-*.1*
487 %{_mandir}/man5/access.5*
488 %{_mandir}/man5/aliases.5*
489 %{_mandir}/man5/body_checks.5*
490 %{_mandir}/man5/bounce.5*
491 %{_mandir}/man5/canonical.5*
492 %{_mandir}/man5/cidr_table.5*
493 %{_mandir}/man5/generic.5*
494 %{_mandir}/man5/header_checks.5*
495 %{_mandir}/man5/lmdb_table.5*
496 %{_mandir}/man5/master.5*
497 %{_mandir}/man5/memcache_table.5*
498 %{_mandir}/man5/nisplus_table.5*
499 %{_mandir}/man5/postconf.5*
500 %{_mandir}/man5/postfix-wrapper.5*
501 %{_mandir}/man5/regexp_table.5*
502 %{_mandir}/man5/relocated.5*
503 %{_mandir}/man5/socketmap_table.5*
504 %{_mandir}/man5/tcp_table.5*
505 %{_mandir}/man5/transport.5*
506 %{_mandir}/man5/virtual.5*
507 %{_mandir}/man8/*.8*
508
509 %files devel
510 %defattr(644,root,root,755)
511 %attr(755,root,root) %{_libdir}/libpostfix-*.so
512 %{_includedir}/postfix
513
514 %if %{with ldap}
515 %files dict-ldap
516 %defattr(644,root,root,755)
517 %attr(755,root,root) %{_libdir}/postfix/postfix-ldap.so
518 %{_mandir}/man5/ldap_table.5*
519 %endif
520
521 %if %{with mysql}
522 %files dict-mysql
523 %defattr(644,root,root,755)
524 %attr(755,root,root) %{_libdir}/postfix/postfix-mysql.so
525 %{_mandir}/man5/mysql_table.5*
526 %endif
527
528 %files dict-pcre
529 %defattr(644,root,root,755)
530 %attr(755,root,root) %{_libdir}/postfix/postfix-pcre.so
531 %{_mandir}/man5/pcre_table.5*
532
533 %if %{with pgsql}
534 %files dict-pgsql
535 %defattr(644,root,root,755)
536 %attr(755,root,root) %{_libdir}/postfix/postfix-pgsql.so
537 %{_mandir}/man5/pgsql_table.5*
538 %endif
539
540 %if %{with sqlite}
541 %files dict-sqlite
542 %defattr(644,root,root,755)
543 %attr(755,root,root) %{_libdir}/postfix/postfix-sqlite.so
544 %{_mandir}/man5/sqlite_table.5*
545 %endif
546
547 %files qshape
548 %defattr(644,root,root,755)
549 %attr(755,root,root) %{_bindir}/qshape
550 %{_mandir}/man1/qshape.1*
551
552 %files -n monit-rc-%{name}
553 %defattr(644,root,root,755)
554 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/monit/%{name}.monitrc