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