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