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