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