]> git.pld-linux.org Git - packages/courier.git/blob - courier.spec
- updated to 1.1.8
[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.1.8
16 Release:        1
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:  13de4bf23524c64f270161d22e59a593
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:  libidn-devel >= 0.0.0
43 BuildRequires:  libstdc++-devel >= 6:4.7
44 BuildRequires:  libtool >= 2:1.5
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 %build
319 %{__libtoolize}
320 # Change Makefile.am files and force recreate Makefile.in's.
321 OLDDIR=`pwd`
322 find -type f -a -name configure.ac | while read FILE; do
323         cd "`dirname "$FILE"`"
324
325         if [ -f Makefile.am ]; then
326                 sed -i -e '/_[L]DFLAGS=-static/d' Makefile.am
327         fi
328
329         %{__aclocal} $(test ! -d m4 || echo -I m4)
330         %{__autoconf}
331         if grep -q AC_CONFIG_HEADER configure.ac; then
332                 %{__autoheader}
333         fi
334         %{__automake}
335
336         cd "$OLDDIR"
337 done
338
339 %configure \
340         CERTTOOL=/usr/bin/certtool \
341         GROPS=/usr/bin/grops \
342         GS=/usr/bin/gs \
343         PNMSCALE=/usr/bin/pnmscale \
344         OPENSSL=/usr/bin/openssl \
345         SENDFAX=/usr/bin/sendfax \
346         --datadir=%{_datadir}/courier \
347         --enable-imagedir=%{_imagedir} \
348         --enable-imageurl=%{_imageurl} \
349         --enable-mimetypes=/etc/mime.types \
350         --with-certsdir=%{_certsdir} \
351         --with-db=db \
352         %{?with_gnutls:--with-gnutls} \
353         --with-mailer=%{_sbindir}/sendmail \
354         --with-mailgid=2 \
355         --with-mailgroup=daemon \
356         --with-mailuid=2 \
357         --with-mailuser=daemon \
358         --with-notice=unicode \
359         %{!?with_socks:--without-socks}
360
361 %{__make} -j1
362 %{?with_tests:%{__make} -j1 check}
363
364 %install
365 rm -rf $RPM_BUILD_ROOT
366 umask 022
367 install -d -p $RPM_BUILD_ROOT/etc/{cron.hourly,pam.d,rc.d/init.d} \
368         $RPM_BUILD_ROOT{/usr/lib,%{_certsdir},%{_cgibindir},%{_webapps}/courier-webmail,%{_sysconfdir}/hosteddomains}
369
370 %{__make} -j1 install \
371         DESTDIR=$RPM_BUILD_ROOT
372
373 # fix pam problem
374 %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/*.authpam
375 for X in imap esmtp pop3 webmail calendar
376 do
377         cat > $RPM_BUILD_ROOT/etc/pam.d/$X <<'EOF'
378 #%PAM-1.0
379 auth    required        pam_unix.so shadow nullok
380 account required        pam_unix.so
381 session required        pam_unix.so
382 EOF
383 done
384
385 %{__make} install-perms
386
387 # Move webmail and webadmin to cgibindir
388 %{__mv} $RPM_BUILD_ROOT%{_libexecdir}/courier/webmail/webmail \
389         $RPM_BUILD_ROOT%{_cgibindir}/webmail
390 %{__mv} $RPM_BUILD_ROOT%{_libexecdir}/courier/webmail/webadmin \
391         $RPM_BUILD_ROOT%{_cgibindir}/webadmin
392
393 # noinst program (as of 1.1.8)
394 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/maildirwatch.1
395
396 # install a cron job to clean out webmail's cache
397 install libs/sqwebmail/cron.cmd $RPM_BUILD_ROOT/etc/cron.hourly/courier-webmail-cleancache
398
399 # Move .html documentation to docdir; use common directory for all subpackages for references to work.
400 install -d $RPM_BUILD_ROOT%{_docdir}
401 %{__mv} $RPM_BUILD_ROOT%{_datadir}/courier/htmldoc $RPM_BUILD_ROOT%{_docdir}/courier
402
403 # Manually set POP3DSTART and IMAPDSTART to yes, they'll go into a separate
404 # package, so after it's installed they should be runnable.
405
406 sed -i 's/^POP3DSTART.*/POP3DSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/pop3d.dist
407 sed -i 's/^POP3DSSLSTART.*/POP3DSSLSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/pop3d-ssl.dist
408 sed -i 's/^IMAPDSTART.*/IMAPDSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/imapd.dist
409 sed -i 's/^IMAPDSSLSTART.*/IMAPDSSLSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/imapd-ssl.dist
410
411 # Want to have esmtpd running by default
412 sed -i 's/^ESMTPDSTART.*/ESMTPDSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/esmtpd.dist
413
414 # run script from install-configure (make config files)
415 for confdist in `awk ' $5 == "config" && $1 ~ /\.dist$/ { print $1 }' <permissions.dat`
416 do %{__perl} ././sysconftool $RPM_BUILD_ROOT$confdist
417 done
418
419 # make locals, esmtpacceptmailfor.dir/default
420 touch $RPM_BUILD_ROOT%{_sysconfdir}/esmtpacceptmailfor.dir/default
421 touch $RPM_BUILD_ROOT%{_sysconfdir}/locals
422
423 # file with important options
424 cat > $RPM_BUILD_ROOT%{_sysconfdir}/bofh <<EOF
425 # enable this option if you want to pass bad converted mails
426 # opt BOFHBADMIME=accept
427 EOF
428
429 # Make password and unsecureok (files for webadmin)
430 touch $RPM_BUILD_ROOT%{_sysconfdir}/webadmin/password
431 touch $RPM_BUILD_ROOT%{_sysconfdir}/webadmin/unsecureok
432
433 # create file me to put localdomain
434 touch $RPM_BUILD_ROOT%{_sysconfdir}/me
435
436 # create calendarmode
437 touch $RPM_BUILD_ROOT%{_sysconfdir}/calendarmode
438
439 install courier.sysvinit $RPM_BUILD_ROOT/etc/rc.d/init.d/courier
440
441 # sendmail soft links
442 ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT/usr/lib/sendmail
443
444 # fix rmail link (points to non-existing sendmail in %{_bindir}
445 ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT%{_bindir}/rmail
446
447 # for apache
448 cp -p apache.conf $RPM_BUILD_ROOT%{_webapps}/courier-webmail/apache.conf
449 cp -p apache.conf $RPM_BUILD_ROOT%{_webapps}/courier-webmail/httpd.conf
450
451 # makedat is packaged in courier-authlib
452 %{__rm} $RPM_BUILD_ROOT%{_bindir}/makedat \
453         $RPM_BUILD_ROOT%{_libexecdir}/courier/makedatprog \
454         $RPM_BUILD_ROOT%{_datadir}/courier/makedat \
455         $RPM_BUILD_ROOT%{_mandir}/man1/makedat.1
456 # remove unpackaged files
457 %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/*.dist
458
459 %clean
460 rm -rf $RPM_BUILD_ROOT
461
462 %triggerin -- courier < 0.45.5
463 echo
464 echo Directory with certificates has changed to %{_certsdir}
465 echo
466
467 %post
468 if [ "$1" = "1" ]; then
469         [ -s %{_sysconfdir}/me ] || /bin/hostname -f > %{_sysconfdir}/me
470         %banner -e %{name} <<'EOF'
471
472 Now courier will refuse to accept SMTP messages except to localhost
473 add hosts to %{_sysconfdir}/esmtpacceptmailfor.dir/default
474 run makeacceptmailfor
475
476 Add hosts to %{_sysconfdir}/locals you want to accept mail for
477 run makealiases
478
479 Enter user, who should receive mail for root, mailer-daemon and postmaster
480 into %{_sysconfdir}/aliases/system
481
482 Default maildir is in ~/Mail/Maildir
483
484 EOF
485 fi
486
487 /sbin/chkconfig --add courier
488 %service courier restart
489
490 %preun
491 if [ "$1" = "0" ]; then
492         %service courier stop
493         /sbin/chkconfig --del courier
494 fi
495
496 %post imapd
497 # TODO: use rc-scripts here
498 if [ -e %{_localstatedir}/tmp/imapd.pid ]; then
499         %{_sbindir}/imapd stop
500         %{_sbindir}/imapd start
501 else
502         echo
503         echo 'Type "%{_sbindir}/imapd start" to start imapd server'
504         echo
505 fi
506 if [ -e %{_localstatedir}/tmp/imapd-ssl.pid ]; then
507         %{_sbindir}/imapd-ssl stop
508         %{_sbindir}/imapd-ssl start
509 else
510         echo
511         echo Type "%{_sbindir}/imapd-ssl start" to start imapd-ssl server
512         echo
513 fi
514
515 %preun imapd
516 if [ "$1" = "0" ]; then
517         if [ -e %{_localstatedir}/tmp/imapd.pid ]; then
518                 %{_sbindir}/imapd stop
519         fi
520         if [ -e %{_localstatedir}/tmp/imapd-ssl.pid ]; then
521                 %{_sbindir}/imapd-ssl stop
522         fi
523 fi
524
525 %post pop3d
526 if [ -e %{_localstatedir}/tmp/pop3d.pid ]; then
527         %{_sbindir}/pop3d stop
528         %{_sbindir}/pop3d start
529 else
530         echo
531         echo 'Type "%{_sbindir}/pop3d start" to start pop3d server'
532         echo
533 fi
534 if [ -e %{_localstatedir}/tmp/pop3d-ssl.pid ]; then
535         %{_sbindir}/pop3d-ssl stop
536         %{_sbindir}/pop3d-ssl start
537 else
538         echo
539         echo 'Type "%{_sbindir}/pop3d-ssl start" to start pop3d-ssl server'
540         echo
541 fi
542
543 %preun pop3d
544 if [ "$1" = "0" ]; then
545         if [ -e %{_localstatedir}/tmp/pop3d.pid ]; then
546                 %{_sbindir}/pop3d stop
547         fi
548         if [ -e %{_localstatedir}/tmp/pop3d-ssl.pid ]; then
549                 %{_sbindir}/pop3d-ssl stop
550         fi
551 fi
552
553 %post webadmin
554 if [ "$1" = "1" ]; then
555         echo
556         echo Remember to put your webadmin password to %{_sysconfdir}/webadmin/password
557         echo
558 fi
559
560 %post webmail
561 if [ "$1" = "1" ]; then
562         echo
563         echo If you want to have calendar starting by default then
564         echo put word net to %{_sysconfdir}/calendarmode
565         echo
566 fi
567 if [ -e %{_localstatedir}/tmp/sqwebmaild.pid ]; then
568         %{_sbindir}/webmaild stop
569         %{_sbindir}/webmaild start
570 else
571         echo
572         echo 'Type "%{_sbindir}/webmaild start" to start webmail server'
573         echo
574 fi
575
576 %preun webmail
577 if [ "$1" = "0" ]; then
578         if [ -e %{_localstatedir}/tmp/sqwebmaild.pid ]; then
579                 %{_sbindir}/webmaild stop
580         fi
581 fi
582
583 %triggerin webmail -- apache1 < 1.3.37-3, apache1-base
584 %webapp_register apache courier-webmail
585
586 %triggerun webmail -- apache1 < 1.3.37-3, apache1-base
587 %webapp_unregister apache courier-webmail
588
589 %triggerin webmail -- apache < 2.2.0, apache-base
590 %webapp_register httpd courier-webmail
591
592 %triggerun webmail -- apache < 2.2.0, apache-base
593 %webapp_unregister httpd courier-webmail
594
595 %triggerpostun webmail -- courier-webmail < 0.52.2-0.2
596 # migrate from apache-config macros
597 if [ -f /etc/courier/apache-courier.conf.rpmsave ]; then
598         if [ -d /etc/apache/webapps.d ]; then
599                 cp -f %{_webapps}/courier-webmail/apache.conf{,.rpmnew}
600                 cp -f /etc/courier/apache-courier.conf.rpmsave %{_webapps}/courier-webmail/apache.conf
601         fi
602
603         if [ -d /etc/httpd/webapps.d ]; then
604                 cp -f %{_webapps}/courier-webmail/httpd.conf{,.rpmnew}
605                 cp -f /etc/courier/apache-courier.conf.rpmsave %{_webapps}/courier-webmail/httpd.conf
606         fi
607         rm -f /etc/courier/apache-courier.conf.rpmsave
608 fi
609
610 # migrating apache-config symlinks
611 if [ -L /etc/apache/conf.d/99_courier.conf ]; then
612         rm -f /etc/apache/conf.d/99_courier.conf
613         /usr/sbin/webapp register apache courier-webmail
614         %service -q apache reload
615 fi
616 if [ -L /etc/httpd/httpd.conf/99_courier.conf ]; then
617         rm -f /etc/httpd/httpd.conf/99_courier.conf
618         /usr/sbin/webapp register httpd courier-webmail
619         %service -q httpd reload
620 fi
621
622 %files
623 %defattr(644,root,root,755)
624 %doc AUTHORS BENCHMARKS COPYING ChangeLog INSTALL NEWS README TODO
625 # common:
626 # couriertcpd, couriertls are common TCP/TLS wrappers
627 # makemime used by sqwebmail, useful for maildrop
628 # reformime used by mlm, useful for maildrop
629 # deliverquota, sharedindex* are common for maildir
630 %attr(755,root,root) %{_bindir}/couriertls
631 %attr(755,root,root) %{_bindir}/deliverquota
632 %attr(755,root,root) %{_bindir}/makemime
633 %attr(755,root,root) %{_bindir}/mimegpg
634 %attr(755,root,root) %{_bindir}/reformime
635 %attr(755,root,root) %{_sbindir}/couriertcpd
636 %attr(755,root,root) %{_sbindir}/mkdhparams
637 %attr(755,root,root) %{_sbindir}/sharedindexinstall
638 %attr(755,root,root) %{_sbindir}/sharedindexsplit
639 %dir %{_libexecdir}/courier
640 %dir %{_datadir}/courier
641 %attr(755,root,root) %{_datadir}/courier/mkdhparams
642 %attr(755,daemon,daemon) %dir %{_sysconfdir}
643 %attr(750,daemon,daemon) %dir %{_certsdir}
644 %dir %{_docdir}/courier
645 %{_docdir}/courier/bg.png
646 %{_docdir}/courier/japanese_flag.png
647 %{_docdir}/courier/icon.gif
648 %{_docdir}/courier/manpage.css
649 %{_docdir}/courier/draft-varshavchik-*-smtpext.txt
650 %{_docdir}/courier/FAQ.html
651 %{_docdir}/courier/couriertcpd.html
652 %{_docdir}/courier/couriertls.html
653 %{_docdir}/courier/deliverquota.html
654 %{_docdir}/courier/documentation.html
655 %{_docdir}/courier/download.html
656 %{_docdir}/courier/index.html
657 %{_docdir}/courier/install.html
658 %{_docdir}/courier/layout.html
659 %{_docdir}/courier/links.html
660 %{_docdir}/courier/makedat.html
661 %{_docdir}/courier/makemime.html
662 %{_docdir}/courier/menu.html
663 %{_docdir}/courier/mimegpg.html
664 %{_docdir}/courier/mkdhparams.html
665 %{_docdir}/courier/modules.html
666 %{_docdir}/courier/reformime.html
667 %{_docdir}/courier/repo.html
668 %{_docdir}/courier/rpm.html
669 %{_docdir}/courier/socks.html
670 %{_docdir}/courier/status.html
671 %{_docdir}/courier/structures.html
672 %{_mandir}/man1/couriertcpd.1*
673 %{_mandir}/man1/couriertls.1*
674 %{_mandir}/man1/makemime.1*
675 %{_mandir}/man1/reformime.1*
676 %{_mandir}/man1/mimegpg.1*
677 %{_mandir}/man8/deliverquota.8*
678 %{_mandir}/man8/mkdhparams.8*
679
680 # MTA
681 %attr(6555,daemon,daemon) %{_bindir}/cancelmsg
682 %attr(755,root,root) %{_bindir}/courier-config
683 %attr(755,root,root) %{_bindir}/dotforward
684 %attr(2755,daemon,daemon) %{_bindir}/mailq
685 %attr(4755,root,root) %{_bindir}/rmail
686 %attr(755,root,root) %{_bindir}/testmxlookup
687 %attr(755,root,root) %{_sbindir}/aliaslookup
688 %attr(755,root,root) %{_sbindir}/courier
689 %attr(754,root,daemon) %{_sbindir}/makealiases
690 %attr(755,root,root) %{_sbindir}/makehosteddomains
691 %attr(755,root,root) %{_sbindir}/showconfig
692 %attr(754,root,daemon) %{_sbindir}/showmodules
693 %attr(4755,root,root) %{_sbindir}/sendmail
694 %attr(755,root,root) /usr/lib/sendmail
695 %attr(754,daemon,daemon) %{_libexecdir}/courier/aliascombine
696 %attr(754,daemon,daemon) %{_libexecdir}/courier/aliascreate
697 %attr(754,daemon,daemon) %{_libexecdir}/courier/aliasexp
698 %attr(754,daemon,daemon) %{_libexecdir}/courier/courierd
699 %attr(754,daemon,daemon) %{_libexecdir}/courier/submit
700 %attr(4554,daemon,daemon) %{_libexecdir}/courier/submitmkdir
701 %attr(755,root,root) %{_datadir}/courier/courierctl.start
702 %attr(754,root,daemon) %{_datadir}/courier/makealiases
703 %attr(755,root,root) %{_datadir}/courier/makehosteddomains
704 %attr(755,daemon,daemon) %dir %{_sysconfdir}/shared
705 %attr(755,daemon,daemon) %dir %{_sysconfdir}/shared.tmp
706 %attr(754,root,root) /etc/rc.d/init.d/courier
707 %attr(755,bin,bin) %dir %{_localstatedir}
708 %attr(755,daemon,daemon) %dir %{_localstatedir}/track
709 %{_docdir}/courier/aliases.html
710 %{_docdir}/courier/aliaslookup.html
711 %{_docdir}/courier/cancelmsg.html
712 %{_docdir}/courier/courier.html
713 %{_docdir}/courier/courierd.html
714 %{_docdir}/courier/dot-courier.html
715 %{_docdir}/courier/dot-forward.html
716 %{_docdir}/courier/mailq.html
717 %{_docdir}/courier/makealiases.html
718 %{_docdir}/courier/makehosteddomains.html
719 %{_docdir}/courier/queue.html
720 %{_docdir}/courier/sendmail.html
721 %{_docdir}/courier/submit.html
722 %{_docdir}/courier/testmxlookup.html
723 %{_mandir}/man1/cancelmsg.1*
724 %{_mandir}/man1/dot-forward.1*
725 %{_mandir}/man1/dotforward.1*
726 %{_mandir}/man1/mailq.1*
727 %{_mandir}/man1/rmail.1*
728 %{_mandir}/man1/sendmail.1*
729 %{_mandir}/man1/testmxlookup.1*
730 %{_mandir}/man5/dot-courier.5*
731 %{_mandir}/man7/localmailfilter.7*
732 %{_mandir}/man8/aliaslookup.8*
733 %{_mandir}/man8/courier.8*
734 %{_mandir}/man8/makealiases.8*
735 %{_mandir}/man8/makehosteddomains.8*
736 %{_mandir}/man8/submit.8*
737 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bofh
738 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/courierd
739 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/enablefiltering
740 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/locals
741 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/me
742 %attr(755,daemon,daemon) %dir %{_sysconfdir}/aliasdir
743 %attr(750,daemon,daemon) %dir %{_sysconfdir}/aliases
744 %attr(640,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/aliases/system
745 %attr(755,daemon,daemon) %dir %{_sysconfdir}/hosteddomains
746 %attr(755,daemon,daemon) %dir %{_sysconfdir}/smtpaccess
747 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/smtpaccess/default
748 %{_sysconfdir}/quotawarnmsg.example
749 %dir %{_datadir}/courier/courierwebadmin
750 %{_datadir}/courier/courierwebadmin/admin-15*
751
752 # LDAP configuration
753 %attr(744,daemon,daemon) %{_sbindir}/courierldapaliasd
754 %attr(640,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ldapaliasrc
755 %{_docdir}/courier/courierldapaliasd.html
756 %{_mandir}/man8/courierldapaliasd.8*
757
758 # filters
759 %attr(755,root,root) %{_bindir}/verifysmtp
760 %attr(754,root,daemon) %{_sbindir}/courierfilter
761 %attr(754,root,daemon) %{_sbindir}/filterctl
762 %attr(755,root,root) %{_libexecdir}/courier/courierfilter
763 %dir %{_libexecdir}/courier/filters
764 %attr(755,root,root) %{_libexecdir}/courier/filters/dupfilter
765 %attr(755,root,root) %{_libexecdir}/courier/filters/perlfilter
766 %attr(755,root,root) %{_libexecdir}/courier/filters/ratefilter
767 %attr(755,root,root) %{_libexecdir}/courier/filters/verifyfilter
768 %attr(754,root,daemon) %{_datadir}/courier/filterctl
769 %attr(755,root,root) %{_datadir}/courier/perlfilter-*.pl
770 %attr(755,root,root) %{_datadir}/courier/verifysender
771 %attr(755,root,root) %{_datadir}/courier/verifysenderfull
772 %attr(750,daemon,daemon) %dir %{_sysconfdir}/filters
773 %attr(750,daemon,daemon) %dir %{_sysconfdir}/filters/active
774 %attr(750,daemon,daemon) %dir %{_localstatedir}/allfilters
775 %attr(750,daemon,daemon) %dir %{_localstatedir}/filters
776 %attr(770,daemon,daemon) %dir %{_localstatedir}/tmp
777 %attr(750,daemon,daemon) %dir %{_localstatedir}/msgs
778 %attr(750,daemon,daemon) %dir %{_localstatedir}/msgq
779 %{_docdir}/courier/courierfilter.html
780 %{_docdir}/courier/courierperlfilter.html
781 %{_docdir}/courier/dupfilter.html
782 %{_docdir}/courier/ratefilter.html
783 %{_docdir}/courier/verifyfilter.html
784 %{_mandir}/man8/courierfilter.8*
785 %{_mandir}/man8/courierperlfilter.8*
786 %{_mandir}/man8/dupfilter.8*
787 %{_mandir}/man8/filterctl.8*
788 %{_mandir}/man8/ratefilter.8*
789 %{_mandir}/man8/verifyfilter.8*
790 %{_mandir}/man8/verifysmtp.8*
791
792 # module.dsn
793 %dir %{_libexecdir}/courier/modules/dsn
794 %attr(755,root,root) %{_libexecdir}/courier/modules/dsn/courierdsn
795 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/module.dsn
796 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsndelayed.txt
797 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsndelivered.txt
798 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnfailed.txt
799 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnrelayed.txt
800 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnfooter.txt
801 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnsubjectnotice.txt
802 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnsubjectwarn.txt
803 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnheader.txt
804 %{_docdir}/courier/courierdsn.html
805
806 # module.esmtp
807 %attr(755,root,root) %{_bindir}/addcr
808 %attr(755,root,root) %{_sbindir}/courieresmtpd
809 %attr(755,root,root) %{_sbindir}/esmtpd
810 %attr(755,root,root) %{_sbindir}/esmtpd-msa
811 %attr(755,root,root) %{_sbindir}/esmtpd-ssl
812 %attr(755,root,root) %{_sbindir}/makeacceptmailfor
813 %attr(755,root,root) %{_sbindir}/makepercentrelay
814 %attr(755,root,root) %{_sbindir}/makesmtpaccess
815 %attr(755,root,root) %{_sbindir}/makesmtpaccess-msa
816 %attr(755,root,root) %{_sbindir}/mkesmtpdcert
817 %dir %{_libexecdir}/courier/modules/esmtp
818 %attr(754,root,daemon) %{_libexecdir}/courier/modules/esmtp/courieresmtp
819 %attr(754,root,daemon) %{_libexecdir}/courier/modules/esmtp/courieresmtpd
820 %attr(755,root,root) %{_libexecdir}/courier/modules/esmtp/addcr
821 %attr(755,root,root) %{_datadir}/courier/esmtpd
822 %attr(755,root,root) %{_datadir}/courier/esmtpd-ssl
823 %attr(755,root,root) %{_datadir}/courier/makeacceptmailfor
824 %attr(755,root,root) %{_datadir}/courier/makepercentrelay
825 %attr(755,root,root) %{_datadir}/courier/makesmtpaccess
826 %attr(755,root,root) %{_datadir}/courier/mkesmtpdcert
827 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/esmtp
828 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/module.esmtp
829 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpd
830 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpd-msa
831 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpd-ssl
832 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpd.cnf
833 %attr(600,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpauthclient
834 %attr(755,daemon,daemon) %dir %{_sysconfdir}/esmtpacceptmailfor.dir
835 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpacceptmailfor.dir/default
836 %attr(755,daemon,daemon) %dir %{_sysconfdir}/esmtppercentrelay.dir
837 %{_docdir}/courier/esmtp.html
838 %{_docdir}/courier/esmtpd.html
839 %{_docdir}/courier/makeacceptmailfor.html
840 %{_docdir}/courier/makepercentrelay.html
841 %{_docdir}/courier/makesmtpaccess.html
842 %{_docdir}/courier/mkesmtpdcert.html
843 %{_mandir}/man8/esmtpd.8*
844 %{_mandir}/man8/esmtpd-msa.8*
845 %{_mandir}/man8/makeacceptmailfor.8*
846 %{_mandir}/man8/makepercentrelay.8*
847 %{_mandir}/man8/makesmtpaccess.8*
848 %{_mandir}/man8/makesmtpaccess-msa.8*
849 %{_mandir}/man8/mkesmtpdcert.8*
850
851 # module.local
852 %attr(755,root,root) %{_bindir}/preline
853 %dir %{_libexecdir}/courier/modules/local
854 %attr(755,root,root) %{_libexecdir}/courier/modules/local/courierdeliver
855 %attr(755,root,root) %{_libexecdir}/courier/modules/local/courierlocal
856 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/module.local
857 %{_docdir}/courier/local.html
858 %{_docdir}/courier/localmailfilter.html
859 %{_docdir}/courier/preline.html
860 %{_mandir}/man1/preline.1*
861
862 # module.uucp
863 %attr(755,root,root) %{_sbindir}/makeuucpneighbors
864 %dir %{_libexecdir}/courier/modules
865 %dir %{_libexecdir}/courier/modules/uucp
866 %attr(755,root,root) %{_libexecdir}/courier/modules/uucp/courieruucp
867 %attr(755,root,root) %{_datadir}/courier/makeuucpneighbors
868 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/module.uucp
869 %{_docdir}/courier/courieruucp.html
870 %{_mandir}/man8/courieruucp.8*
871 %{_mandir}/man8/makeuucpneighbors.8*
872
873 %files pop3d
874 %defattr(644,root,root,755)
875 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pop3d
876 %attr(600,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pop3d.cnf
877 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pop3d-ssl
878 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/pop3
879 %attr(755,root,root) %{_sbindir}/mkpop3dcert
880 %attr(755,root,root) %{_sbindir}/pop3d
881 %attr(755,root,root) %{_sbindir}/pop3d-ssl
882 %attr(755,root,root) %{_libexecdir}/courier/courierpop3d
883 %attr(755,root,root) %{_libexecdir}/courier/courierpop3login
884 %attr(755,root,root) %{_datadir}/courier/mkpop3dcert
885 %attr(755,root,root) %{_datadir}/courier/pop3d
886 %attr(755,root,root) %{_datadir}/courier/pop3d-ssl
887 %attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-45pop3.pl
888 %{_datadir}/courier/courierwebadmin/admin-45pop3.html
889 %{_docdir}/courier/courierpop3d.html
890 %{_docdir}/courier/mkpop3dcert.html
891 %{_docdir}/courier/pop3d.html
892 %{_mandir}/man8/courierpop3d.8*
893 %{_mandir}/man8/courierpop3login.8*
894 %{_mandir}/man8/mkpop3dcert.8*
895 %{_mandir}/man8/pop3d.8*
896 %{_mandir}/man8/pop3d-ssl.8*
897
898 %files imapd
899 %defattr(644,root,root,755)
900 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/imapd
901 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/imapd-ssl
902 %attr(600,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/imapd.cnf
903 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/imap
904 %attr(755,root,root) %{_bindir}/imapd
905 %attr(755,root,root) %{_sbindir}/imapd
906 %attr(755,root,root) %{_sbindir}/imapd-ssl
907 %attr(755,root,root) %{_sbindir}/makeimapaccess
908 %attr(755,root,root) %{_sbindir}/mkimapdcert
909 %attr(755,root,root) %{_libexecdir}/courier/imaplogin
910 %attr(755,root,root) %{_datadir}/courier/imapd
911 %attr(755,root,root) %{_datadir}/courier/imapd-ssl
912 %attr(755,root,root) %{_datadir}/courier/makeimapaccess
913 %attr(755,root,root) %{_datadir}/courier/mkimapdcert
914 %attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-40imap.pl
915 %{_datadir}/courier/courierwebadmin/admin-40imap.html
916 %{_docdir}/courier/imapd.html
917 %{_docdir}/courier/makeimapaccess.html
918 %{_docdir}/courier/mkimapdcert.html
919 %{_mandir}/man8/imapd.8*
920 %{_mandir}/man8/makeimapaccess.8*
921 %{_mandir}/man8/mkimapdcert.8*
922
923 %files webadmin
924 %defattr(644,root,root,755)
925 # suid root to cgi-bin??? and it's not secured by apache config!
926 %attr(4755,root,root) %{_cgibindir}/webadmin
927 %attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin
928 %attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin/added
929 %attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin/removed
930 %attr(400,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/webadmin/password
931 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/webadmin/unsecureok
932 %attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-main.pl
933 %attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-save.pl
934 %attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-cancel.pl
935 %attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-[0235]*.pl
936 %attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-10password.pl
937 %attr(755,root,root) %{_datadir}/courier/courierwebadmin/dumpenv.pl
938 %attr(755,root,root) %{_datadir}/courier/courierwebadmin/webadmin.pl
939 %{_datadir}/courier/courierwebadmin/admin-[0235]*.html
940 %{_datadir}/courier/courierwebadmin/admin-10password.html
941 %{_datadir}/courier/courierwebadmin/admin-main.html
942 %{_datadir}/courier/courierwebadmin/admin-save.html
943 %{_datadir}/courier/courierwebadmin/login.html
944 %{_datadir}/courier/courierwebadmin/notsupp.html
945 %{_datadir}/courier/courierwebadmin/unsecure.html
946 %{_datadir}/courier/courierwebadmin/webadmin.pm
947
948 %files webmail
949 %defattr(644,root,root,755)
950 %doc libs/gpglib/README.html
951 %attr(755,root,root) %{_cgibindir}/webmail
952 %attr(755,root,root) /etc/cron.hourly/courier-webmail-cleancache
953 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/webmail
954 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/calendar
955 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/calendarmode
956 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ldapaddressbook
957 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sqwebmaild
958 %attr(755,root,root) %{_sbindir}/webgpg
959 %attr(755,root,root) %{_sbindir}/webmaild
960 %attr(755,root,root) %{_libexecdir}/courier/pcpd
961 %attr(755,root,root) %{_libexecdir}/courier/sqwebmaild
962 %attr(755,root,root) %{_libexecdir}/courier/sqwebpasswd
963 %dir %{_datadir}/courier/sqwebmail
964 %dir %{_datadir}/courier/sqwebmail/html
965 %dir %{_datadir}/courier/sqwebmail/html/en-us
966 %{_datadir}/courier/sqwebmail/html/en
967 %{_datadir}/courier/sqwebmail/images
968 %config %{_datadir}/courier/sqwebmail/html/en-us/[CILT]*
969 %{_datadir}/courier/sqwebmail/html/en-us/*.html
970 %{_datadir}/courier/sqwebmail/html/en-us/*.txt
971 %attr(755,root,root) %{_datadir}/courier/sqwebmail/cleancache.pl
972 %attr(755,root,root) %{_datadir}/courier/sqwebmail/ldapsearch
973 %attr(755,root,root) %{_datadir}/courier/sqwebmail/sendit.sh
974 %attr(755,root,root) %{_datadir}/courier/sqwebmail/webgpg
975 %attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-47webmail.pl
976 %{_datadir}/courier/courierwebadmin/admin-47webmail.html
977 %attr(755,bin,daemon) %dir %{_localstatedir}/calendar
978 %attr(700,bin,daemon) %dir %{_localstatedir}/calendar/localcache
979 %attr(750,bin,daemon) %dir %{_localstatedir}/calendar/private
980 %attr(755,bin,daemon) %dir %{_localstatedir}/calendar/public
981 %attr(700,bin,bin) %dir %{_localstatedir}/webmail-logincache
982 %dir %attr(750,root,http) %{_webapps}/courier-webmail
983 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/courier-webmail/apache.conf
984 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/courier-webmail/httpd.conf
985 %{_docdir}/courier/pcp_README.html
986
987 %files webmlm
988 %defattr(644,root,root,755)
989 %attr(700,daemon,daemon) %{_sysconfdir}/webmlmrc
990 %attr(755,root,root) %{_bindir}/webmlmd
991 %attr(755,root,root) %{_bindir}/webmlmd.rc
992 %dir %{_libexecdir}/courier/webmail
993 %attr(755,root,root) %{_libexecdir}/courier/webmail/webmlm
994 %{_docdir}/courier/webmlmd.html
995 %{_mandir}/man1/webmlmd.1*
996
997 %files maildrop
998 %defattr(644,root,root,755)
999 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/maildrop
1000 %attr(755,root,root) %{_bindir}/lockmail
1001 %attr(755,root,root) %{_bindir}/mailbot
1002 %attr(4755,root,root) %{_bindir}/maildrop
1003 %attr(755,root,root) %{_bindir}/reformail
1004 %{_docdir}/courier/lockmail.html
1005 %{_docdir}/courier/mailbot.html
1006 %{_docdir}/courier/maildrop*.html
1007 %{_docdir}/courier/reformail.html
1008 %{_mandir}/man1/lockmail.1*
1009 %{_mandir}/man1/mailbot.1*
1010 %{_mandir}/man1/maildrop.1*
1011 %{_mandir}/man1/reformail.1*
1012 %{_mandir}/man7/maildropex.7*
1013 %{_mandir}/man7/maildropfilter.7*
1014 %{_mandir}/man7/maildropgdbm.7*
1015
1016 %files maildir-tools
1017 %defattr(644,root,root,755)
1018 %doc libs/maildir/README.*.html
1019 %attr(755,root,root) %{_bindir}/maildirmake
1020 %attr(755,root,root) %{_bindir}/maildirkw
1021 %attr(755,root,root) %{_bindir}/maildiracl
1022 %{_docdir}/courier/maildir*.html
1023 %{_mandir}/man1/maildirmake.1*
1024 %{_mandir}/man1/maildirkw.1*
1025 %{_mandir}/man1/maildiracl.1*
1026 %{_mandir}/man5/maildir.5*
1027 %{_mandir}/man7/maildirquota.7*
1028
1029 %files mlm
1030 %defattr(644,root,root,755)
1031 %attr(755,root,root) %{_bindir}/couriermlm
1032 %{_datadir}/courier/couriermlm
1033 %{_docdir}/courier/couriermlm.html
1034 %{_mandir}/man1/couriermlm.1*
1035
1036 %files fax
1037 %defattr(644,root,root,755)
1038 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/faxcoverpage.tr
1039 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/faxnotifyrc
1040 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/faxrc
1041 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/module.fax
1042 %dir %{_libexecdir}/courier/modules/fax
1043 %attr(755,root,root) %{_libexecdir}/courier/modules/fax/courierfax
1044 %dir %{_datadir}/courier/faxmail
1045 %{_datadir}/courier/faxmail/*.filter
1046 %{_datadir}/courier/faxmail/coverpage
1047 %{_datadir}/courier/faxmail/init
1048 %{_datadir}/courier/faxmail/new_fax
1049 %{_docdir}/courier/courierfax.html
1050 %{_mandir}/man8/courierfax.8*
This page took 0.119679 seconds and 4 git commands to generate.