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