]> git.pld-linux.org Git - packages/courier.git/blob - courier.spec
dfa1ec01727de5cd6be40803b069281ace2869b4
[packages/courier.git] / courier.spec
1 #
2 # Conditional build:
3 %bcond_with     fam             # with fam support
4 #
5 Summary:        Courier mail server
6 Summary(pl):    Serwer poczty Courier
7 Name:           courier
8 Version:        0.45.2
9 Release:        1
10 License:        GPL
11 Group:          Networking/Daemons
12 Source0:        http://dl.sourceforge.net/courier/%{name}-%{version}.tar.bz2
13 # Source0-md5:  6242d984744e1969db970ea798ecd564
14 Patch0:         %{name}-openssl-path.patch
15 Patch1:         %{name}-withoutfam.patch
16 Patch2:         %{name}-maildir.patch
17 Patch3:         %{name}-sendmail_dir.patch
18 Patch4:         %{name}-start_scripts.patch
19 URL:            http://www.courier-mta.org/
20 BuildRequires:  autoconf
21 BuildRequires:  automake
22 BuildRequires:  db-devel
23 BuildRequires:  expect
24 BuildRequires:  libstdc++-devel
25 BuildRequires:  libtool
26 BuildRequires:  mailcap
27 BuildRequires:  mysql-devel
28 BuildRequires:  openldap-devel
29 BuildRequires:  openssl-devel >= 0.9.7d
30 BuildRequires:  openssl-tools >= 0.9.7d
31 BuildRequires:  openssl-tools-perl >= 0.9.7d
32 BuildRequires:  pam-devel
33 BuildRequires:  perl-devel
34 BuildRequires:  postgresql-devel
35 BuildRequires:  sysconftool
36 BuildRequires:  zlib-devel
37 %{?with_fam:BuildRequires:      fam-devel}
38 Requires(post,preun):   /sbin/chkconfig
39 Requires(post): openssl-tools >= 0.9.7d
40 %{?with_fam:Requires:   fam}
41 Provides:       smtpdaemon
42 Obsoletes:      exim
43 Obsoletes:      masqmail
44 Obsoletes:      nullmailer
45 Obsoletes:      omta
46 Obsoletes:      qmail
47 Obsoletes:      sendmail
48 Obsoletes:      sendmail-cf
49 Obsoletes:      sendmail-doc
50 Obsoletes:      smail
51 Obsoletes:      smtpdaemon
52 Obsoletes:      ssmtp
53 Obsoletes:      zmailer
54 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55
56 %define         apachedir       /home/services/httpd
57 %define         _datadir        %{_prefix}/share/courier
58 %define         _mandir         /usr/share/man
59 %define         _libdir         %{_prefix}/%{_lib}/courier
60 %define         _libexecdir     %{_libdir}
61 %define         _localstatedir  /var/spool/courier
62 %define         _sysconfdir     /etc/courier
63 %define         initdir         /etc/rc.d/init.d
64
65 # Change the following if your DocumentRoot and cgibindir differ.  This is
66 # the default redhat build:
67
68 %define         _cgibindir              %{apachedir}/cgi-bin
69 %define         _documentrootdir        %{apachedir}/html
70 %define         _imageurl               /webmail/
71
72 %description
73 Courier is a fully functional mail server, that can completely take
74 over the mail services normally provided by sendmail, Qmail, or any
75 other mail server. Although Courier does not support all legacy
76 features of existing mail servers, the number of obsoleted functions
77 is very small, and there are better, and more robust, alternatives
78 available.
79
80 Courier implements many SMTP extensions: DSN, PIPELINING, 8BITMIME.
81 Courier also implements several new SMTP extensions for mailing list
82 management and spam filtering.
83
84 %description -l pl
85 Courier jest w pe³ni funkcjonalnym serwerem poczty, mo¿e ca³kowicie
86 zast±piæ us³ugi pocztowe dawane przez sendmail, Qmaila i inne serwery.
87 Wprawdzie Courier nie ma wszystkich mo¿liwo¶ci istniej±cych serwerów,
88 ilo¶æ nie obs³ugiwanych funkcji jesgt bardzo ma³a, i s± dostêpne
89 lepsze alternatywy.
90
91 Courier zawiera wiele rozszerzeñ SMTP: DSN, PIPELINING, 8BITMIME. Ma
92 tak¿e nowe rozszerzenia SMTP dla pocztowych list dyskusyjnych i
93 filtrowania spamu.
94
95 %package pop3d
96 Summary:        Courier Integrated POP3 server
97 Summary(pl):    Zintegrowany serwer POP3 do Couriera
98 Group:          Networking/Daemons
99 Requires:       %{name} = %{version}-%{release}
100 Requires(post): openssl-tools >= 0.9.7d
101
102 %description pop3d
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.
109
110 %description pop3d -l pl
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.
115
116 %package imapd
117 Summary:        Courier Integrated IMAP server
118 Summary(pl):    Zintegrowany serwer IMAP do Couriera
119 Group:          Networking/Daemons
120 Requires:       %{name} = %{version}-%{release}
121 Requires(post): openssl-tools >= 0.9.7d
122 Obsoletes:      courier-imap
123 Obsoletes:      courier-imap-common
124
125 %description imapd
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.
131
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
137 standalone version.
138
139 %description imapd -l pl
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 skrzynami Maildir, nie obs³uguje skrzynek w postaci
143 pojedynczych plików.
144
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.
149
150 %package webmail
151 Summary:        Courier Integrated HTTP (webmail) server
152 Summary(pl):    Zintegrowany serwer poczty przez HTTP (webmail) do Couriera
153 Group:          Networking/Daemons
154 Requires:       %{name} = %{version}-%{release}
155 Requires:       %{_cgibindir}
156 Requires:       %{_documentrootdir}
157
158 %description webmail
159 This package installs Courier mail server's integrated HTTP webmail
160 server. If you do not need the ability to access your mail using a web
161 browser, you do not need to install this package. Courier's webmail
162 server can only be used to download mail from maildir mailboxes. This
163 server does not support mailbox files.
164
165 This is the same server that's distributed separately under the name
166 of SqWebMail, however its configuration is customized for the Courier
167 mail server.
168
169 %description webmail -l pl
170 Ten pakiet zawiera zintegrowany serwer poczty przez HTTP (webmail) dla
171 Couriera, pozwalaj±cy na dostêp do poczty za pomoc± przegl±darki WWW.
172 Serwer webmail Couriera mo¿e byæ u¿ywany tylko ze skrzynkami Maildir,
173 nie obs³uguje skrzynek w postaci pojedynczych plików.
174
175 Jest to ten sam serwer, co dystrybuowany oddzielnie pod nazw±
176 SqWebMail, ale jego konfiguracja jest dostosowana do serwera Courier.
177
178 %package mlm
179 Summary:        Courier Integrated Mailing List Manager
180 Summary(pl):    Zintegrowany zarz±dca list dyskusyjnych do Couriera
181 Group:          Applications/Mail
182 Requires:       %{name} = %{version}-%{release}
183
184 %description mlm
185 This package installs couriermlm - a mailing list manager for the
186 Courier mail server. If you do not need the ability to manage mailing
187 lists, you do not need to install this package.
188
189 couriermlm is used to set up, maintain, and run a mailing list.
190 couriermlm automatically processes subscription and unsubscription
191 requests, and removes undeliverable addresses from the subscription
192 rolls. Mailing lists managed by couriermlm require zero human
193 administrative oversight. couriermlm supports digests, write-only
194 posting aliases, and moderated mailing lists.
195
196 %description mlm -l pl
197 Ten pakiet zawiera couriermlm - program do zarz±dzania listami
198 dyskusyjnymi dla Couriera. couriermlm jest u¿ywany do konfigurowania,
199 zarz±dzania i prowadzenia pocztowej listy dyskusyjnej. Automatycznie
200 obs³uguje ¿±dania zapisywania i wypisywania oraz usuwa z listy
201 niedzia³aj±ce adresy subskrybentów. Listy obs³ugiwane przez couriermlm
202 nie wymagaj± pracy administratora. couriermlm obs³uguje digesty,
203 aliasy pocztowe tylko do wysy³ania i listy moderowane.
204
205 %package maildrop
206 Summary:        Courier Integrated mail filter
207 Summary(pl):    Zintegrowany filtr poczty do Couriera
208 Group:          Applications/Mail
209 Requires:       %{name} = %{version}-%{release}
210
211 %description maildrop
212 This package installs Courier mail server's integrated mail filter.
213 You need to install this package if you want to be able to filter your
214 incoming mail.
215
216 %description maildrop -l pl
217 Ten pakiet zawiera zintegrowany filtr poczty dla Couriera. Jest
218 potrzebny do filtrowania przychodz±cej poczty.
219
220 %package smtpauth
221 Summary:        Courier mail server authenticated ESMTP module
222 Summary(pl):    Modu³ uwierzytelniania ESMTP (SMTP AUTH) do Couriera
223 Group:          Networking/Daemons
224 Requires:       %{name} = %{version}-%{release}
225
226 %description smtpauth
227 Authenticated ESMTP allows remote users to authenticate themselves and
228 be able to relay outbound mail through the Courier mail server.
229
230 %description smtpauth -l pl
231 SMTP AUTH pozwala zdalnym u¿ytkownikom na uwierzytelnianie i
232 umo¿liwienie przekazania wychodz±cej poczty poprzez serwer poczty
233 Courier.
234
235 %package authldap
236 Summary:        LDAP authentication daemon for Courier mail server
237 Summary(pl):    Demon autentykacji LDAP do Couriera
238 Group:          Networking/Daemons
239 PreReq:         %{name} = %{version}-%{release}
240
241 %description authldap
242 This package provides LDAP authentication for Courier.
243
244 %description authldap -l pl
245 Ten pakiet pozwala na korzystanie z autentykacji LDAP w Courierze.
246
247 %package authmysql
248 Summary:        MySQL authentication daemon for Courier mail server
249 Summary(pl):    Demon autentykacji MySQL do Couriera
250 Group:          Networking/Daemons
251 PreReq:         %{name} = %{version}-%{release}
252
253 %description authmysql
254 This package provides MySQL authentication for Courier.
255
256 %description authmysql -l pl
257 Ten pakiet pozwala na korzystanie z autentykacji MySQL w Courierze.
258
259 %package authpgsql
260 Summary:        PostgreSQL authentication daemon for Courier mail server
261 Summary(pl):    Demon autentykacji PostgreSQL do Couriera
262 Group:          Networking/Daemons
263 PreReq:         %{name} = %{version}-%{release}
264
265 %description authpgsql
266 This package provides PostgreSQL authentication for Courier.
267
268 %description authpgsql -l pl
269 Ten pakiet pozwala na korzystanie z autentykacji PostgreSQL w Courierze.
270
271 %prep
272 %setup -q
273 %patch0 -p1
274 %{!?with_fam:%patch1 -p1}
275 %patch2 -p1
276 %patch3 -p1
277 %patch4 -p1
278
279 %build
280 # we don't want fax module
281 rm -rf courier/module.fax
282 cp -f /usr/share/automake/config.sub webmail
283
284 cd rootcerts
285 %{__libtoolize}
286 %{__aclocal}
287 %{__autoconf}
288 %{__automake}
289 cd ..
290
291 cd authlib
292 %{__aclocal}
293 %{__autoconf}
294 %{__automake}
295 cd ..
296
297 %{__libtoolize}
298 %{__aclocal}
299 %{__autoconf}
300 %{__automake}
301
302 cd courier
303 %{__aclocal}
304 %{__autoconf}
305 ln -s ../ltmain.sh .
306 %{__automake}
307 cd ..
308
309 %configure \
310         --localstatedir=%{_localstatedir} \
311         --sysconfdir=%{_sysconfdir} \
312         --mandir=%{_mandir} \
313         --enable-imageurl=%{_imageurl} \
314         --with-db=db \
315         --with-mailer=%{_sbindir}/sendmail
316
317 %{__make}
318 %{__make} check
319
320 %install
321 rm -rf $RPM_BUILD_ROOT
322 umask 022
323 install -d -p $RPM_BUILD_ROOT{%{_prefix}/lib,/etc/{cron.hourly,pam.d},%{initdir}} \
324         $RPM_BUILD_ROOT{%{_cgibindir},%{_documentrootdir}} \
325         $RPM_BUILD_ROOT{%{_sysconfdir}/userdb,%{_localstatedir}{/calendar,/tmp/broken}} \
326         $RPM_BUILD_ROOT/etc/cron.hourly
327
328 %{__make} install \
329         DESTDIR=$RPM_BUILD_ROOT
330
331 # fix pam problem
332 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/*.authpam
333 for X in imap esmtp pop3 webmail calendar
334 do
335 cat > $RPM_BUILD_ROOT/etc/pam.d/$X <<EOF
336 #%PAM-1.0
337 auth    required        pam_unix.so shadow nullok
338 account required        pam_unix.so
339 session required        pam_unix.so
340 EOF
341 done
342
343 # delete dead links
344 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/dotforward.1 \
345 $RPM_BUILD_ROOT%{_mandir}/man1/rmail.1 \
346 $RPM_BUILD_ROOT%{_mandir}/man7/authcram.7 \
347 $RPM_BUILD_ROOT%{_mandir}/man7/authdaemon.7 \
348 $RPM_BUILD_ROOT%{_mandir}/man7/authdaemond.7 \
349 $RPM_BUILD_ROOT%{_mandir}/man7/authldap.7 \
350 $RPM_BUILD_ROOT%{_mandir}/man7/authmysql.7 \
351 $RPM_BUILD_ROOT%{_mandir}/man7/authpam.7 \
352 $RPM_BUILD_ROOT%{_mandir}/man7/authpwd.7 \
353 $RPM_BUILD_ROOT%{_mandir}/man7/authshadow.7 \
354 $RPM_BUILD_ROOT%{_mandir}/man7/authuserdb.7 \
355 $RPM_BUILD_ROOT%{_mandir}/man7/authvchkpw.7 \
356 $RPM_BUILD_ROOT%{_mandir}/man8/esmtpd-msa.8 \
357 $RPM_BUILD_ROOT%{_mandir}/man8/makesmtpaccess-msa.8 \
358 $RPM_BUILD_ROOT%{_mandir}/man8/filterctl.8 \
359 $RPM_BUILD_ROOT%{_mandir}/man8/makeuucpneighbors.8 \
360 $RPM_BUILD_ROOT%{_mandir}/man8/pw2userdb.8 \
361 $RPM_BUILD_ROOT%{_mandir}/man8/vchkpw2userdb.8 \
362 $RPM_BUILD_ROOT%{_mandir}/man8/courierpop3login.8
363
364 # make man links
365 echo '.so dot-forward.1' > $RPM_BUILD_ROOT%{_mandir}/man1/dotforward.1
366 echo '.so sendmail.1' > $RPM_BUILD_ROOT%{_mandir}/man1/rmail.1
367 echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authcram.7
368 echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authdaemon.7
369 echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authdaemond.7
370 echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authldap.7
371 echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authmysql.7
372 echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authpgsql.7
373 echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authpam.7
374 echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authpwd.7
375 echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authshadow.7
376 echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authuserdb.7
377 echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authvchkpw.7
378 echo '.so esmtpd.8' > $RPM_BUILD_ROOT%{_mandir}/man8/esmtpd-msa.8
379 echo '.so courierfilter.8' > $RPM_BUILD_ROOT%{_mandir}/man8/filterctl.8
380 echo '.so makesmtpaccess.8' > $RPM_BUILD_ROOT%{_mandir}/man8/makesmtpaccess-msa.8
381 echo '.so courieruucp.8' > $RPM_BUILD_ROOT%{_mandir}/man8/makeuucpneighbors.8
382 echo '.so makeuserdb.8' > $RPM_BUILD_ROOT%{_mandir}/man8/pw2userdb.8
383 echo '.so makeuserdb.8' > $RPM_BUILD_ROOT%{_mandir}/man8/vchkpw2userdb.8
384 echo '.so courierpop3d.8' > $RPM_BUILD_ROOT%{_mandir}/man8/courierpop3login.8
385
386 %{__make} install-perms
387
388 # Note that we delete all 'webmail's, but copy over only 'sqwebmail's.
389 # This removes all webmail-related stuff from the main filelist,
390 # and adds everything except the executable, webmail, to filelist.webmail.
391 # Here's why:
392
393 cp -f $RPM_BUILD_ROOT%{_libexecdir}/courier/webmail/webmail \
394         $RPM_BUILD_ROOT%{_cgibindir}/webmail
395
396 # And here's why we delete all images from filelist.webmail:
397 mv -f $RPM_BUILD_ROOT%{_datadir}/sqwebmail/images $RPM_BUILD_ROOT%{_documentrootdir}/webmail
398
399 # install a cron job to clean out webmail's cache
400 install webmail/cron.cmd $RPM_BUILD_ROOT/etc/cron.hourly/courier-webmail-cleancache
401
402 # Move .html documentation back to build dir, so that RPM will move it to
403 # the appropriate docdir
404
405 rm -rf htmldoc
406 mkdir htmldoc
407 mv -f $RPM_BUILD_ROOT%{_datadir}/htmldoc/* htmldoc
408 chmod a-w htmldoc/*
409
410 # Manually set POP3DSTART and IMAPDSTART to yes, they'll go into a separate
411 # package, so after it's installed they should be runnable.
412
413 sed 's/^POP3DSTART.*/POP3DSTART=YES/' <$RPM_BUILD_ROOT%{_sysconfdir}/pop3d.dist >$RPM_BUILD_ROOT%{_sysconfdir}/pop3d.new
414 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/pop3d.new $RPM_BUILD_ROOT%{_sysconfdir}/pop3d.dist
415
416 sed 's/^POP3DSSLSTART.*/POP3DSSLSTART=YES/' <$RPM_BUILD_ROOT%{_sysconfdir}/pop3d-ssl.dist >$RPM_BUILD_ROOT%{_sysconfdir}/pop3d-ssl.new
417 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/pop3d-ssl.new $RPM_BUILD_ROOT%{_sysconfdir}/pop3d-ssl.dist
418
419 sed 's/^IMAPDSTART.*/IMAPDSTART=YES/' <$RPM_BUILD_ROOT%{_sysconfdir}/imapd.dist >$RPM_BUILD_ROOT%{_sysconfdir}/imapd.new
420 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/imapd.new $RPM_BUILD_ROOT%{_sysconfdir}/imapd.dist
421
422 sed 's/^IMAPDSSLSTART.*/IMAPDSSLSTART=YES/' <$RPM_BUILD_ROOT%{_sysconfdir}/imapd-ssl.dist >$RPM_BUILD_ROOT%{_sysconfdir}/imapd.new-ssl
423 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/imapd.new-ssl $RPM_BUILD_ROOT%{_sysconfdir}/imapd-ssl.dist
424
425 # Want to have esmtpd running by default
426 sed 's/^ESMTPDSTART.*/ESMTPDSTART=YES/' <$RPM_BUILD_ROOT%{_sysconfdir}/esmtpd.dist >$RPM_BUILD_ROOT%{_sysconfdir}/esmtpd.new
427 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/esmtpd.new $RPM_BUILD_ROOT%{_sysconfdir}/esmtpd.dist
428
429 # run script from install-configure (make config files)
430 for confdist in `awk ' $5 == "config" && $1 ~ /\.dist$/ { print $1 }' <permissions.dat`
431 do /usr/bin/perl ././sysconftool $RPM_BUILD_ROOT$confdist
432 done
433
434 # make locals, esmtpacceptmailfor.dir/default
435 for X in locals esmtpacceptmailfor.dir/default
436 do
437 echo localhost >$RPM_BUILD_ROOT%{_sysconfdir}/$X
438 done
439
440 install courier.sysvinit $RPM_BUILD_ROOT%{initdir}/courier
441
442 #
443 # Red Hat /etc/profile.d scripts
444 #
445
446 install -d $RPM_BUILD_ROOT/etc/profile.d
447 cat >$RPM_BUILD_ROOT/etc/profile.d/courier.sh <<EOF
448 if echo "\$PATH" | tr ':' '\012' | fgrep -qx %{_bindir}
449 then
450         :
451 else
452         if test -w /etc
453         then
454                 PATH="%{_sbindir}:\$PATH"
455         fi
456         PATH="%{_bindir}:\$PATH"
457         export PATH
458 fi
459 EOF
460
461 cat >$RPM_BUILD_ROOT/etc/profile.d/courier.csh <<EOF
462
463 echo "\$PATH" | tr ':' '\012' | fgrep -qx %{_bindir}
464
465 if ( \$? ) then
466         true
467 else
468         test -w /etc
469         if ( \$? ) then
470         then
471                 setenv PATH "%{_sbindir}:\$PATH"
472         endif
473         setenv PATH "%{_bindir}:\$PATH"
474 endif
475 EOF
476
477 # sendmail soft links
478 ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT/usr/lib/sendmail
479
480 # fix rmail link
481 rm -f $RPM_BUILD_ROOT%{_bindir}/rmail
482 ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT%{_bindir}/rmail
483
484 # This link by default is missing
485 ln -sf %{_datadir}/esmtpd-ssl $RPM_BUILD_ROOT%{_sbindir}/esmtpd-ssl
486
487 # remove unpackaged files
488 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/*.dist
489 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/rfcerr*.txt
490 rm -rf $RPM_BUILD_ROOT%{_datadir}/faxmail
491
492 %clean
493 rm -rf $RPM_BUILD_ROOT
494
495 %post
496 if [ "$1" = "1" ]; then
497 /sbin/chkconfig --add courier
498
499 cat <<EOF
500
501 Now courier will refuse to accept SMTP messages except to localhost
502 add hosts to /etc/courier/esmtpacceptmailfor.dir/default
503 run makeacceptmailfor
504
505 Add hosts to /etc/courier/locals you want to accept mail for
506 run makealiases
507
508 Enter user, who should receive mail for root, mailer-daemon and postmaster
509 into /etc/courier/aliases/system
510
511 EOF
512 fi
513
514 if [ -e /var/lock/subsys/courier ]; then
515     %{initdir}/courier restart
516 else
517 echo
518 echo Type "%{initdir}/courier start" to start courier
519 echo
520 fi
521
522 %preun
523 if [ "$1" = "0" ]; then
524     if [ -e /var/lock/subsys/courier ]; then
525         %{initdir}/courier stop
526     fi
527         /sbin/chkconfig --del courier
528 fi
529
530 %post imapd
531 if [ -e %{_localstatedir}/tmp/imapd.pid ]; then
532     %{_sbindir}/imapd stop
533     %{_sbindir}/imapd start
534 fi
535 if [ -e %{_localstatedir}/tmp/imapd-ssl.pid ]; then
536     %{_sbindir}/imapd-ssl stop
537     %{_sbindir}/imapd-ssl start
538 fi
539
540 %preun imapd
541 if [ "$1" = "0" ]; then
542     if [ -e %{_localstatedir}/tmp/imapd.pid ]; then
543         %{_sbindir}/imapd stop
544     fi
545     if [ -e %{_localstatedir}/tmp/imapd-ssl.pid ]; then
546         %{_sbindir}/imapd-ssl stop
547     fi
548 fi
549
550 %post pop3d
551 if [ -e %{_localstatedir}/tmp/pop3d.pid ]; then
552     %{_sbindir}/pop3d stop
553     %{_sbindir}/pop3d start
554 fi
555 if [ -e %{_localstatedir}/tmp/pop3d-ssl.pid ]; then
556     %{_sbindir}/pop3d-ssl stop
557     %{_sbindir}/pop3d-ssl start
558 fi
559
560 %preun pop3d
561 if [ "$1" = "0" ]; then
562     if [ -e %{_localstatedir}/tmp/pop3d.pid ]; then
563         %{_sbindir}/pop3d stop
564     fi
565     if [ -e %{_localstatedir}/tmp/pop3d-ssl.pid ]; then
566         %{_sbindir}/pop3d-ssl stop
567     fi
568 fi
569
570 %post webmail
571 if ps -A |grep -q sqwebmaild; then
572     %{_libdir}/courier/sqwebmaild stop
573     %{_libdir}/courier/sqwebmaild start
574 else
575 echo
576 echo Type "%{_libdir}/courier/sqwebmaild start" to start webmail server
577 echo
578 fi
579
580 %preun webmail
581 if [ "$1" = "0" ]; then
582     if ps -A |grep -q sqwebmaild; then
583         %{_libdir}/courier/sqwebmaild stop
584     fi
585 fi
586
587 %post smtpauth
588 if [ -e %{_localstatedir}/tmp/esmtpd.pid ]; then
589     %{_sbindir}/esmtpd stop
590     %{_sbindir}/esmtpd start
591 fi
592 if [ -e %{_localstatedir}/tmp/esmtpd-ssl.pid ]; then
593     %{_sbindir}/esmtpd-ssl stop
594     %{_sbindir}/esmtpd-ssl start
595 fi
596
597 if [ "$1" = "1" ]; then
598 echo
599 echo Remember to enable auth in esmtp config files
600 echo
601 fi
602
603 %postun smtpauth
604 if [ "$1" = "0" ]; then
605     if [ -e %{_localstatedir}/tmp/esmtpd.pid ]; then
606         %{_sbindir}/esmtpd stop
607         %{_sbindir}/esmtpd start
608     fi
609     if [ -e %{_localstatedir}/tmp/esmtpd-ssl.pid ]; then
610         %{_sbindir}/esmtpd-ssl stop
611         %{_sbindir}/esmtpd-ssl start
612     fi
613 fi
614
615 %post authldap
616 if ps -A |grep -q authdaemond.lda; then
617         %{_libdir}/authlib/authdaemond stop
618         %{_libdir}/authlib/authdaemond start
619 fi
620
621 %postun authldap
622 if [ -x %{_libdir}/authlib/authdaemond ]; then
623         if ps -A |grep -q authdaemond.lda; then
624                 %{_libdir}/authlib/authdaemond stop;
625                 %{_libdir}/authlib/authdaemond start;
626         fi
627 fi
628
629 %post authmysql
630 if ps -A |grep -q authdaemond.mys; then
631         %{_libdir}/authlib/authdaemond stop
632         %{_libdir}/authlib/authdaemond start
633 fi
634
635 %postun authmysql
636 if [ -x %{_libdir}/authlib/authdaemond ]; then
637         if ps -A |grep -q authdaemond.mys; then
638                 %{_libdir}/authlib/authdaemond stop;
639                 %{_libdir}/authlib/authdaemond start;
640         fi
641 fi
642
643 %post authpgsql
644 if ps -A |grep -q authdaemond.pgs; then
645         %{_libdir}/authlib/authdaemond stop
646         %{_libdir}/authlib/authdaemond start
647 fi
648
649 %postun authpgsql
650 if [ -x %{_libdir}/authlib/authdaemond ]; then
651         if ps -A |grep -q authdaemond.pgs; then
652                 %{_libdir}/authlib/authdaemond stop;
653                 %{_libdir}/authlib/authdaemond start;
654         fi
655 fi
656
657 %files
658 %defattr(644,root,root,755)
659 %doc AUTHORS BENCHMARKS ChangeLog NEWS README TODO htmldoc/* maildir/README.*.html
660 %{_mandir}/man1/sendmail.1*
661 %{_mandir}/man1/preline.1*
662 %{_mandir}/man1/maildirmake.1*
663 %{_mandir}/man1/maildirkw.1*
664 %{_mandir}/man1/maildiracl.1*
665 %{_mandir}/man1/cancelmsg.1*
666 %{_mandir}/man1/lockmail.1*
667 %{_mandir}/man1/mailbot.1*
668 %{_mandir}/man1/makemime.1*
669 %{_mandir}/man1/mimegpg.1*
670 %{_mandir}/man1/makedat.1*
671 %{_mandir}/man1/testmxlookup.1*
672 %{_mandir}/man1/dot-forward.1*
673 %{_mandir}/man1/couriertls.1*
674 %{_mandir}/man1/mailq*
675 %{_mandir}/man1/couriertcpd*
676 %{_mandir}/man1/dotforward.1*
677 %{_mandir}/man1/rmail.1*
678 %{_mandir}/man5/dot-courier.5*
679 %{_mandir}/man5/maildir.5*
680 %{_mandir}/man7/localmailfilter.7*
681 %{_mandir}/man7/maildirquota.7*
682 %{_mandir}/man7/authlib.7*
683 %{_mandir}/man7/authcram.7*
684 %{_mandir}/man7/authdaemon.7*
685 %{_mandir}/man7/authdaemond.7*
686 %{_mandir}/man7/authpam.7*
687 %{_mandir}/man7/authpwd.7*
688 %{_mandir}/man7/authshadow.7*
689 %{_mandir}/man7/authuserdb.7*
690 %{_mandir}/man7/authvchkpw.7*
691 %{_mandir}/man8/courierfilter.8*
692 %{_mandir}/man8/courierperlfilter.8*
693 %{_mandir}/man8/dupfilter.8*
694 %{_mandir}/man8/courier.8*
695 %{_mandir}/man8/courierldapaliasd.8*
696 %{_mandir}/man8/deliverquota.8*
697 %{_mandir}/man8/esmtpd.8*
698 %{_mandir}/man8/makeacceptmailfor.8*
699 %{_mandir}/man8/makehosteddomains.8*
700 %{_mandir}/man8/mkesmtpdcert.8*
701 %{_mandir}/man8/makealiases.8*
702 %{_mandir}/man8/makepercentrelay.8*
703 %{_mandir}/man8/makesmtpaccess.8*
704 %{_mandir}/man8/makeuserdb.8*
705 %{_mandir}/man8/submit.8*
706 %{_mandir}/man8/userdb.8*
707 %{_mandir}/man8/userdbpw.8*
708 %{_mandir}/man8/courieruucp.8*
709 %{_mandir}/man8/esmtpd-msa.8*
710 %{_mandir}/man8/filterctl.8*
711 %{_mandir}/man8/makesmtpaccess-msa.8*
712 %{_mandir}/man8/makeuucpneighbors.8*
713 %{_mandir}/man8/pw2userdb.8*
714 %{_mandir}/man8/vchkpw2userdb.8*
715 %dir %{_sysconfdir}
716 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ldapaddressbook
717 %attr(755,daemon,daemon) %dir %{_sysconfdir}/aliasdir
718 %attr(750,daemon,daemon) %dir %{_sysconfdir}/aliases
719 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/enablefiltering
720 %attr(755,daemon,daemon) %dir %{_sysconfdir}/smtpaccess
721 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/smtpaccess/default
722 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/esmtpacceptmailfor.dir/default
723 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/locals
724 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/courierd
725 %attr(640,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/aliases/system
726 %attr(644,root,root) %{_sysconfdir}/quotawarnmsg.example
727 %dir %{_libdir}
728 %dir %{_libdir}/courier
729 %dir %{_datadir}
730 %{_datadir}/rootcerts
731 %attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin
732 %attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin/added
733 %attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin/removed
734 %attr(755,root,root) %dir %{_datadir}/courierwebadmin
735 %attr(755,root,root) %{_datadir}/courierwebadmin/webadmin.pl
736 %attr(755,root,root) %{_datadir}/courierwebadmin/dumpenv.pl
737 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-main.pl
738 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-save.pl
739 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-cancel.pl
740 %{_datadir}/courierwebadmin/login.html
741 %{_datadir}/courierwebadmin/admin-save.html
742 %{_datadir}/courierwebadmin/admin-main.html
743 %{_datadir}/courierwebadmin/unsecure.html
744 %dir %{_libdir}/filters
745 %attr(755,root,root) %{_libdir}/filters/*
746 %attr(755,root,root) %{_datadir}/perlfilter-*.pl
747 %dir %{_localstatedir}
748 %attr(770,daemon,daemon) %dir %{_localstatedir}/tmp
749 %attr(750,daemon,daemon) %dir %{_localstatedir}/msgs
750 %attr(750,daemon,daemon) %dir %{_localstatedir}/msgq
751 %attr(750,daemon,daemon) %dir %{_localstatedir}/filters
752 %attr(750,daemon,daemon) %dir %{_localstatedir}/allfilters
753 %attr(750,daemon,daemon) %dir %{_sysconfdir}/filters
754 %attr(750,daemon,daemon) %dir %{_sysconfdir}/filters/active
755 %attr(754,root,daemon) %{_datadir}/filterctl
756 %attr(754,root,daemon) %{_sbindir}/filterctl
757 %attr(754,root,daemon) %{_sbindir}/courierfilter
758 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-[01235]*.pl
759 %{_datadir}/courierwebadmin/admin-[01235]*.html
760 %{_datadir}/courierwebadmin/webadmin.pm
761 %{_datadir}/courierwebadmin/notsupp.html
762 %dir %{_libdir}/courier/modules
763 %dir %{_libdir}/courier/modules/uucp
764 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/module.uucp
765 %attr(755,root,root) %{_libdir}/courier/modules/uucp/courieruucp
766 %attr(755,root,root) %{_sbindir}/makeuucpneighbors
767 %attr(755,root,root) %{_datadir}/makeuucpneighbors
768 %dir %{_libdir}/courier/modules/local
769 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/module.local
770 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/authmodulelist
771 %attr(755,root,root) %{_libdir}/courier/modules/local/courierlocal
772 %attr(755,root,root) %{_libdir}/courier/modules/local/courierdeliver
773 %attr(755,root,root) %{_bindir}/preline
774 %dir %{_libdir}/courier/modules/esmtp
775 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/module.esmtp
776 %attr(750,root,daemon) %{_libdir}/courier/modules/esmtp/courieresmtp
777 %attr(750,root,daemon) %{_libdir}/courier/modules/esmtp/courieresmtpd
778 %attr(755,root,root) %{_libdir}/courier/modules/esmtp/addcr
779 %attr(755,root,root) %{_sbindir}/courieresmtpd
780 %attr(755,root,root) %{_bindir}/addcr
781 %attr(755,root,root) %{_sbindir}/esmtpd
782 %attr(755,root,root) %{_datadir}/esmtpd
783 %attr(755,root,root) %{_sbindir}/esmtpd-ssl
784 %attr(755,root,root) %{_datadir}/esmtpd-ssl
785 %attr(755,root,root) %{_sbindir}/makesmtpaccess
786 %attr(755,root,root) %{_datadir}/makesmtpaccess
787 %attr(755,root,root) %{_sbindir}/makeacceptmailfor
788 %attr(755,root,root) %{_datadir}/makeacceptmailfor
789 %attr(755,root,root) %{_sbindir}/makepercentrelay
790 %attr(755,root,root) %{_datadir}/makepercentrelay
791 %attr(755,root,root) %{_sbindir}/mkesmtpdcert
792 %attr(755,root,root) %{_datadir}/mkesmtpdcert
793 %attr(755,root,root) %{_sbindir}/esmtpd-msa
794 %attr(755,root,root) %{_sbindir}/makesmtpaccess-msa
795 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/esmtpd
796 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/esmtpd-msa
797 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/esmtpd-ssl
798 %attr(755,daemon,daemon) %dir %{_sysconfdir}/esmtpacceptmailfor.dir
799 %attr(755,daemon,daemon) %dir %{_sysconfdir}/esmtppercentrelay.dir
800 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/esmtpd.cnf
801 %attr(600,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/esmtpauthclient
802 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsndelayed.txt
803 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsndelivered.txt
804 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsnfailed.txt
805 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsnrelayed.txt
806 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsnfooter.txt
807 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsnsubjectnotice.txt
808 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsnsubjectwarn.txt
809 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsnheader.txt
810 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/module.dsn
811 %dir %{_libdir}/courier/modules/dsn
812 %attr(755,root,root) %{_libdir}/courier/modules/dsn/courierdsn
813 %{_libdir}/courier/modules/modules.ctl
814 %attr(4550,daemon,daemon) %{_libdir}/courier/submitmkdir
815 %attr(750,root,daemon) %{_libdir}/courier/courierd
816 %attr(750,root,daemon) %{_libdir}/courier/aliasexp
817 %attr(750,root,daemon) %{_libdir}/courier/aliascombine
818 %attr(750,root,daemon) %{_libdir}/courier/aliascreate
819 %attr(750,root,daemon) %{_libdir}/courier/submit
820 %attr(755,root,root) %{_libdir}/courier/makedatprog
821 %attr(755,root,root) %{_sbindir}/authenumerate
822 %attr(6555,daemon,daemon) %{_bindir}/cancelmsg
823 %attr(755,root,root) %{_sbindir}/courier
824 %attr(755,root,root) %{_datadir}/courierctl.start
825 %attr(755,root,root) %{_bindir}/couriertls
826 %attr(755,root,root) %{_sbindir}/couriertcpd
827 %attr(755,root,root) %{_sbindir}/courierlogger
828 %attr(755,root,root) %{_bindir}/courier-config
829 %attr(755,root,root) %{_bindir}/deliverquota
830 %attr(755,root,root) %{_bindir}/dotforward
831 %attr(755,root,root) %{_bindir}/lockmail
832 %attr(755,root,root) %{_bindir}/mailbot
833 %attr(755,root,root) %{_bindir}/maildirmake
834 %attr(755,root,root) %{_bindir}/maildirkw
835 %attr(755,root,root) %{_bindir}/maildiracl
836 %attr(2755,root,daemon) %{_bindir}/mailq
837 %attr(750,root,daemon) %{_datadir}/makealiases
838 %attr(750,root,daemon) %{_sbindir}/makealiases
839 %attr(755,root,root) %{_datadir}/makedat
840 %attr(755,root,root) %{_bindir}/makedat
841 %attr(755,root,root) %{_datadir}/makehosteddomains
842 %attr(755,root,root) %{_sbindir}/makehosteddomains
843 %attr(755,root,root) %{_bindir}/makemime
844 %attr(755,root,root) %{_datadir}/makeuserdb
845 %attr(755,root,root) %{_sbindir}/makeuserdb
846 %attr(755,root,root) %{_bindir}/mimegpg
847 %attr(755,root,root) %{_datadir}/pw2userdb
848 %attr(755,root,root) %{_sbindir}/pw2userdb
849 %attr(4755,root,root) %{_bindir}/rmail
850 %attr(755,root,root) %{_sbindir}/sharedindexinstall
851 %attr(755,root,root) %{_sbindir}/sharedindexsplit
852 %attr(755,root,root) %{_sbindir}/showconfig
853 %attr(750,root,daemon) %{_sbindir}/showmodules
854 %attr(4755,root,root) %{_sbindir}/sendmail
855 %attr(755,root,root) %{_bindir}/testmxlookup
856 %attr(755,root,root) %{_datadir}/userdb
857 %attr(755,root,root) %{_sbindir}/userdb
858 %attr(755,root,root) %{_sbindir}/userdbpw
859 %attr(755,root,root) %{_datadir}/vchkpw2userdb
860 %attr(755,root,root) %{_sbindir}/vchkpw2userdb
861 %attr(640,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ldapaliasrc
862 %attr(700,daemon,daemon) %{_sbindir}/courierldapaliasd
863 %attr(660,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/authdaemonrc
864 %dir %{_libdir}/authlib
865 %attr(755,root,root) %{_libdir}/authlib/authdaemon
866 %attr(755,root,root) %{_libdir}/authlib/authdaemond.plain
867 %attr(755,root,root) %{_libdir}/authlib/authdaemond
868 %attr(770,daemon,daemon) %dir %{_localstatedir}/authdaemon
869 %attr(755,root,root) %dir %{_libdir}/authlib/changepwd
870 %attr(4755,root,root) %{_libdir}/authlib/changepwd/authdaemon.passwd
871 %attr(755,root,root) %{_libdir}/authlib/changepwd/authsystem.passwd
872 %attr(755,root,root) %{_datadir}/authsystem.passwd
873 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/esmtp
874 %attr(755,root,root) /etc/profile.d/courier.sh
875 %attr(755,root,root) /etc/profile.d/courier.csh
876 %attr(754,root,root) /etc/rc.d/init.d/courier
877 %attr(700,daemon,daemon) %dir %{_sysconfdir}/userdb
878 %attr(755,daemon,daemon) %dir %{_localstatedir}/calendar
879 %attr(755,daemon,daemon) %dir %{_localstatedir}/tmp/broken
880 %attr(755,root,root) /usr/lib/sendmail
881
882 %files pop3d
883 %defattr(644,root,root,755)
884 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/pop3
885 %{_mandir}/man8/courierpop3d.8*
886 %{_mandir}/man8/courierpop3login.8*
887 %{_mandir}/man8/mkpop3dcert.8*
888 %{_mandir}/man8/pop3d.8*
889 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-45pop3.pl
890 %{_datadir}/courierwebadmin/admin-45pop3.html
891 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pop3d
892 %attr(600,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pop3d.cnf
893 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pop3d-ssl
894 %attr(755,root,root) %{_libdir}/courier/courierpop3d
895 %attr(755,root,root) %{_libdir}/courier/courierpop3login
896 %attr(755,root,root) %{_datadir}/mkpop3dcert
897 %attr(755,root,root) %{_sbindir}/mkpop3dcert
898 %attr(755,root,root) %{_datadir}/pop3d
899 %attr(755,root,root) %{_sbindir}/pop3d
900 %attr(755,root,root) %{_datadir}/pop3d-ssl
901 %attr(755,root,root) %{_sbindir}/pop3d-ssl
902
903 %files imapd
904 %defattr(644,root,root,755)
905 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/imap
906 %{_mandir}/man8/imapd.8*
907 %{_mandir}/man8/mkimapdcert.8*
908 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-40imap.pl
909 %attr(644,root,root) %{_datadir}/courierwebadmin/admin-40imap.html
910 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/imapd
911 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/imapd-ssl
912 %attr(600,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/imapd.cnf
913 %attr(755,root,root) %{_libdir}/courier/imaplogin
914 %attr(755,root,root) %{_sbindir}/imapd
915 %attr(755,root,root) %{_sbindir}/imapd-ssl
916 %attr(755,root,root) %{_datadir}/imapd
917 %attr(755,root,root) %{_datadir}/imapd-ssl
918 %attr(755,root,root) %{_bindir}/imapd
919 %attr(755,root,root) %{_datadir}/mkimapdcert
920 %attr(755,root,root) %{_sbindir}/mkimapdcert
921
922 %files webmail
923 %defattr(644,root,root,755)
924 %attr(4755,root,root) %{_cgibindir}/webmail
925 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/webmail
926 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/calendar
927 %{_documentrootdir}/webmail
928 %dir %{_datadir}/sqwebmail
929 %dir %{_datadir}/sqwebmail/html
930 %dir %{_datadir}/sqwebmail/html/en-us
931 %{_datadir}/sqwebmail/html/en
932 %config %{_datadir}/sqwebmail/html/en-us/[CILT]*
933 %{_datadir}/sqwebmail/html/en-us/*.html
934 %{_datadir}/sqwebmail/html/en-us/*.txt
935 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-4*.pl
936 %{_datadir}/courierwebadmin/admin-4*.html
937 %attr(755,root,root) %{_datadir}/sqwebmail/cleancache.pl
938 %attr(755,root,root) %{_datadir}/sqwebmail/ldapsearch
939 %attr(755,root,root) %{_datadir}/sqwebmail/sendit.sh
940 %attr(755,root,root) %{_datadir}/sqwebmail/webgpg
941 %attr(755,root,root) %{_sbindir}/webgpg
942 %dir %{_libdir}/courier/webmail
943 %attr(755,root,root) %{_libdir}/courier/pcpd
944 %attr(755,root,root) %{_libdir}/courier/sqwebmaild
945 %attr(755,root,root) %{_libdir}/courier/webmail/webadmin
946 %attr(755,root,root) %{_libdir}/courier/webmail/webmail
947 %attr(700, bin, bin) %dir %{_localstatedir}/webmail-logincache
948 %attr(755,root,root) /etc/cron.hourly/courier-webmail-cleancache
949
950 %files maildrop
951 %defattr(644,root,root,755)
952 %{_mandir}/man1/maildrop.1*
953 %{_mandir}/man1/refor*
954 %{_mandir}/man5/maildrop*
955 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/maildrop
956 %attr(4755,root,root) %{_bindir}/maildrop
957 %attr(755,root,root) %{_bindir}/reformail
958 %attr(755,root,root) %{_bindir}/reformime
959
960 %files mlm
961 %defattr(644,root,root,755)
962 %{_mandir}/man1/couriermlm.1*
963 %attr(755,root,root) %{_bindir}/couriermlm
964 %{_datadir}/couriermlm
965
966 %files smtpauth
967 %defattr(644,root,root,755)
968 %attr(4750,root,daemon) %{_libdir}/courier/modules/esmtp/authstart
969 %attr(755,root,root) %{_libdir}/courier/modules/esmtp/authend
970
971 %files authldap
972 %defattr(644,root,root,755)
973 %doc authlib/README.ldap
974 %attr(755,root,root) %{_libdir}/authlib/authdaemond.ldap
975 %attr(660,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/authldaprc
976 %{_mandir}/man7/authldap.7*
977
978 %files authmysql
979 %defattr(644,root,root,755)
980 %doc authlib/README.authmysql.html authlib/README.authmysql.myownquery
981 %attr(755,root,root) %{_libdir}/authlib/authdaemond.mysql
982 %attr(660,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/authmysqlrc
983 %{_mandir}/man7/authmysql.7*
984
985 %files authpgsql
986 %defattr(644,root,root,755)
987 %doc authlib/README.authpostgres.html
988 %attr(755,root,root) %{_libdir}/authlib/authdaemond.pgsql
989 %attr(660,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/authpgsqlrc
990 %{_mandir}/man7/authpgsql.7*
This page took 1.063425 seconds and 2 git commands to generate.