]> git.pld-linux.org Git - packages/courier.git/blob - courier.spec
perl 5.38.0 rebuild
[packages/courier.git] / courier.spec
1 # TODO
2 # - doesn't -webadmin need webserver integration?
3 # - use rc-scripts in %%post scriptlets
4 # - init.d script, pre and post for webmlm?
5 #
6 # Conditional build:
7 %bcond_without  fam             # with fam support
8 %bcond_with     gnutls          # GnuTLS instead of OpenSSL
9 %bcond_with     socks           # (Courier) Socks support
10 %bcond_with     tests           # without tests
11 #
12 Summary:        Courier mail server
13 Summary(pl.UTF-8):      Serwer poczty Courier
14 Name:           courier
15 Version:        1.2.2
16 Release:        2
17 License:        GPL v3 with OpenSSL exception
18 Group:          Networking/Daemons
19 Source0:        https://downloads.sourceforge.net/courier/%{name}-%{version}.tar.bz2
20 # Source0-md5:  4f27683022efc180a8a46cdbca99d3b9
21 Patch1:         %{name}-withoutfam.patch
22 Patch2:         %{name}-maildir.patch
23 Patch3:         %{name}-sendmail_dir.patch
24 Patch4:         %{name}-start_scripts.patch
25 Patch5:         %{name}-certs.patch
26 Patch6:         %{name}-filterbindir.patch
27 URL:            http://www.courier-mta.org/
28 BuildRequires:  autoconf >= 2.59
29 BuildRequires:  automake
30 BuildRequires:  courier-authlib-devel >= 0.71
31 %{?with_socks:BuildRequires:    courier-sox-devel}
32 BuildRequires:  courier-unicode-devel >= 2.1
33 BuildRequires:  db-devel
34 BuildRequires:  expect
35 %{?with_fam:BuildRequires:      fam-devel}
36 BuildRequires:  gettext-tools
37 # or gnupg2 when --with-gpg2
38 BuildRequires:  gnupg
39 %{?with_gnutls:BuildRequires:   gnutls-devel >= 3.0}
40 %{?with_gnutls:BuildRequires:   libgcrypt-devel}
41 %{?with_gnutls:BuildRequires:   libgpg-error-devel}
42 BuildRequires:  libidn2-devel >= 0.0.0
43 BuildRequires:  libstdc++-devel >= 6:4.7
44 BuildRequires:  libtool >= 2:2
45 BuildRequires:  mailcap
46 BuildRequires:  openldap-devel >= 2.3.0
47 %{!?with_gnutls:BuildRequires:  openssl-devel >= 0.9.7d}
48 BuildRequires:  openssl-tools >= 0.9.7d
49 BuildRequires:  pam-devel
50 BuildRequires:  pcre2-8-devel
51 BuildRequires:  perl-devel >= 5
52 BuildRequires:  pkgconfig
53 BuildRequires:  rpmbuild(macros) >= 1.268
54 BuildRequires:  sed >= 4.0
55 BuildRequires:  sysconftool
56 Requires(post,preun):   /sbin/chkconfig
57 # even if using OpenSSL libraries, Courier uses certtool from GnuTLS
58 Requires:       /usr/bin/certtool
59 Requires:       courier-authlib >= 0.71
60 Requires:       courier-unicode >= 2.1
61 Requires:       rc-scripts
62 Provides:       smtpdaemon
63 Obsoletes:      smtpdaemon
64 Conflicts:      cone < 1
65 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
66
67 %define         _localstatedir  /var/spool/courier
68 %define         _sysconfdir     /etc/courier
69 %define         _certsdir       %{_sysconfdir}/certs
70
71 %define         _webapps        /etc/webapps
72 %define         _cgibindir      /usr/lib/cgi-bin
73 %define         _imagedir       %{_datadir}/courier/sqwebmail/images
74 %define         _imageurl       /webmail
75
76 %description
77 Courier is a fully functional mail server, that can completely take
78 over the mail services normally provided by sendmail, Qmail, or any
79 other mail server. Although Courier does not support all legacy
80 features of existing mail servers, the number of obsoleted functions
81 is very small, and there are better, and more robust, alternatives
82 available.
83
84 Courier implements many SMTP extensions: DSN, PIPELINING, 8BITMIME.
85 Courier also implements several new SMTP extensions for mailing list
86 management and spam filtering.
87
88 %description -l pl.UTF-8
89 Courier jest w pełni funkcjonalnym serwerem poczty, może całkowicie
90 zastąpić usługi pocztowe dawane przez sendmail, Qmaila i inne serwery.
91 Wprawdzie Courier nie ma wszystkich możliwości istniejących serwerów,
92 ilość nie obsługiwanych funkcji jest bardzo mała, i są dostępne lepsze
93 alternatywy.
94
95 Courier zawiera wiele rozszerzeń SMTP: DSN, PIPELINING, 8BITMIME. Ma
96 także nowe rozszerzenia SMTP dla pocztowych list dyskusyjnych i
97 filtrowania spamu.
98
99 %package pop3d
100 Summary:        Courier Integrated POP3 server
101 Summary(pl.UTF-8):      Zintegrowany serwer POP3 do Couriera
102 Group:          Networking/Daemons/POP3
103 Requires(post): openssl-tools >= 0.9.7d
104 Requires:       %{name} = %{version}-%{release}
105 Provides:       pop3daemon
106 Obsoletes:      pop3daemon
107
108 %description pop3d
109 This package installs Courier mail server's integrated POP3 server,
110 which allows you to download mail from your mailbox using any POP3
111 client. Courier's POP3 server can only be used to download mail from
112 maildir mailboxes. This server does not support mailbox files. If you
113 do not need the ability to download your mail using a POP3 client, you
114 do not need to install this package.
115
116 %description pop3d -l pl.UTF-8
117 Ten pakiet zawiera zintegrowany serwer POP3 do Couriera, pozwalający
118 na ściąganie poczty ze skrzynki przy pomocy dowolnego klienta POP3.
119 Serwer POP3 Couriera może być używany tylko ze skrzynkami Maildir, nie
120 obsługuje skrzynek w postaci pojedynczych plików.
121
122 %package imapd
123 Summary:        Courier Integrated IMAP server
124 Summary(pl.UTF-8):      Zintegrowany serwer IMAP do Couriera
125 Group:          Networking/Daemons
126 Requires(post): openssl-tools >= 0.9.7d
127 Requires:       %{name} = %{version}-%{release}
128 Obsoletes:      courier-imap
129 Obsoletes:      courier-imap-common
130
131 %description imapd
132 This package installs Courier mail server's integrated IMAP server. If
133 you do not need the ability to download your mail using an IMAP mail
134 client, you do not need to install this package. Courier's IMAP server
135 can only be used to download mail from maildir mailboxes. This server
136 does not support mailbox files.
137
138 This package requires that Courier must be already installed, this is
139 NOT the standalone version of the Courier-IMAP server, and you cannot
140 install both this package, and the standalone version of Courier-IMAP.
141 If you have the standalone version of the Courier-IMAP server already
142 installed, installing this package will automatically remove the
143 standalone version.
144
145 %description imapd -l pl.UTF-8
146 Ten pakiet zawiera zintegrowany serwer IMAP do Couriera. Pozwala
147 ściągać pocztę przy pomocy klienta IMAP. Serwer IMAP Couriera może być
148 używany tylko ze skrzynkami Maildir, nie obsługuje skrzynek w postaci
149 pojedynczych plików.
150
151 Ten pakiet wymaga serwera Courier, to NIE jest samodzielna wersja
152 serwera Courier-IMAP. Nie można też instalować jednocześnie tego
153 pakietu i samodzielnej wersji Courier-IMAP. Zainstalowanie tego
154 pakietu automatycznie odinstaluje Courier-IMAP jeśli był zinstalowany.
155
156 %package webadmin
157 Summary:        Courier Integrated HTTP administraton panel
158 Summary(pl.UTF-8):      Panel administracyjny przez HTTP dla Couriera
159 Group:          Networking/Daemons
160 Requires:       %{name} = %{version}-%{release}
161 Requires:       filesystem >= 3.0-11
162 Requires:       webapps
163 Requires:       webserver = apache
164 Conflicts:      apache-base < 2.2.0-8
165 Conflicts:      apache1 < 1.3.34-5.11
166
167 %description webadmin
168 This is a web-based administration tool. Webadmin is a web CGI
169 application.
170
171 %description webadmin -l pl.UTF-8
172 Webadmin jest narzędziem administracyjnym obsługiwanym przez WWW.
173
174 %package webmail
175 Summary:        Courier Integrated HTTP (webmail) server
176 Summary(pl.UTF-8):      Zintegrowany serwer poczty przez HTTP (webmail) do Couriera
177 Group:          Networking/Daemons
178 Requires:       %{name} = %{version}-%{release}
179 Requires:       filesystem >= 3.0-11
180 Requires:       webapps
181 Requires:       webserver = apache
182 Conflicts:      apache-base < 2.2.0-8
183 Conflicts:      apache1 < 1.3.34-5.11
184
185 %description webmail
186 This package installs Courier mail server's integrated HTTP webmail
187 server. If you do not need the ability to access your mail using a web
188 browser, you do not need to install this package. Courier's webmail
189 server can only be used to download mail from maildir mailboxes. This
190 server does not support mailbox files.
191
192 This is the same server that's distributed separately under the name
193 of SqWebMail, however its configuration is customized for the Courier
194 mail server.
195
196 %description webmail -l pl.UTF-8
197 Ten pakiet zawiera zintegrowany serwer poczty przez HTTP (webmail) dla
198 Couriera, pozwalający na dostęp do poczty za pomocą przeglądarki WWW.
199 Serwer webmail Couriera może być używany tylko ze skrzynkami Maildir,
200 nie obsługuje skrzynek w postaci pojedynczych plików.
201
202 Jest to ten sam serwer, co dystrybuowany oddzielnie pod nazwą
203 SqWebMail, ale jego konfiguracja jest dostosowana do serwera Courier.
204
205 %package webmlm
206 Summary:        Courier web-based access to some couriermlm commands
207 Summary(pl.UTF-8):      Dostęp WWW do niektórych poleceń couriermlm do Couriera
208 Group:          Networking/Daemons
209 Requires:       %{name} = %{version}-%{release}
210 Requires:       filesystem >= 3.0-11
211 Requires:       webapps
212 Requires:       webserver = apache
213 Conflicts:      apache-base < 2.2.0-8
214 Conflicts:      apache1 < 1.3.34-5.11
215
216 %description webmlm
217 WebMLM is a service that offers an alternative web-based access to
218 some couriermlm commands, as an alternative to submitting them via
219 E-mail.
220
221 %description webmlm -l pl.UTF-8
222 WebMLM to serwis oferujący dostęp WWW do wybranych poleceń couriermlm
223 jako alternatywę do wysyłania ich poprzez e-mail.
224
225 %package maildir-tools
226 Summary:        Tools for mail folders in Maildir format
227 Summary(pl.UTF-8):      Narzędzia do zarządzania skrzynkami Maildir
228 Group:          Applications/Mail
229 Requires:       %{name} = %{version}-%{release}
230
231 %description maildir-tools
232 This package contains tools for mail folders in Maildir format.
233
234 %description maildir-tools -l pl.UTF-8
235 Ten pakiet zawiera narzędzia do zarządzania folderami w formacie
236 Maildir.
237
238 %package mlm
239 Summary:        Courier Integrated Mailing List Manager
240 Summary(pl.UTF-8):      Zintegrowany zarządca list dyskusyjnych do Couriera
241 Group:          Applications/Mail
242 Requires:       %{name} = %{version}-%{release}
243
244 %description mlm
245 This package installs couriermlm - a mailing list manager for the
246 Courier mail server. If you do not need the ability to manage mailing
247 lists, you do not need to install this package.
248
249 couriermlm is used to set up, maintain, and run a mailing list.
250 couriermlm automatically processes subscription and unsubscription
251 requests, and removes undeliverable addresses from the subscription
252 rolls. Mailing lists managed by couriermlm require zero human
253 administrative oversight. couriermlm supports digests, write-only
254 posting aliases, and moderated mailing lists.
255
256 %description mlm -l pl.UTF-8
257 Ten pakiet zawiera couriermlm - program do zarządzania listami
258 dyskusyjnymi dla Couriera. couriermlm jest używany do konfigurowania,
259 zarządzania i prowadzenia pocztowej listy dyskusyjnej. Automatycznie
260 obsługuje żądania zapisywania i wypisywania oraz usuwa z listy
261 niedziałające adresy subskrybentów. Listy obsługiwane przez couriermlm
262 nie wymagają pracy administratora. couriermlm obsługuje digesty,
263 aliasy pocztowe tylko do wysyłania i listy moderowane.
264
265 %package maildrop
266 Summary:        Courier Integrated mail filter
267 Summary(pl.UTF-8):      Zintegrowany filtr poczty do Couriera
268 Group:          Applications/Mail
269 Requires:       %{name} = %{version}-%{release}
270
271 %description maildrop
272 This package installs Courier mail server's integrated mail filter.
273 You need to install this package if you want to be able to filter your
274 incoming mail.
275
276 %description maildrop -l pl.UTF-8
277 Ten pakiet zawiera zintegrowany filtr poczty dla Couriera. Jest
278 potrzebny do filtrowania przychodzącej poczty.
279
280 %package fax
281 Summary:        Courier fax support
282 Summary(pl.UTF-8):      Obsługa faksów dla Couriera
283 Group:          Applications/Mail
284 Requires:       %{name} = %{version}-%{release}
285 Requires:       ghostscript
286 Requires:       groff
287 Requires:       netpbm-progs
288 #Requires:      /usr/bin/sendfax
289 # pdftops
290 Suggests:       poppler-progs
291
292 %description fax
293 This package adds support for faxing E-mail messages. It allows to
294 send fax messages simply by sending an E-mail to phonenumber@fax.
295
296 %description fax -l pl.UTF-8
297 Ten pakiet dodaje obsługę faksowania listów elektronicznych. Pozwala
298 wysyłać faksy wysyłając po prostu e-maila na numertelefonu@fax.
299
300 %prep
301 %setup -q
302 %{!?with_fam:%patch1 -p1}
303 %patch2 -p1
304 %patch3 -p1
305 %patch4 -p1
306 %patch5 -p1
307 %patch6 -p1
308
309 cat >apache.conf <<EOF
310 Alias /webmail %{_imagedir}
311 <Directory %{_imagedir}>
312         AllowOverride None
313         Options None
314         Allow from all
315 </Directory>
316 EOF
317
318 %{__rm} libs/pcp/m4/ltversion.m4
319
320 %build
321 %{__libtoolize}
322 # Change Makefile.am files and force recreate Makefile.in's.
323 OLDDIR=`pwd`
324 find -type f -a -name configure.ac | while read FILE; do
325         cd "`dirname "$FILE"`"
326
327         if [ -f Makefile.am ]; then
328                 sed -i -e '/_[L]DFLAGS=-static/d' Makefile.am
329         fi
330
331         %{__aclocal} $(test ! -d m4 || echo -I m4)
332         %{__autoconf}
333         if grep -q AC_CONFIG_HEADER configure.ac; then
334                 %{__autoheader}
335         fi
336         %{__automake}
337
338         cd "$OLDDIR"
339 done
340
341 %configure \
342         CERTTOOL=/usr/bin/certtool \
343         GROPS=/usr/bin/grops \
344         GS=/usr/bin/gs \
345         PNMSCALE=/usr/bin/pnmscale \
346         OPENSSL=/usr/bin/openssl \
347         SENDFAX=/usr/bin/sendfax \
348         --datadir=%{_datadir}/courier \
349         --enable-imagedir=%{_imagedir} \
350         --enable-imageurl=%{_imageurl} \
351         --enable-mimetypes=/etc/mime.types \
352         --with-certsdir=%{_certsdir} \
353         --with-db=db \
354         %{?with_gnutls:--with-gnutls} \
355         --with-mailer=%{_sbindir}/sendmail \
356         --with-mailgid=2 \
357         --with-mailgroup=daemon \
358         --with-mailuid=2 \
359         --with-mailuser=daemon \
360         --with-notice=unicode \
361         %{!?with_socks:--without-socks}
362
363 %{__make} -j1
364 %{?with_tests:%{__make} -j1 check}
365
366 %install
367 rm -rf $RPM_BUILD_ROOT
368 umask 022
369 install -d -p $RPM_BUILD_ROOT/etc/{cron.hourly,pam.d,rc.d/init.d} \
370         $RPM_BUILD_ROOT{/usr/lib,%{_certsdir},%{_cgibindir},%{_webapps}/courier-webmail,%{_sysconfdir}/hosteddomains}
371
372 %{__make} -j1 install \
373         DESTDIR=$RPM_BUILD_ROOT
374
375 # fix pam problem
376 %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/*.authpam
377 for X in imap esmtp pop3 webmail calendar
378 do
379         cat > $RPM_BUILD_ROOT/etc/pam.d/$X <<'EOF'
380 #%PAM-1.0
381 auth    required        pam_unix.so shadow nullok
382 account required        pam_unix.so
383 session required        pam_unix.so
384 EOF
385 done
386
387 %{__make} install-perms
388
389 # Move webmail and webadmin to cgibindir
390 %{__mv} $RPM_BUILD_ROOT%{_libexecdir}/courier/webmail/webmail \
391         $RPM_BUILD_ROOT%{_cgibindir}/webmail
392 %{__mv} $RPM_BUILD_ROOT%{_libexecdir}/courier/webmail/webadmin \
393         $RPM_BUILD_ROOT%{_cgibindir}/webadmin
394
395 # noinst program (as of 1.1.8)
396 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/maildirwatch.1
397
398 # install a cron job to clean out webmail's cache
399 install libs/sqwebmail/cron.cmd $RPM_BUILD_ROOT/etc/cron.hourly/courier-webmail-cleancache
400
401 # Move .html documentation to docdir; use common directory for all subpackages for references to work.
402 install -d $RPM_BUILD_ROOT%{_docdir}
403 %{__mv} $RPM_BUILD_ROOT%{_datadir}/courier/htmldoc $RPM_BUILD_ROOT%{_docdir}/courier
404
405 # Manually set POP3DSTART and IMAPDSTART to yes, they'll go into a separate
406 # package, so after it's installed they should be runnable.
407
408 sed -i 's/^POP3DSTART.*/POP3DSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/pop3d.dist
409 sed -i 's/^POP3DSSLSTART.*/POP3DSSLSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/pop3d-ssl.dist
410 sed -i 's/^IMAPDSTART.*/IMAPDSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/imapd.dist
411 sed -i 's/^IMAPDSSLSTART.*/IMAPDSSLSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/imapd-ssl.dist
412
413 # Want to have esmtpd running by default
414 sed -i 's/^ESMTPDSTART.*/ESMTPDSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/esmtpd.dist
415
416 # run script from install-configure (make config files)
417 for confdist in `awk ' $5 == "config" && $1 ~ /\.dist$/ { print $1 }' <permissions.dat`
418 do %{__perl} ././sysconftool $RPM_BUILD_ROOT$confdist
419 done
420
421 # make locals, esmtpacceptmailfor.dir/default
422 touch $RPM_BUILD_ROOT%{_sysconfdir}/esmtpacceptmailfor.dir/default
423 touch $RPM_BUILD_ROOT%{_sysconfdir}/locals
424
425 # file with important options
426 cat > $RPM_BUILD_ROOT%{_sysconfdir}/bofh <<EOF
427 # enable this option if you want to pass bad converted mails
428 # opt BOFHBADMIME=accept
429 EOF
430
431 # Make password and unsecureok (files for webadmin)
432 touch $RPM_BUILD_ROOT%{_sysconfdir}/webadmin/password
433 touch $RPM_BUILD_ROOT%{_sysconfdir}/webadmin/unsecureok
434
435 # create file me to put localdomain
436 touch $RPM_BUILD_ROOT%{_sysconfdir}/me
437
438 # create calendarmode
439 touch $RPM_BUILD_ROOT%{_sysconfdir}/calendarmode
440
441 install courier.sysvinit $RPM_BUILD_ROOT/etc/rc.d/init.d/courier
442
443 # sendmail soft links
444 ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT/usr/lib/sendmail
445
446 # fix rmail link (points to non-existing sendmail in %{_bindir}
447 ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT%{_bindir}/rmail
448
449 # for apache
450 cp -p apache.conf $RPM_BUILD_ROOT%{_webapps}/courier-webmail/apache.conf
451 cp -p apache.conf $RPM_BUILD_ROOT%{_webapps}/courier-webmail/httpd.conf
452
453 # makedat is packaged in courier-authlib
454 %{__rm} $RPM_BUILD_ROOT%{_bindir}/makedat \
455         $RPM_BUILD_ROOT%{_libexecdir}/courier/makedatprog \
456         $RPM_BUILD_ROOT%{_datadir}/courier/makedat \
457         $RPM_BUILD_ROOT%{_mandir}/man1/makedat.1
458 # remove unpackaged files
459 %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/*.dist
460
461 %clean
462 rm -rf $RPM_BUILD_ROOT
463
464 %triggerin -- courier < 0.45.5
465 echo
466 echo Directory with certificates has changed to %{_certsdir}
467 echo
468
469 %post
470 if [ "$1" = "1" ]; then
471         [ -s %{_sysconfdir}/me ] || /bin/hostname -f > %{_sysconfdir}/me
472         %banner -e %{name} <<'EOF'
473
474 Now courier will refuse to accept SMTP messages except to localhost
475 add hosts to %{_sysconfdir}/esmtpacceptmailfor.dir/default
476 run makeacceptmailfor
477
478 Add hosts to %{_sysconfdir}/locals you want to accept mail for
479 run makealiases
480
481 Enter user, who should receive mail for root, mailer-daemon and postmaster
482 into %{_sysconfdir}/aliases/system
483
484 Default maildir is in ~/Mail/Maildir
485
486 EOF
487 fi
488
489 /sbin/chkconfig --add courier
490 %service courier restart
491
492 %preun
493 if [ "$1" = "0" ]; then
494         %service courier stop
495         /sbin/chkconfig --del courier
496 fi
497
498 %post imapd
499 # TODO: use rc-scripts here
500 if [ -e %{_localstatedir}/tmp/imapd.pid ]; then
501         %{_sbindir}/imapd stop
502         %{_sbindir}/imapd start
503 else
504         echo
505         echo 'Type "%{_sbindir}/imapd start" to start imapd server'
506         echo
507 fi
508 if [ -e %{_localstatedir}/tmp/imapd-ssl.pid ]; then
509         %{_sbindir}/imapd-ssl stop
510         %{_sbindir}/imapd-ssl start
511 else
512         echo
513         echo Type "%{_sbindir}/imapd-ssl start" to start imapd-ssl server
514         echo
515 fi
516
517 %preun imapd
518 if [ "$1" = "0" ]; then
519         if [ -e %{_localstatedir}/tmp/imapd.pid ]; then
520                 %{_sbindir}/imapd stop
521         fi
522         if [ -e %{_localstatedir}/tmp/imapd-ssl.pid ]; then
523                 %{_sbindir}/imapd-ssl stop
524         fi
525 fi
526
527 %post pop3d
528 if [ -e %{_localstatedir}/tmp/pop3d.pid ]; then
529         %{_sbindir}/pop3d stop
530         %{_sbindir}/pop3d start
531 else
532         echo
533         echo 'Type "%{_sbindir}/pop3d start" to start pop3d server'
534         echo
535 fi
536 if [ -e %{_localstatedir}/tmp/pop3d-ssl.pid ]; then
537         %{_sbindir}/pop3d-ssl stop
538         %{_sbindir}/pop3d-ssl start
539 else
540         echo
541         echo 'Type "%{_sbindir}/pop3d-ssl start" to start pop3d-ssl server'
542         echo
543 fi
544
545 %preun pop3d
546 if [ "$1" = "0" ]; then
547         if [ -e %{_localstatedir}/tmp/pop3d.pid ]; then
548                 %{_sbindir}/pop3d stop
549         fi
550         if [ -e %{_localstatedir}/tmp/pop3d-ssl.pid ]; then
551                 %{_sbindir}/pop3d-ssl stop
552         fi
553 fi
554
555 %post webadmin
556 if [ "$1" = "1" ]; then
557         echo
558         echo Remember to put your webadmin password to %{_sysconfdir}/webadmin/password
559         echo
560 fi
561
562 %post webmail
563 if [ "$1" = "1" ]; then
564         echo
565         echo If you want to have calendar starting by default then
566         echo put word net to %{_sysconfdir}/calendarmode
567         echo
568 fi
569 if [ -e %{_localstatedir}/tmp/sqwebmaild.pid ]; then
570         %{_sbindir}/webmaild stop
571         %{_sbindir}/webmaild start
572 else
573         echo
574         echo 'Type "%{_sbindir}/webmaild start" to start webmail server'
575         echo
576 fi
577
578 %preun webmail
579 if [ "$1" = "0" ]; then
580         if [ -e %{_localstatedir}/tmp/sqwebmaild.pid ]; then
581                 %{_sbindir}/webmaild stop
582         fi
583 fi
584
585 %triggerin webmail -- apache1 < 1.3.37-3, apache1-base
586 %webapp_register apache courier-webmail
587
588 %triggerun webmail -- apache1 < 1.3.37-3, apache1-base
589 %webapp_unregister apache courier-webmail
590
591 %triggerin webmail -- apache < 2.2.0, apache-base
592 %webapp_register httpd courier-webmail
593
594 %triggerun webmail -- apache < 2.2.0, apache-base
595 %webapp_unregister httpd courier-webmail
596
597 %triggerpostun webmail -- courier-webmail < 0.52.2-0.2
598 # migrate from apache-config macros
599 if [ -f /etc/courier/apache-courier.conf.rpmsave ]; then
600         if [ -d /etc/apache/webapps.d ]; then
601                 cp -f %{_webapps}/courier-webmail/apache.conf{,.rpmnew}
602                 cp -f /etc/courier/apache-courier.conf.rpmsave %{_webapps}/courier-webmail/apache.conf
603         fi
604
605         if [ -d /etc/httpd/webapps.d ]; then
606                 cp -f %{_webapps}/courier-webmail/httpd.conf{,.rpmnew}
607                 cp -f /etc/courier/apache-courier.conf.rpmsave %{_webapps}/courier-webmail/httpd.conf
608         fi
609         rm -f /etc/courier/apache-courier.conf.rpmsave
610 fi
611
612 # migrating apache-config symlinks
613 if [ -L /etc/apache/conf.d/99_courier.conf ]; then
614         rm -f /etc/apache/conf.d/99_courier.conf
615         /usr/sbin/webapp register apache courier-webmail
616         %service -q apache reload
617 fi
618 if [ -L /etc/httpd/httpd.conf/99_courier.conf ]; then
619         rm -f /etc/httpd/httpd.conf/99_courier.conf
620         /usr/sbin/webapp register httpd courier-webmail
621         %service -q httpd reload
622 fi
623
624 %files
625 %defattr(644,root,root,755)
626 %doc AUTHORS BENCHMARKS COPYING ChangeLog INSTALL NEWS README TODO
627 # common:
628 # couriertcpd, couriertls are common TCP/TLS wrappers
629 # makemime used by sqwebmail, useful for maildrop
630 # reformime used by mlm, useful for maildrop
631 # deliverquota, sharedindex* are common for maildir
632 %attr(755,root,root) %{_bindir}/couriertls
633 %attr(755,root,root) %{_bindir}/deliverquota
634 %attr(755,root,root) %{_bindir}/makemime
635 %attr(755,root,root) %{_bindir}/mimegpg
636 %attr(755,root,root) %{_bindir}/reformime
637 %attr(755,root,root) %{_sbindir}/couriertcpd
638 %attr(755,root,root) %{_sbindir}/mkdhparams
639 %attr(755,root,root) %{_sbindir}/sharedindexinstall
640 %attr(755,root,root) %{_sbindir}/sharedindexsplit
641 %dir %{_libexecdir}/courier
642 %dir %{_datadir}/courier
643 %attr(755,root,root) %{_datadir}/courier/mkdhparams
644 %attr(755,daemon,daemon) %dir %{_sysconfdir}
645 %attr(750,daemon,daemon) %dir %{_certsdir}
646 %dir %{_docdir}/courier
647 %{_docdir}/courier/bg.png
648 %{_docdir}/courier/japanese_flag.png
649 %{_docdir}/courier/icon.gif
650 %{_docdir}/courier/manpage.css
651 %{_docdir}/courier/draft-varshavchik-*-smtpext.txt
652 %{_docdir}/courier/FAQ.html
653 %{_docdir}/courier/couriertcpd.html
654 %{_docdir}/courier/couriertls.html
655 %{_docdir}/courier/deliverquota.html
656 %{_docdir}/courier/documentation.html
657 %{_docdir}/courier/index.html
658 %{_docdir}/courier/install.html
659 %{_docdir}/courier/layout.html
660 %{_docdir}/courier/links.html
661 %{_docdir}/courier/makedat.html
662 %{_docdir}/courier/makemime.html
663 %{_docdir}/courier/menu.html
664 %{_docdir}/courier/mimegpg.html
665 %{_docdir}/courier/mkdhparams.html
666 %{_docdir}/courier/modules.html
667 %{_docdir}/courier/reformime.html
668 %{_docdir}/courier/repo.html
669 %{_docdir}/courier/rpm.html
670 %{_docdir}/courier/socks.html
671 %{_docdir}/courier/status.html
672 %{_docdir}/courier/structures.html
673 %{_mandir}/man1/couriertcpd.1*
674 %{_mandir}/man1/couriertls.1*
675 %{_mandir}/man1/makemime.1*
676 %{_mandir}/man1/reformime.1*
677 %{_mandir}/man1/mimegpg.1*
678 %{_mandir}/man8/deliverquota.8*
679 %{_mandir}/man8/mkdhparams.8*
680
681 # MTA
682 %attr(6555,daemon,daemon) %{_bindir}/cancelmsg
683 %attr(755,root,root) %{_bindir}/courier-config
684 %attr(755,root,root) %{_bindir}/dotforward
685 %attr(2755,daemon,daemon) %{_bindir}/mailq
686 %attr(4755,root,root) %{_bindir}/rmail
687 %attr(755,root,root) %{_bindir}/testmxlookup
688 %attr(755,root,root) %{_sbindir}/aliaslookup
689 %attr(755,root,root) %{_sbindir}/courier
690 %attr(754,root,daemon) %{_sbindir}/makealiases
691 %attr(755,root,root) %{_sbindir}/makehosteddomains
692 %attr(755,root,root) %{_sbindir}/showconfig
693 %attr(754,root,daemon) %{_sbindir}/showmodules
694 %attr(4755,root,root) %{_sbindir}/sendmail
695 %attr(755,root,root) /usr/lib/sendmail
696 %attr(754,daemon,daemon) %{_libexecdir}/courier/aliascombine
697 %attr(754,daemon,daemon) %{_libexecdir}/courier/aliascreate
698 %attr(754,daemon,daemon) %{_libexecdir}/courier/aliasexp
699 %attr(754,daemon,daemon) %{_libexecdir}/courier/courierd
700 %attr(754,daemon,daemon) %{_libexecdir}/courier/submit
701 %attr(4554,daemon,daemon) %{_libexecdir}/courier/submitmkdir
702 %attr(755,root,root) %{_datadir}/courier/courierctl.start
703 %attr(754,root,daemon) %{_datadir}/courier/makealiases
704 %attr(755,root,root) %{_datadir}/courier/makehosteddomains
705 %attr(755,daemon,daemon) %dir %{_sysconfdir}/shared
706 %attr(755,daemon,daemon) %dir %{_sysconfdir}/shared.tmp
707 %attr(754,root,root) /etc/rc.d/init.d/courier
708 %attr(755,bin,bin) %dir %{_localstatedir}
709 %attr(755,daemon,daemon) %dir %{_localstatedir}/track
710 %{_docdir}/courier/aliases.html
711 %{_docdir}/courier/aliaslookup.html
712 %{_docdir}/courier/cancelmsg.html
713 %{_docdir}/courier/courier.html
714 %{_docdir}/courier/courierd.html
715 %{_docdir}/courier/dot-courier.html
716 %{_docdir}/courier/dot-forward.html
717 %{_docdir}/courier/mailq.html
718 %{_docdir}/courier/makealiases.html
719 %{_docdir}/courier/makehosteddomains.html
720 %{_docdir}/courier/queue.html
721 %{_docdir}/courier/sendmail.html
722 %{_docdir}/courier/submit.html
723 %{_docdir}/courier/testmxlookup.html
724 %{_mandir}/man1/cancelmsg.1*
725 %{_mandir}/man1/dot-forward.1*
726 %{_mandir}/man1/dotforward.1*
727 %{_mandir}/man1/mailq.1*
728 %{_mandir}/man1/rmail.1*
729 %{_mandir}/man1/sendmail.1*
730 %{_mandir}/man1/testmxlookup.1*
731 %{_mandir}/man5/dot-courier.5*
732 %{_mandir}/man7/localmailfilter.7*
733 %{_mandir}/man8/aliaslookup.8*
734 %{_mandir}/man8/courier.8*
735 %{_mandir}/man8/makealiases.8*
736 %{_mandir}/man8/makehosteddomains.8*
737 %{_mandir}/man8/submit.8*
738 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bofh
739 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/courierd
740 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/enablefiltering
741 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/locals
742 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/me
743 %attr(755,daemon,daemon) %dir %{_sysconfdir}/aliasdir
744 %attr(750,daemon,daemon) %dir %{_sysconfdir}/aliases
745 %attr(640,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/aliases/system
746 %attr(755,daemon,daemon) %dir %{_sysconfdir}/hosteddomains
747 %attr(755,daemon,daemon) %dir %{_sysconfdir}/smtpaccess
748 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/smtpaccess/default
749 %{_sysconfdir}/quotawarnmsg.example
750 %dir %{_datadir}/courier/courierwebadmin
751 %{_datadir}/courier/courierwebadmin/admin-15*
752
753 # LDAP configuration
754 %attr(744,daemon,daemon) %{_sbindir}/courierldapaliasd
755 %attr(640,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ldapaliasrc
756 %{_docdir}/courier/courierldapaliasd.html
757 %{_mandir}/man8/courierldapaliasd.8*
758
759 # filters
760 %attr(755,root,root) %{_bindir}/verifysmtp
761 %attr(754,root,daemon) %{_sbindir}/courierfilter
762 %attr(754,root,daemon) %{_sbindir}/filterctl
763 %attr(755,root,root) %{_libexecdir}/courier/courierfilter
764 %dir %{_libexecdir}/courier/filters
765 %attr(755,root,root) %{_libexecdir}/courier/filters/dupfilter
766 %attr(755,root,root) %{_libexecdir}/courier/filters/perlfilter
767 %attr(755,root,root) %{_libexecdir}/courier/filters/ratefilter
768 %attr(755,root,root) %{_libexecdir}/courier/filters/verifyfilter
769 %attr(754,root,daemon) %{_datadir}/courier/filterctl
770 %attr(755,root,root) %{_datadir}/courier/perlfilter-*.pl
771 %attr(755,root,root) %{_datadir}/courier/verifysender
772 %attr(755,root,root) %{_datadir}/courier/verifysenderfull
773 %attr(750,daemon,daemon) %dir %{_sysconfdir}/filters
774 %attr(750,daemon,daemon) %dir %{_sysconfdir}/filters/active
775 %attr(750,daemon,daemon) %dir %{_localstatedir}/allfilters
776 %attr(750,daemon,daemon) %dir %{_localstatedir}/filters
777 %attr(770,daemon,daemon) %dir %{_localstatedir}/tmp
778 %attr(750,daemon,daemon) %dir %{_localstatedir}/msgs
779 %attr(750,daemon,daemon) %dir %{_localstatedir}/msgq
780 %{_docdir}/courier/courierfilter.html
781 %{_docdir}/courier/courierperlfilter.html
782 %{_docdir}/courier/dupfilter.html
783 %{_docdir}/courier/ratefilter.html
784 %{_docdir}/courier/verifyfilter.html
785 %{_mandir}/man8/courierfilter.8*
786 %{_mandir}/man8/courierperlfilter.8*
787 %{_mandir}/man8/dupfilter.8*
788 %{_mandir}/man8/filterctl.8*
789 %{_mandir}/man8/ratefilter.8*
790 %{_mandir}/man8/verifyfilter.8*
791 %{_mandir}/man8/verifysmtp.8*
792
793 # module.dsn
794 %dir %{_libexecdir}/courier/modules/dsn
795 %attr(755,root,root) %{_libexecdir}/courier/modules/dsn/courierdsn
796 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/module.dsn
797 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsndelayed.txt
798 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsndelivered.txt
799 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnfailed.txt
800 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnrelayed.txt
801 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnfooter.txt
802 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnsubjectnotice.txt
803 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnsubjectwarn.txt
804 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnheader.txt
805 %{_docdir}/courier/courierdsn.html
806
807 # module.esmtp
808 %attr(755,root,root) %{_bindir}/addcr
809 %attr(755,root,root) %{_sbindir}/courieresmtpd
810 %attr(755,root,root) %{_sbindir}/esmtpd
811 %attr(755,root,root) %{_sbindir}/esmtpd-msa
812 %attr(755,root,root) %{_sbindir}/esmtpd-ssl
813 %attr(755,root,root) %{_sbindir}/makeacceptmailfor
814 %attr(755,root,root) %{_sbindir}/makepercentrelay
815 %attr(755,root,root) %{_sbindir}/makesmtpaccess
816 %attr(755,root,root) %{_sbindir}/makesmtpaccess-msa
817 %attr(755,root,root) %{_sbindir}/mkesmtpdcert
818 %dir %{_libexecdir}/courier/modules/esmtp
819 %attr(754,root,daemon) %{_libexecdir}/courier/modules/esmtp/courieresmtp
820 %attr(754,root,daemon) %{_libexecdir}/courier/modules/esmtp/courieresmtpd
821 %attr(755,root,root) %{_libexecdir}/courier/modules/esmtp/addcr
822 %attr(755,root,root) %{_datadir}/courier/esmtpd
823 %attr(755,root,root) %{_datadir}/courier/esmtpd-ssl
824 %attr(755,root,root) %{_datadir}/courier/makeacceptmailfor
825 %attr(755,root,root) %{_datadir}/courier/makepercentrelay
826 %attr(755,root,root) %{_datadir}/courier/makesmtpaccess
827 %attr(755,root,root) %{_datadir}/courier/mkesmtpdcert
828 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/esmtp
829 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/module.esmtp
830 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpd
831 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpd-msa
832 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpd-ssl
833 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpd.cnf
834 %attr(600,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpauthclient
835 %attr(755,daemon,daemon) %dir %{_sysconfdir}/esmtpacceptmailfor.dir
836 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpacceptmailfor.dir/default
837 %attr(755,daemon,daemon) %dir %{_sysconfdir}/esmtppercentrelay.dir
838 %{_docdir}/courier/esmtp.html
839 %{_docdir}/courier/esmtpd.html
840 %{_docdir}/courier/makeacceptmailfor.html
841 %{_docdir}/courier/makepercentrelay.html
842 %{_docdir}/courier/makesmtpaccess.html
843 %{_docdir}/courier/mkesmtpdcert.html
844 %{_mandir}/man8/esmtpd.8*
845 %{_mandir}/man8/esmtpd-msa.8*
846 %{_mandir}/man8/makeacceptmailfor.8*
847 %{_mandir}/man8/makepercentrelay.8*
848 %{_mandir}/man8/makesmtpaccess.8*
849 %{_mandir}/man8/makesmtpaccess-msa.8*
850 %{_mandir}/man8/mkesmtpdcert.8*
851
852 # module.local
853 %attr(755,root,root) %{_bindir}/preline
854 %dir %{_libexecdir}/courier/modules/local
855 %attr(755,root,root) %{_libexecdir}/courier/modules/local/courierdeliver
856 %attr(755,root,root) %{_libexecdir}/courier/modules/local/courierlocal
857 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/module.local
858 %{_docdir}/courier/local.html
859 %{_docdir}/courier/localmailfilter.html
860 %{_docdir}/courier/preline.html
861 %{_mandir}/man1/preline.1*
862
863 # module.uucp
864 %attr(755,root,root) %{_sbindir}/makeuucpneighbors
865 %dir %{_libexecdir}/courier/modules
866 %dir %{_libexecdir}/courier/modules/uucp
867 %attr(755,root,root) %{_libexecdir}/courier/modules/uucp/courieruucp
868 %attr(755,root,root) %{_datadir}/courier/makeuucpneighbors
869 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/module.uucp
870 %{_docdir}/courier/courieruucp.html
871 %{_mandir}/man8/courieruucp.8*
872 %{_mandir}/man8/makeuucpneighbors.8*
873
874 %files pop3d
875 %defattr(644,root,root,755)
876 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pop3d
877 %attr(600,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pop3d.cnf
878 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pop3d-ssl
879 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/pop3
880 %attr(755,root,root) %{_sbindir}/mkpop3dcert
881 %attr(755,root,root) %{_sbindir}/pop3d
882 %attr(755,root,root) %{_sbindir}/pop3d-ssl
883 %attr(755,root,root) %{_libexecdir}/courier/courierpop3d
884 %attr(755,root,root) %{_libexecdir}/courier/courierpop3login
885 %attr(755,root,root) %{_datadir}/courier/mkpop3dcert
886 %attr(755,root,root) %{_datadir}/courier/pop3d
887 %attr(755,root,root) %{_datadir}/courier/pop3d-ssl
888 %attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-45pop3.pl
889 %{_datadir}/courier/courierwebadmin/admin-45pop3.html
890 %{_docdir}/courier/courierpop3d.html
891 %{_docdir}/courier/mkpop3dcert.html
892 %{_docdir}/courier/pop3d.html
893 %{_mandir}/man8/courierpop3d.8*
894 %{_mandir}/man8/courierpop3login.8*
895 %{_mandir}/man8/mkpop3dcert.8*
896 %{_mandir}/man8/pop3d.8*
897 %{_mandir}/man8/pop3d-ssl.8*
898
899 %files imapd
900 %defattr(644,root,root,755)
901 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/imapd
902 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/imapd-ssl
903 %attr(600,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/imapd.cnf
904 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/imap
905 %attr(755,root,root) %{_bindir}/imapd
906 %attr(755,root,root) %{_sbindir}/imapd
907 %attr(755,root,root) %{_sbindir}/imapd-ssl
908 %attr(755,root,root) %{_sbindir}/makeimapaccess
909 %attr(755,root,root) %{_sbindir}/mkimapdcert
910 %attr(755,root,root) %{_libexecdir}/courier/imaplogin
911 %attr(755,root,root) %{_datadir}/courier/imapd
912 %attr(755,root,root) %{_datadir}/courier/imapd-ssl
913 %attr(755,root,root) %{_datadir}/courier/makeimapaccess
914 %attr(755,root,root) %{_datadir}/courier/mkimapdcert
915 %attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-40imap.pl
916 %{_datadir}/courier/courierwebadmin/admin-40imap.html
917 %{_docdir}/courier/imapd.html
918 %{_docdir}/courier/makeimapaccess.html
919 %{_docdir}/courier/mkimapdcert.html
920 %{_mandir}/man8/imapd.8*
921 %{_mandir}/man8/makeimapaccess.8*
922 %{_mandir}/man8/mkimapdcert.8*
923
924 %files webadmin
925 %defattr(644,root,root,755)
926 # suid root to cgi-bin??? and it's not secured by apache config!
927 %attr(4755,root,root) %{_cgibindir}/webadmin
928 %attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin
929 %attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin/added
930 %attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin/removed
931 %attr(400,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/webadmin/password
932 %attr(400,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/webadmin/restartauthcmd
933 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/webadmin/unsecureok
934 %attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-main.pl
935 %attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-save.pl
936 %attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-cancel.pl
937 %attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-[0235]*.pl
938 %attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-10password.pl
939 %attr(755,root,root) %{_datadir}/courier/courierwebadmin/dumpenv.pl
940 %attr(755,root,root) %{_datadir}/courier/courierwebadmin/webadmin.pl
941 %{_datadir}/courier/courierwebadmin/admin-[0235]*.html
942 %{_datadir}/courier/courierwebadmin/admin-10password.html
943 %{_datadir}/courier/courierwebadmin/admin-main.html
944 %{_datadir}/courier/courierwebadmin/admin-save.html
945 %{_datadir}/courier/courierwebadmin/login.html
946 %{_datadir}/courier/courierwebadmin/notsupp.html
947 %{_datadir}/courier/courierwebadmin/unsecure.html
948 %{_datadir}/courier/courierwebadmin/webadmin.pm
949
950 %files webmail
951 %defattr(644,root,root,755)
952 %doc libs/gpglib/README.html
953 %attr(755,root,root) %{_cgibindir}/webmail
954 %attr(755,root,root) /etc/cron.hourly/courier-webmail-cleancache
955 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/webmail
956 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/calendar
957 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/calendarmode
958 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ldapaddressbook
959 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sqwebmaild
960 %attr(755,root,root) %{_sbindir}/webgpg
961 %attr(755,root,root) %{_sbindir}/webmaild
962 %attr(755,root,root) %{_libexecdir}/courier/pcpd
963 %attr(755,root,root) %{_libexecdir}/courier/sqwebmaild
964 %attr(755,root,root) %{_libexecdir}/courier/sqwebpasswd
965 %dir %{_datadir}/courier/sqwebmail
966 %dir %{_datadir}/courier/sqwebmail/html
967 %dir %{_datadir}/courier/sqwebmail/html/en-us
968 %{_datadir}/courier/sqwebmail/html/en
969 %{_datadir}/courier/sqwebmail/images
970 %config %{_datadir}/courier/sqwebmail/html/en-us/[CILT]*
971 %{_datadir}/courier/sqwebmail/html/en-us/*.html
972 %{_datadir}/courier/sqwebmail/html/en-us/*.txt
973 %attr(755,root,root) %{_datadir}/courier/sqwebmail/cleancache.pl
974 %attr(755,root,root) %{_datadir}/courier/sqwebmail/ldapsearch
975 %attr(755,root,root) %{_datadir}/courier/sqwebmail/sendit.sh
976 %attr(755,root,root) %{_datadir}/courier/sqwebmail/webgpg
977 %attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-47webmail.pl
978 %{_datadir}/courier/courierwebadmin/admin-47webmail.html
979 %attr(755,bin,daemon) %dir %{_localstatedir}/calendar
980 %attr(700,bin,daemon) %dir %{_localstatedir}/calendar/localcache
981 %attr(750,bin,daemon) %dir %{_localstatedir}/calendar/private
982 %attr(755,bin,daemon) %dir %{_localstatedir}/calendar/public
983 %attr(700,bin,bin) %dir %{_localstatedir}/webmail-logincache
984 %dir %attr(750,root,http) %{_webapps}/courier-webmail
985 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/courier-webmail/apache.conf
986 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/courier-webmail/httpd.conf
987 %{_docdir}/courier/pcp_README.html
988
989 %files webmlm
990 %defattr(644,root,root,755)
991 %attr(700,daemon,daemon) %{_sysconfdir}/webmlmrc
992 %attr(755,root,root) %{_bindir}/webmlmd
993 %attr(755,root,root) %{_bindir}/webmlmd.rc
994 %dir %{_libexecdir}/courier/webmail
995 %attr(755,root,root) %{_libexecdir}/courier/webmail/webmlm
996 %{_docdir}/courier/webmlmd.html
997 %{_mandir}/man1/webmlmd.1*
998
999 %files maildrop
1000 %defattr(644,root,root,755)
1001 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/maildrop
1002 %attr(755,root,root) %{_bindir}/lockmail
1003 %attr(755,root,root) %{_bindir}/mailbot
1004 %attr(4755,root,root) %{_bindir}/maildrop
1005 %attr(755,root,root) %{_bindir}/reformail
1006 %{_docdir}/courier/lockmail.html
1007 %{_docdir}/courier/mailbot.html
1008 %{_docdir}/courier/maildrop*.html
1009 %{_docdir}/courier/reformail.html
1010 %{_mandir}/man1/lockmail.1*
1011 %{_mandir}/man1/mailbot.1*
1012 %{_mandir}/man1/maildrop.1*
1013 %{_mandir}/man1/reformail.1*
1014 %{_mandir}/man7/maildropex.7*
1015 %{_mandir}/man7/maildropfilter.7*
1016 %{_mandir}/man7/maildropgdbm.7*
1017
1018 %files maildir-tools
1019 %defattr(644,root,root,755)
1020 %doc libs/maildir/README.*.html
1021 %attr(755,root,root) %{_bindir}/maildirmake
1022 %attr(755,root,root) %{_bindir}/maildirkw
1023 %attr(755,root,root) %{_bindir}/maildiracl
1024 %{_docdir}/courier/maildir*.html
1025 %{_mandir}/man1/maildirmake.1*
1026 %{_mandir}/man1/maildirkw.1*
1027 %{_mandir}/man1/maildiracl.1*
1028 %{_mandir}/man5/maildir.5*
1029 %{_mandir}/man7/maildirquota.7*
1030
1031 %files mlm
1032 %defattr(644,root,root,755)
1033 %attr(755,root,root) %{_bindir}/couriermlm
1034 %{_datadir}/courier/couriermlm
1035 %{_docdir}/courier/couriermlm.html
1036 %{_mandir}/man1/couriermlm.1*
1037
1038 %files fax
1039 %defattr(644,root,root,755)
1040 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/faxcoverpage.tr
1041 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/faxnotifyrc
1042 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/faxrc
1043 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/module.fax
1044 %dir %{_libexecdir}/courier/modules/fax
1045 %attr(755,root,root) %{_libexecdir}/courier/modules/fax/courierfax
1046 %dir %{_datadir}/courier/faxmail
1047 %{_datadir}/courier/faxmail/*.filter
1048 %{_datadir}/courier/faxmail/coverpage
1049 %{_datadir}/courier/faxmail/init
1050 %{_datadir}/courier/faxmail/new_fax
1051 %{_docdir}/courier/courierfax.html
1052 %{_mandir}/man8/courierfax.8*
This page took 0.305258 seconds and 4 git commands to generate.