2 # - build fails due auto* macros on ac/th
3 # - doesn't -webadmin need webserver integration?
4 # - use rc-scripts in %%post scriptlets
6 # /usr/sbin/aliaslookup
7 # /usr/share/man/man8/aliaslookup.8.gz
10 %bcond_without fam # with fam support
11 %bcond_with tests # without tests
13 Summary: Courier mail server
14 Summary(pl.UTF-8): Serwer poczty Courier
19 Group: Networking/Daemons
20 Source0: http://dl.sourceforge.net/courier/%{name}-%{version}.tar.bz2
21 # Source0-md5: e75013df7deebd463656b81cc3e245f4
22 Patch0: %{name}-openssl-path.patch
23 Patch1: %{name}-withoutfam.patch
24 Patch2: %{name}-maildir.patch
25 Patch3: %{name}-sendmail_dir.patch
26 Patch4: %{name}-start_scripts.patch
27 Patch5: %{name}-certs.patch
28 Patch6: %{name}-db.patch
29 URL: http://www.courier-mta.org/
30 BuildRequires: autoconf
31 BuildRequires: automake
32 BuildRequires: courier-authlib-devel >= 0.57
34 %{?with_fam:BuildRequires: fam-devel}
35 BuildRequires: gettext-devel
36 BuildRequires: libstdc++-devel
37 BuildRequires: libtool
38 BuildRequires: mailcap
39 BuildRequires: openldap-devel >= 2.3.0
40 BuildRequires: openssl-devel >= 0.9.7d
41 BuildRequires: openssl-tools >= 0.9.7d
42 BuildRequires: openssl-tools-perl >= 0.9.7d
43 BuildRequires: pam-devel
44 BuildRequires: pcre-devel
45 BuildRequires: perl-devel
46 BuildRequires: rpmbuild(macros) >= 1.268
47 BuildRequires: sed >= 4.0
48 BuildRequires: sysconftool
49 Requires(post,preun): /sbin/chkconfig
51 Requires: perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION')
54 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56 %define _datadir %{_prefix}/share/courier
57 %define _libdir %{_prefix}/%{_lib}/%{name}
58 %define _libexecdir %{_libdir}
59 %define _localstatedir /var/spool/courier
60 %define _sysconfdir /etc/courier
61 %define _certsdir %{_sysconfdir}/certs
62 %define _initrddir /etc/rc.d/init.d
64 %define _webapps /etc/webapps
65 %define _cgibindir %{_prefix}/lib/cgi-bin
66 %define _imagedir %{_datadir}/sqwebmail/images
67 %define _imageurl /webmail
70 Courier is a fully functional mail server, that can completely take
71 over the mail services normally provided by sendmail, Qmail, or any
72 other mail server. Although Courier does not support all legacy
73 features of existing mail servers, the number of obsoleted functions
74 is very small, and there are better, and more robust, alternatives
77 Courier implements many SMTP extensions: DSN, PIPELINING, 8BITMIME.
78 Courier also implements several new SMTP extensions for mailing list
79 management and spam filtering.
81 %description -l pl.UTF-8
82 Courier jest w pełni funkcjonalnym serwerem poczty, może całkowicie
83 zastąpić usługi pocztowe dawane przez sendmail, Qmaila i inne serwery.
84 Wprawdzie Courier nie ma wszystkich możliwości istniejących serwerów,
85 ilość nie obsługiwanych funkcji jest bardzo mała, i są dostępne lepsze
88 Courier zawiera wiele rozszerzeń SMTP: DSN, PIPELINING, 8BITMIME. Ma
89 także nowe rozszerzenia SMTP dla pocztowych list dyskusyjnych i
93 Summary: Courier Integrated POP3 server
94 Summary(pl.UTF-8): Zintegrowany serwer POP3 do Couriera
95 Group: Networking/Daemons
96 Requires(post): openssl-tools >= 0.9.7d
97 Requires: %{name} = %{version}-%{release}
100 This package installs Courier mail server's integrated POP3 server,
101 which allows you to download mail from your mailbox using any POP3
102 client. Courier's POP3 server can only be used to download mail from
103 maildir mailboxes. This server does not support mailbox files. If you
104 do not need the ability to download your mail using a POP3 client, you
105 do not need to install this package.
107 %description pop3d -l pl.UTF-8
108 Ten pakiet zawiera zintegrowany serwer POP3 do Couriera, pozwalający
109 na ściąganie poczty ze skrzynki przy pomocy dowolnego klienta POP3.
110 Serwer POP3 Couriera może być używany tylko ze skrzynkami Maildir, nie
111 obsługuje skrzynek w postaci pojedynczych plików.
114 Summary: Courier Integrated IMAP server
115 Summary(pl.UTF-8): Zintegrowany serwer IMAP do Couriera
116 Group: Networking/Daemons
117 Requires(post): openssl-tools >= 0.9.7d
118 Requires: %{name} = %{version}-%{release}
119 Obsoletes: courier-imap
120 Obsoletes: courier-imap-common
123 This package installs Courier mail server's integrated IMAP server. If
124 you do not need the ability to download your mail using an IMAP mail
125 client, you do not need to install this package. Courier's IMAP server
126 can only be used to download mail from maildir mailboxes. This server
127 does not support mailbox files.
129 This package requires that Courier must be already installed, this is
130 NOT the standalone version of the Courier-IMAP server, and you cannot
131 install both this package, and the standalone version of Courier-IMAP.
132 If you have the standalone version of the Courier-IMAP server already
133 installed, installing this package will automatically remove the
136 %description imapd -l pl.UTF-8
137 Ten pakiet zawiera zintegrowany serwer IMAP do Couriera. Pozwala
138 ściągać pocztę przy pomocy klienta IMAP. Serwer IMAP Couriera może być
139 używany tylko ze skrzynkami Maildir, nie obsługuje skrzynek w postaci
142 Ten pakiet wymaga serwera Courier, to NIE jest samodzielna wersja
143 serwera Courier-IMAP. Nie można też instalować jednocześnie tego
144 pakietu i samodzielnej wersji Courier-IMAP. Zainstalowanie tego
145 pakietu automatycznie odinstaluje Courier-IMAP jeśli był zinstalowany.
148 Summary: Courier Integrated HTTP administraton panel
149 Summary(pl.UTF-8): Panel administracyjny przez HTTP dla Couriera
150 Group: Networking/Daemons
151 Requires: %{name} = %{version}-%{release}
152 Requires: filesystem >= 3.0-11
154 Requires: webserver = apache
155 Conflicts: apache-base < 2.2.0-8
156 Conflicts: apache1 < 1.3.34-5.11
158 %description webadmin
159 This is a web-based administration tool. Webadmin is a web CGI
162 %description webadmin -l pl.UTF-8
163 Webadmin jest narzędziem administracyjnym obsługiwanym przez WWW.
166 Summary: Courier Integrated HTTP (webmail) server
167 Summary(pl.UTF-8): Zintegrowany serwer poczty przez HTTP (webmail) do Couriera
168 Group: Networking/Daemons
169 Requires: %{name} = %{version}-%{release}
170 Requires: filesystem >= 3.0-11
172 Requires: webserver = apache
173 Conflicts: apache-base < 2.2.0-8
174 Conflicts: apache1 < 1.3.34-5.11
177 This package installs Courier mail server's integrated HTTP webmail
178 server. If you do not need the ability to access your mail using a web
179 browser, you do not need to install this package. Courier's webmail
180 server can only be used to download mail from maildir mailboxes. This
181 server does not support mailbox files.
183 This is the same server that's distributed separately under the name
184 of SqWebMail, however its configuration is customized for the Courier
187 %description webmail -l pl.UTF-8
188 Ten pakiet zawiera zintegrowany serwer poczty przez HTTP (webmail) dla
189 Couriera, pozwalający na dostęp do poczty za pomocą przeglądarki WWW.
190 Serwer webmail Couriera może być używany tylko ze skrzynkami Maildir,
191 nie obsługuje skrzynek w postaci pojedynczych plików.
193 Jest to ten sam serwer, co dystrybuowany oddzielnie pod nazwą
194 SqWebMail, ale jego konfiguracja jest dostosowana do serwera Courier.
196 %package maildir-tools
197 Summary: Tools for mail folders in Maildir format
198 Summary(pl.UTF-8): Narzędzia do zarządzania skrzynkami Maildir
199 Group: Applications/Mail
200 Requires: %{name} = %{version}-%{release}
202 %description maildir-tools
203 This package contains tools for mail folders in Maildir format.
205 %description maildir-tools -l pl.UTF-8
206 Ten pakiet zawiera narzędzia do zarządzania folderami w formacie
210 Summary: Courier Integrated Mailing List Manager
211 Summary(pl.UTF-8): Zintegrowany zarządca list dyskusyjnych do Couriera
212 Group: Applications/Mail
213 Requires: %{name} = %{version}-%{release}
216 This package installs couriermlm - a mailing list manager for the
217 Courier mail server. If you do not need the ability to manage mailing
218 lists, you do not need to install this package.
220 couriermlm is used to set up, maintain, and run a mailing list.
221 couriermlm automatically processes subscription and unsubscription
222 requests, and removes undeliverable addresses from the subscription
223 rolls. Mailing lists managed by couriermlm require zero human
224 administrative oversight. couriermlm supports digests, write-only
225 posting aliases, and moderated mailing lists.
227 %description mlm -l pl.UTF-8
228 Ten pakiet zawiera couriermlm - program do zarządzania listami
229 dyskusyjnymi dla Couriera. couriermlm jest używany do konfigurowania,
230 zarządzania i prowadzenia pocztowej listy dyskusyjnej. Automatycznie
231 obsługuje żądania zapisywania i wypisywania oraz usuwa z listy
232 niedziałające adresy subskrybentów. Listy obsługiwane przez couriermlm
233 nie wymagają pracy administratora. couriermlm obsługuje digesty,
234 aliasy pocztowe tylko do wysyłania i listy moderowane.
237 Summary: Courier Integrated mail filter
238 Summary(pl.UTF-8): Zintegrowany filtr poczty do Couriera
239 Group: Applications/Mail
240 Requires: %{name} = %{version}-%{release}
242 %description maildrop
243 This package installs Courier mail server's integrated mail filter.
244 You need to install this package if you want to be able to filter your
247 %description maildrop -l pl.UTF-8
248 Ten pakiet zawiera zintegrowany filtr poczty dla Couriera. Jest
249 potrzebny do filtrowania przychodzącej poczty.
254 %{!?with_fam:%patch1 -p1}
262 Alias /webmail %{_imagedir}
263 <Directory %{_imagedir}>
266 # FIXME: is allow from all the most safest way?
272 # we don't want fax module
273 rm -rf courier/module.fax
274 cp -f /usr/share/automake/config.sub webmail
276 # Change Makefile.am files and force recreate Makefile.in's.
278 find -type f -a \( -name configure.in -o -name configure.ac \) | while read FILE; do
279 cd "`dirname "$FILE"`"
281 if [ -f Makefile.am ]; then
282 sed -i -e '/_[L]DFLAGS=-static/d' Makefile.am
288 if grep -q AM_CONFIG_HEADER configure.in; then
297 --localstatedir=%{_localstatedir} \
298 --sysconfdir=%{_sysconfdir} \
299 --mandir=%{_mandir} \
300 --enable-imagedir=%{_imagedir} \
301 --enable-imageurl=%{_imageurl} \
302 --with-certsdir=%{_certsdir} \
304 --with-mailer=%{_sbindir}/sendmail \
305 --with-mailuser=daemon \
306 --with-mailgroup=daemon \
311 %{!?with_tests:%{__make} check}
314 rm -rf $RPM_BUILD_ROOT
316 install -d -p $RPM_BUILD_ROOT{/etc/{cron.hourly,pam.d},%{_initrddir}} \
317 $RPM_BUILD_ROOT{%{_prefix}/lib,%{_cgibindir},%{_webapps}/courier-webmail,%{_sysconfdir}/hosteddomains} \
318 $RPM_BUILD_ROOT{/etc/cron.hourly,%{_certsdir}}
321 DESTDIR=$RPM_BUILD_ROOT
324 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/*.authpam
325 for X in imap esmtp pop3 webmail calendar
327 cat > $RPM_BUILD_ROOT/etc/pam.d/$X <<'EOF'
329 auth required pam_unix.so shadow nullok
330 account required pam_unix.so
331 session required pam_unix.so
336 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/dotforward.1 \
337 $RPM_BUILD_ROOT%{_mandir}/man1/rmail.1 \
338 $RPM_BUILD_ROOT%{_mandir}/man8/esmtpd-msa.8 \
339 $RPM_BUILD_ROOT%{_mandir}/man8/makesmtpaccess-msa.8 \
340 $RPM_BUILD_ROOT%{_mandir}/man8/filterctl.8 \
341 $RPM_BUILD_ROOT%{_mandir}/man8/makeuucpneighbors.8 \
342 $RPM_BUILD_ROOT%{_mandir}/man8/courierpop3login.8
345 echo '.so dot-forward.1' > $RPM_BUILD_ROOT%{_mandir}/man1/dotforward.1
346 echo '.so sendmail.1' > $RPM_BUILD_ROOT%{_mandir}/man1/rmail.1
347 echo '.so esmtpd.8' > $RPM_BUILD_ROOT%{_mandir}/man8/esmtpd-msa.8
348 echo '.so courierfilter.8' > $RPM_BUILD_ROOT%{_mandir}/man8/filterctl.8
349 echo '.so makesmtpaccess.8' > $RPM_BUILD_ROOT%{_mandir}/man8/makesmtpaccess-msa.8
350 echo '.so courieruucp.8' > $RPM_BUILD_ROOT%{_mandir}/man8/makeuucpneighbors.8
351 echo '.so courierpop3d.8' > $RPM_BUILD_ROOT%{_mandir}/man8/courierpop3login.8
353 %{__make} install-perms
355 # Move webmail and webadmin to cgibindir
356 mv -f $RPM_BUILD_ROOT%{_libdir}/courier/webmail/webmail \
357 $RPM_BUILD_ROOT%{_cgibindir}/webmail
358 mv -f $RPM_BUILD_ROOT%{_libdir}/courier/webmail/webadmin \
359 $RPM_BUILD_ROOT%{_cgibindir}/webadmin
361 # install a cron job to clean out webmail's cache
362 install webmail/cron.cmd $RPM_BUILD_ROOT/etc/cron.hourly/courier-webmail-cleancache
364 # Move .html documentation back to build dir, so that RPM will move it to
365 # the appropriate docdir
369 mv -f $RPM_BUILD_ROOT%{_datadir}/htmldoc/* htmldoc
372 # Manually set POP3DSTART and IMAPDSTART to yes, they'll go into a separate
373 # package, so after it's installed they should be runnable.
375 sed -i 's/^POP3DSTART.*/POP3DSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/pop3d.dist
376 sed -i 's/^POP3DSSLSTART.*/POP3DSSLSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/pop3d-ssl.dist
377 sed -i 's/^IMAPDSTART.*/IMAPDSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/imapd.dist
378 sed -i 's/^IMAPDSSLSTART.*/IMAPDSSLSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/imapd-ssl.dist
380 # Want to have esmtpd running by default
381 sed -i 's/^ESMTPDSTART.*/ESMTPDSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/esmtpd.dist
383 # run script from install-configure (make config files)
384 for confdist in `awk ' $5 == "config" && $1 ~ /\.dist$/ { print $1 }' <permissions.dat`
385 do %{__perl} ././sysconftool $RPM_BUILD_ROOT$confdist
388 # make locals, esmtpacceptmailfor.dir/default
389 touch $RPM_BUILD_ROOT%{_sysconfdir}/esmtpacceptmailfor.dir/default
390 touch $RPM_BUILD_ROOT%{_sysconfdir}/locals
392 # file with important options
393 cat > $RPM_BUILD_ROOT%{_sysconfdir}/bofh <<EOF
394 # enable this option if you want to pass bad converted mails
395 # opt BOFHBADMIME=accept
398 # Make password and unsecureok (files for webadmin)
399 touch $RPM_BUILD_ROOT%{_sysconfdir}/webadmin/password
400 touch $RPM_BUILD_ROOT%{_sysconfdir}/webadmin/unsecureok
402 # create file me to put localdomain
403 touch $RPM_BUILD_ROOT%{_sysconfdir}/me
405 # create calendarmode
406 touch $RPM_BUILD_ROOT%{_sysconfdir}/calendarmode
408 install courier.sysvinit $RPM_BUILD_ROOT%{_initrddir}/courier
410 # sendmail soft links
411 ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT%{_prefix}/lib/sendmail
414 rm -f $RPM_BUILD_ROOT%{_bindir}/rmail
415 ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT%{_bindir}/rmail
417 # This link by default is missing
418 ln -sf %{_datadir}/esmtpd-ssl $RPM_BUILD_ROOT%{_sbindir}/esmtpd-ssl
421 install apache.conf $RPM_BUILD_ROOT%{_webapps}/courier-webmail/apache.conf
422 install apache.conf $RPM_BUILD_ROOT%{_webapps}/courier-webmail/httpd.conf
424 # remove unpackaged files
425 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/*.dist
426 rm -rf $RPM_BUILD_ROOT%{_datadir}/faxmail
427 rm -f $RPM_BUILD_ROOT%{_datadir}/courierwebadmin/*fax*
430 rm -rf $RPM_BUILD_ROOT
432 %triggerin -- courier < 0.45.5
434 echo Directory with certificates has changed to %{_certsdir}
438 if [ "$1" = "1" ]; then
439 [ -s %{_sysconfdir}/me ] || /bin/hostname -f > %{_sysconfdir}/me
440 %banner -e %{name} <<'EOF'
442 Now courier will refuse to accept SMTP messages except to localhost
443 add hosts to %{_sysconfdir}/esmtpacceptmailfor.dir/default
444 run makeacceptmailfor
446 Add hosts to %{_sysconfdir}/locals you want to accept mail for
449 Enter user, who should receive mail for root, mailer-daemon and postmaster
450 into %{_sysconfdir}/aliases/system
452 Default maildir is in ~/Mail/Maildir
457 /sbin/chkconfig --add courier
458 %service courier restart
461 if [ "$1" = "0" ]; then
462 %service courier stop
463 /sbin/chkconfig --del courier
467 # TODO: use rc-scripts here
468 if [ -e %{_localstatedir}/tmp/imapd.pid ]; then
469 %{_sbindir}/imapd stop
470 %{_sbindir}/imapd start
473 echo 'Type "%{_sbindir}/imapd start" to start imapd server'
476 if [ -e %{_localstatedir}/tmp/imapd-ssl.pid ]; then
477 %{_sbindir}/imapd-ssl stop
478 %{_sbindir}/imapd-ssl start
481 echo Type "%{_sbindir}/imapd-ssl start" to start imapd-ssl server
486 if [ "$1" = "0" ]; then
487 if [ -e %{_localstatedir}/tmp/imapd.pid ]; then
488 %{_sbindir}/imapd stop
490 if [ -e %{_localstatedir}/tmp/imapd-ssl.pid ]; then
491 %{_sbindir}/imapd-ssl stop
496 if [ -e %{_localstatedir}/tmp/pop3d.pid ]; then
497 %{_sbindir}/pop3d stop
498 %{_sbindir}/pop3d start
501 echo 'Type "%{_sbindir}/pop3d start" to start pop3d server'
504 if [ -e %{_localstatedir}/tmp/pop3d-ssl.pid ]; then
505 %{_sbindir}/pop3d-ssl stop
506 %{_sbindir}/pop3d-ssl start
509 echo 'Type "%{_sbindir}/pop3d-ssl start" to start pop3d-ssl server'
514 if [ "$1" = "0" ]; then
515 if [ -e %{_localstatedir}/tmp/pop3d.pid ]; then
516 %{_sbindir}/pop3d stop
518 if [ -e %{_localstatedir}/tmp/pop3d-ssl.pid ]; then
519 %{_sbindir}/pop3d-ssl stop
524 if [ "$1" = "1" ]; then
526 echo Remember to put your webadmin password to %{_sysconfdir}/webadmin/password
531 if [ "$1" = "1" ]; then
533 echo If you want to have calendar starting by default then
534 echo put word net to %{_sysconfdir}/calendarmode
537 if [ -e %{_localstatedir}/tmp/sqwebmaild.pid ]; then
538 %{_sbindir}/webmaild stop
539 %{_sbindir}/webmaild start
542 echo 'Type "%{_sbindir}/webmaild start" to start webmail server'
547 if [ "$1" = "0" ]; then
548 if [ -e %{_localstatedir}/tmp/sqwebmaild.pid ]; then
549 %{_sbindir}/webmaild stop
553 %triggerin webmail -- apache1 < 1.3.37-3, apache1-base
554 %webapp_register apache courier-webmail
556 %triggerun webmail -- apache1 < 1.3.37-3, apache1-base
557 %webapp_unregister apache courier-webmail
559 %triggerin webmail -- apache < 2.2.0, apache-base
560 %webapp_register httpd courier-webmail
562 %triggerun webmail -- apache < 2.2.0, apache-base
563 %webapp_unregister httpd courier-webmail
565 %triggerpostun webmail -- courier-webmail < 0.52.2-0.2
566 # migrate from apache-config macros
567 if [ -f /etc/courier/apache-courier.conf.rpmsave ]; then
568 if [ -d /etc/apache/webapps.d ]; then
569 cp -f %{_webapps}/courier-webmail/apache.conf{,.rpmnew}
570 cp -f /etc/courier/apache-courier.conf.rpmsave %{_webapps}/courier-webmail/apache.conf
573 if [ -d /etc/httpd/webapps.d ]; then
574 cp -f %{_webapps}/courier-webmail/httpd.conf{,.rpmnew}
575 cp -f /etc/courier/apache-courier.conf.rpmsave %{_webapps}/courier-webmail/httpd.conf
577 rm -f /etc/courier/apache-courier.conf.rpmsave
580 # migrating apache-config symlinks
581 if [ -L /etc/apache/conf.d/99_courier.conf ]; then
582 rm -f /etc/apache/conf.d/99_courier.conf
583 /usr/sbin/webapp register apache courier-webmail
584 %service -q apache reload
586 if [ -L /etc/httpd/httpd.conf/99_courier.conf ]; then
587 rm -f /etc/httpd/httpd.conf/99_courier.conf
588 /usr/sbin/webapp register httpd courier-webmail
589 %service -q httpd reload
593 %defattr(644,root,root,755)
594 %doc AUTHORS BENCHMARKS ChangeLog INSTALL NEWS README TODO htmldoc/[adehqstu]*
595 %doc htmldoc/courierperl* htmldoc/courier.html htmldoc/courier[fltu]*
596 %doc htmldoc/local* htmldoc/mailbot* htmldoc/mailq* htmldoc/make*
597 %doc htmldoc/mime* htmldoc/mkesmtpd* htmldoc/modules* htmldoc/preline*
598 %{_mandir}/man1/sendmail.1*
599 %{_mandir}/man1/preline.1*
600 %{_mandir}/man1/cancelmsg.1*
601 %{_mandir}/man1/lockmail.1*
602 %{_mandir}/man1/mailbot.1*
603 %{_mandir}/man1/makemime.1*
604 %{_mandir}/man1/mimegpg.1*
605 %{_mandir}/man1/makedat.1*
606 %{_mandir}/man1/testmxlookup.1*
607 %{_mandir}/man1/dot-forward.1*
608 %{_mandir}/man1/couriertls.1*
609 %{_mandir}/man1/mailq*
610 %{_mandir}/man1/couriertcpd*
611 %{_mandir}/man1/dotforward.1*
612 %{_mandir}/man1/rmail.1*
613 %{_mandir}/man5/dot-courier.5*
614 %{_mandir}/man7/localmailfilter.7*
615 %{_mandir}/man8/courierfilter.8*
616 %{_mandir}/man8/courierperlfilter.8*
617 %{_mandir}/man8/dupfilter.8*
618 %{_mandir}/man8/courier.8*
619 %{_mandir}/man8/courierldapaliasd.8*
620 %{_mandir}/man8/deliverquota.8*
621 %{_mandir}/man8/esmtpd.8*
622 %{_mandir}/man8/makeacceptmailfor.8*
623 %{_mandir}/man8/makehosteddomains.8*
624 %{_mandir}/man8/mkesmtpdcert.8*
625 %{_mandir}/man8/makealiases.8*
626 %{_mandir}/man8/makepercentrelay.8*
627 %{_mandir}/man8/makesmtpaccess.8*
628 %{_mandir}/man8/submit.8*
629 %{_mandir}/man8/courieruucp.8*
630 %{_mandir}/man8/esmtpd-msa.8*
631 %{_mandir}/man8/filterctl.8*
632 %{_mandir}/man8/makesmtpaccess-msa.8*
633 %{_mandir}/man8/makeuucpneighbors.8*
634 %attr(755,daemon,daemon) %dir %{_sysconfdir}
635 %attr(750,daemon,daemon) %dir %{_certsdir}
636 %attr(755,daemon,daemon) %dir %{_sysconfdir}/hosteddomains
637 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/me
638 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ldapaddressbook
639 %attr(755,daemon,daemon) %dir %{_sysconfdir}/aliasdir
640 %attr(750,daemon,daemon) %dir %{_sysconfdir}/aliases
641 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/enablefiltering
642 %attr(755,daemon,daemon) %dir %{_sysconfdir}/smtpaccess
643 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/smtpaccess/default
644 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpacceptmailfor.dir/default
645 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bofh
646 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/locals
647 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/courierd
648 %attr(640,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/aliases/system
649 %{_sysconfdir}/quotawarnmsg.example
651 %dir %{_libdir}/courier
653 %{_datadir}/rootcerts
654 %attr(755,root,root) %dir %{_datadir}/courierwebadmin
655 %{_datadir}/courierwebadmin/admin-15*
656 %dir %{_libdir}/filters
657 %attr(755,daemon,daemon) %{_libdir}/filters/*
658 %attr(755,daemon,daemon) %{_datadir}/perlfilter-*.pl
659 %attr(755,bin,bin) %dir %{_localstatedir}
660 %attr(770,daemon,daemon) %dir %{_localstatedir}/tmp
661 %attr(750,daemon,daemon) %dir %{_localstatedir}/msgs
662 %attr(750,daemon,daemon) %dir %{_localstatedir}/msgq
663 %attr(750,daemon,daemon) %dir %{_localstatedir}/filters
664 %attr(750,daemon,daemon) %dir %{_localstatedir}/allfilters
665 %attr(750,daemon,daemon) %dir %{_sysconfdir}/filters
666 %attr(750,daemon,daemon) %dir %{_sysconfdir}/filters/active
667 %attr(754,root,daemon) %{_datadir}/filterctl
668 %attr(754,root,daemon) %{_sbindir}/filterctl
669 %attr(754,root,daemon) %{_sbindir}/courierfilter
670 %dir %{_libdir}/courier/modules
671 %dir %{_libdir}/courier/modules/uucp
672 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/module.uucp
673 %attr(755,root,root) %{_libdir}/courier/modules/uucp/courieruucp
674 %attr(755,root,root) %{_sbindir}/makeuucpneighbors
675 %attr(755,root,root) %{_datadir}/makeuucpneighbors
676 %dir %{_libdir}/courier/modules/local
677 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/module.local
678 %attr(755,root,root) %{_libdir}/courier/modules/local/courierlocal
679 %attr(755,root,root) %{_libdir}/courier/modules/local/courierdeliver
680 %attr(755,root,root) %{_bindir}/preline
681 %dir %{_libdir}/courier/modules/esmtp
682 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/module.esmtp
683 %attr(750,root,daemon) %{_libdir}/courier/modules/esmtp/courieresmtp
684 %attr(750,root,daemon) %{_libdir}/courier/modules/esmtp/courieresmtpd
685 %attr(755,root,root) %{_libdir}/courier/modules/esmtp/addcr
686 %attr(755,root,root) %{_sbindir}/courieresmtpd
687 %attr(755,root,root) %{_bindir}/addcr
688 %attr(755,root,root) %{_sbindir}/esmtpd
689 %attr(755,root,root) %{_datadir}/esmtpd
690 %attr(755,root,root) %{_sbindir}/esmtpd-ssl
691 %attr(755,root,root) %{_datadir}/esmtpd-ssl
692 %attr(755,root,root) %{_sbindir}/makesmtpaccess
693 %attr(755,root,root) %{_datadir}/makesmtpaccess
694 %attr(755,root,root) %{_sbindir}/makeacceptmailfor
695 %attr(755,root,root) %{_datadir}/makeacceptmailfor
696 %attr(755,root,root) %{_sbindir}/makepercentrelay
697 %attr(755,root,root) %{_datadir}/makepercentrelay
698 %attr(755,root,root) %{_sbindir}/mkesmtpdcert
699 %attr(755,root,root) %{_datadir}/mkesmtpdcert
700 %attr(755,root,root) %{_sbindir}/esmtpd-msa
701 %attr(755,root,root) %{_sbindir}/makesmtpaccess-msa
702 %attr(755,root,root) %{_sbindir}/sharedindexinstall
703 %attr(755,root,root) %{_sbindir}/sharedindexsplit
704 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpd
705 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpd-msa
706 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpd-ssl
707 %attr(755,daemon,daemon) %dir %{_sysconfdir}/esmtpacceptmailfor.dir
708 %attr(755,daemon,daemon) %dir %{_sysconfdir}/esmtppercentrelay.dir
709 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpd.cnf
710 %attr(600,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpauthclient
711 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsndelayed.txt
712 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsndelivered.txt
713 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnfailed.txt
714 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnrelayed.txt
715 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnfooter.txt
716 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnsubjectnotice.txt
717 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnsubjectwarn.txt
718 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnheader.txt
719 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/module.dsn
720 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rfcerr*.txt
721 %dir %{_libdir}/courier/modules/dsn
722 %attr(755,root,root) %{_libdir}/courier/modules/dsn/courierdsn
723 %attr(4550,daemon,daemon) %{_libdir}/courier/submitmkdir
724 %attr(750,daemon,daemon) %{_libdir}/courier/courierd
725 %attr(750,daemon,daemon) %{_libdir}/courier/aliasexp
726 %attr(750,daemon,daemon) %{_libdir}/courier/aliascombine
727 %attr(750,daemon,daemon) %{_libdir}/courier/aliascreate
728 %attr(750,daemon,daemon) %{_libdir}/courier/submit
729 %attr(755,daemon,daemon) %{_libdir}/courier/makedatprog
730 %attr(6555,daemon,daemon) %{_bindir}/cancelmsg
731 %attr(755,root,root) %{_sbindir}/courier
732 %attr(755,root,root) %{_datadir}/courierctl.start
733 %attr(755,root,root) %{_bindir}/couriertls
734 %attr(755,root,root) %{_sbindir}/couriertcpd
735 %attr(755,root,root) %{_bindir}/courier-config
736 %attr(755,root,root) %{_bindir}/deliverquota
737 %attr(755,root,root) %{_bindir}/dotforward
738 %attr(755,root,root) %{_bindir}/lockmail
739 %attr(755,root,root) %{_bindir}/mailbot
740 %attr(2755,daemon,daemon) %{_bindir}/mailq
741 %attr(750,root,daemon) %{_datadir}/makealiases
742 %attr(750,root,daemon) %{_sbindir}/makealiases
743 %attr(755,root,root) %{_datadir}/makedat
744 %attr(755,root,root) %{_bindir}/makedat
745 %attr(755,root,root) %{_datadir}/makehosteddomains
746 %attr(755,root,root) %{_sbindir}/makehosteddomains
747 %attr(755,root,root) %{_bindir}/makemime
748 %attr(755,root,root) %{_bindir}/mimegpg
749 %attr(4755,root,root) %{_bindir}/rmail
750 %attr(755,root,root) %{_sbindir}/showconfig
751 %attr(750,root,daemon) %{_sbindir}/showmodules
752 %attr(4755,root,root) %{_sbindir}/sendmail
753 %attr(755,root,root) %{_bindir}/testmxlookup
754 %attr(640,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ldapaliasrc
755 %attr(700,daemon,daemon) %{_sbindir}/courierldapaliasd
756 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/esmtp
757 %attr(754,root,root) /etc/rc.d/init.d/courier
758 %attr(755,daemon,daemon) %dir %{_sysconfdir}/shared
759 %attr(755,daemon,daemon) %dir %{_sysconfdir}/shared.tmp
760 %attr(755,daemon,daemon) %dir %{_localstatedir}/track
761 %attr(755,root,root) %{_prefix}/lib/sendmail
764 %defattr(644,root,root,755)
766 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/pop3
767 %{_mandir}/man8/courierpop3d.8*
768 %{_mandir}/man8/courierpop3login.8*
769 %{_mandir}/man8/mkpop3dcert.8*
770 %{_mandir}/man8/pop3d.8*
771 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-45pop3.pl
772 %{_datadir}/courierwebadmin/admin-45pop3.html
773 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pop3d
774 %attr(600,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pop3d.cnf
775 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pop3d-ssl
776 %attr(755,root,root) %{_libdir}/courier/courierpop3d
777 %attr(755,root,root) %{_libdir}/courier/courierpop3login
778 %attr(755,root,root) %{_datadir}/mkpop3dcert
779 %attr(755,root,root) %{_sbindir}/mkpop3dcert
780 %attr(755,root,root) %{_datadir}/pop3d
781 %attr(755,root,root) %{_sbindir}/pop3d
782 %attr(755,root,root) %{_datadir}/pop3d-ssl
783 %attr(755,root,root) %{_sbindir}/pop3d-ssl
786 %defattr(644,root,root,755)
788 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/imap
789 %{_mandir}/man8/imapd.8*
790 %{_mandir}/man8/mkimapdcert.8*
791 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-40imap.pl
792 %{_datadir}/courierwebadmin/admin-40imap.html
793 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/imapd
794 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/imapd-ssl
795 %attr(600,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/imapd.cnf
796 %attr(755,root,root) %{_libdir}/courier/imaplogin
797 %attr(755,root,root) %{_sbindir}/imapd
798 %attr(755,root,root) %{_sbindir}/imapd-ssl
799 %attr(755,root,root) %{_datadir}/imapd
800 %attr(755,root,root) %{_datadir}/imapd-ssl
801 %attr(755,root,root) %{_bindir}/imapd
802 %attr(755,root,root) %{_datadir}/mkimapdcert
803 %attr(755,root,root) %{_sbindir}/mkimapdcert
806 %defattr(644,root,root,755)
807 # suid root to cgi-bin??? and it's not secured by apache config!
808 %attr(4755,root,root) %{_cgibindir}/webadmin
809 %attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin
810 %attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin/added
811 %attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin/removed
812 %attr(400,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/webadmin/password
813 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/webadmin/unsecureok
814 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-main.pl
815 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-save.pl
816 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-cancel.pl
817 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-[0235]*.pl
818 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-10password.pl
819 %attr(755,root,root) %{_datadir}/courierwebadmin/dumpenv.pl
820 %attr(755,root,root) %{_datadir}/courierwebadmin/webadmin.pl
821 %{_datadir}/courierwebadmin/admin-[0235]*.html
822 %{_datadir}/courierwebadmin/admin-10password.html
823 %{_datadir}/courierwebadmin/admin-main.html
824 %{_datadir}/courierwebadmin/admin-save.html
825 %{_datadir}/courierwebadmin/login.html
826 %{_datadir}/courierwebadmin/notsupp.html
827 %{_datadir}/courierwebadmin/unsecure.html
828 %{_datadir}/courierwebadmin/webadmin.pm
831 %defattr(644,root,root,755)
832 %doc htmldoc/pcp* gpglib/README.html
833 %attr(755,root,root) %{_cgibindir}/webmail
834 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/webmail
835 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/calendar
836 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sqwebmaild
837 %attr(755,root,root) %{_sbindir}/webmaild
838 %dir %{_datadir}/sqwebmail
839 %dir %{_datadir}/sqwebmail/html
840 %dir %{_datadir}/sqwebmail/html/en-us
841 %{_datadir}/sqwebmail/html/en
842 %{_datadir}/sqwebmail/images
843 %config %{_datadir}/sqwebmail/html/en-us/[CILT]*
844 %{_datadir}/sqwebmail/html/en-us/*.html
845 %{_datadir}/sqwebmail/html/en-us/*.txt
846 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-47webmail.pl
847 %{_datadir}/courierwebadmin/admin-47webmail.html
848 %attr(755,root,root) %{_datadir}/sqwebmail/cleancache.pl
849 %attr(755,root,root) %{_datadir}/sqwebmail/ldapsearch
850 %attr(755,root,root) %{_datadir}/sqwebmail/sendit.sh
851 %attr(755,root,root) %{_datadir}/sqwebmail/webgpg
852 %attr(755,root,root) %{_sbindir}/webgpg
853 %attr(755,root,root) %{_libdir}/courier/pcpd
854 %attr(755,root,root) %{_libdir}/courier/sqwebmaild
855 %attr(755,root,root) %{_libdir}/courier/sqwebpasswd
856 %attr(700, bin, bin) %dir %{_localstatedir}/webmail-logincache
857 %attr(755,root,root) /etc/cron.hourly/courier-webmail-cleancache
858 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/calendarmode
859 %attr(755,bin,daemon) %dir %{_localstatedir}/calendar
860 %attr(700,bin,daemon) %dir %{_localstatedir}/calendar/localcache
861 %attr(750,bin,daemon) %dir %{_localstatedir}/calendar/private
862 %attr(755,bin,daemon) %dir %{_localstatedir}/calendar/public
863 %dir %attr(750,root,http) %{_webapps}/courier-webmail
864 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/courier-webmail/apache.conf
865 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/courier-webmail/httpd.conf
868 %defattr(644,root,root,755)
869 %doc htmldoc/r* htmldoc/maildrop* htmldoc/lockmail*
870 %{_mandir}/man1/maildrop.1*
871 %{_mandir}/man1/refor*
872 %{_mandir}/man7/maildrop*
873 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/maildrop
874 %attr(4755,root,root) %{_bindir}/maildrop
875 %attr(755,root,root) %{_bindir}/reformail
876 %attr(755,root,root) %{_bindir}/reformime
879 %defattr(644,root,root,755)
880 %doc maildir/README.*.html htmldoc/maildir*
881 %{_mandir}/man1/maildirmake.1*
882 %{_mandir}/man1/maildirkw.1*
883 %{_mandir}/man1/maildiracl.1*
884 %{_mandir}/man5/maildir.5*
885 %{_mandir}/man7/maildirquota.7*
886 %attr(755,root,root) %{_bindir}/maildirmake
887 %attr(755,root,root) %{_bindir}/maildirkw
888 %attr(755,root,root) %{_bindir}/maildiracl
891 %defattr(644,root,root,755)
892 %doc htmldoc/couriermlm.html
893 %{_mandir}/man1/couriermlm.1*
894 %attr(755,root,root) %{_bindir}/couriermlm
895 %{_datadir}/couriermlm