]> git.pld-linux.org Git - packages/courier.git/blame - courier.spec
perl 5.38.0 rebuild
[packages/courier.git] / courier.spec
CommitLineData
485ac86d 1# TODO
6c3bd8da 2# - doesn't -webadmin need webserver integration?
95006427 3# - use rc-scripts in %%post scriptlets
7859d47c 4# - init.d script, pre and post for webmlm?
285ed68b
AA
5#
6# Conditional build:
a6245dc6 7%bcond_without fam # with fam support
401b2552
JB
8%bcond_with gnutls # GnuTLS instead of OpenSSL
9%bcond_with socks # (Courier) Socks support
c7adf967 10%bcond_with tests # without tests
285ed68b 11#
f65a4ca3 12Summary: Courier mail server
5537b050 13Summary(pl.UTF-8): Serwer poczty Courier
ac45207a 14Name: courier
f3928986 15Version: 1.2.2
f52d4366 16Release: 2
9754ea44 17License: GPL v3 with OpenSSL exception
1fdfbbe1 18Group: Networking/Daemons
ed681050 19Source0: https://downloads.sourceforge.net/courier/%{name}-%{version}.tar.bz2
f3928986 20# Source0-md5: 4f27683022efc180a8a46cdbca99d3b9
285ed68b 21Patch1: %{name}-withoutfam.patch
0dae501c 22Patch2: %{name}-maildir.patch
7b162996
AA
23Patch3: %{name}-sendmail_dir.patch
24Patch4: %{name}-start_scripts.patch
27221f8a 25Patch5: %{name}-certs.patch
9754ea44 26Patch6: %{name}-filterbindir.patch
f65a4ca3 27URL: http://www.courier-mta.org/
9754ea44 28BuildRequires: autoconf >= 2.59
77b70afa 29BuildRequires: automake
ed681050 30BuildRequires: courier-authlib-devel >= 0.71
401b2552 31%{?with_socks:BuildRequires: courier-sox-devel}
6d61614b 32BuildRequires: courier-unicode-devel >= 2.1
401b2552 33BuildRequires: db-devel
1fdfbbe1 34BuildRequires: expect
485ac86d 35%{?with_fam:BuildRequires: fam-devel}
dc4f5410 36BuildRequires: gettext-tools
401b2552 37# or gnupg2 when --with-gpg2
b325c6a1 38BuildRequires: gnupg
401b2552
JB
39%{?with_gnutls:BuildRequires: gnutls-devel >= 3.0}
40%{?with_gnutls:BuildRequires: libgcrypt-devel}
41%{?with_gnutls:BuildRequires: libgpg-error-devel}
f3928986 42BuildRequires: libidn2-devel >= 0.0.0
401b2552 43BuildRequires: libstdc++-devel >= 6:4.7
f3928986 44BuildRequires: libtool >= 2:2
932156cb 45BuildRequires: mailcap
b2511bb8 46BuildRequires: openldap-devel >= 2.3.0
401b2552 47%{!?with_gnutls:BuildRequires: openssl-devel >= 0.9.7d}
cb2ac501 48BuildRequires: openssl-tools >= 0.9.7d
debd9b9c 49BuildRequires: pam-devel
ed681050 50BuildRequires: pcre2-8-devel
401b2552 51BuildRequires: perl-devel >= 5
b325c6a1 52BuildRequires: pkgconfig
6c3bd8da 53BuildRequires: rpmbuild(macros) >= 1.268
27221f8a 54BuildRequires: sed >= 4.0
77b70afa 55BuildRequires: sysconftool
36277a4b 56Requires(post,preun): /sbin/chkconfig
401b2552
JB
57# even if using OpenSSL libraries, Courier uses certtool from GnuTLS
58Requires: /usr/bin/certtool
ed681050 59Requires: courier-authlib >= 0.71
c7f61e7e 60Requires: courier-unicode >= 2.1
95006427 61Requires: rc-scripts
ac45207a 62Provides: smtpdaemon
a0621e90 63Obsoletes: smtpdaemon
6d61614b 64Conflicts: cone < 1
36277a4b 65BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
c5ebe9bf 66
f65a4ca3
JB
67%define _localstatedir /var/spool/courier
68%define _sysconfdir /etc/courier
c5520896 69%define _certsdir %{_sysconfdir}/certs
c5ebe9bf 70
6c3bd8da 71%define _webapps /etc/webapps
3b267ecc 72%define _cgibindir /usr/lib/cgi-bin
9754ea44 73%define _imagedir %{_datadir}/courier/sqwebmail/images
33c18667 74%define _imageurl /webmail
c5ebe9bf 75
c5ebe9bf 76%description
77Courier is a fully functional mail server, that can completely take
78over the mail services normally provided by sendmail, Qmail, or any
9e755595 79other mail server. Although Courier does not support all legacy
c5ebe9bf 80features of existing mail servers, the number of obsoleted functions
81is very small, and there are better, and more robust, alternatives
82available.
83
84Courier implements many SMTP extensions: DSN, PIPELINING, 8BITMIME.
85Courier also implements several new SMTP extensions for mailing list
86management and spam filtering.
87
33db9f72
JR
88%description -l pl.UTF-8
89Courier jest w pełni funkcjonalnym serwerem poczty, może całkowicie
90zastąpić usługi pocztowe dawane przez sendmail, Qmaila i inne serwery.
91Wprawdzie Courier nie ma wszystkich możliwości istniejących serwerów,
92ilość nie obsługiwanych funkcji jest bardzo mała, i są dostępne lepsze
6f4c39d4 93alternatywy.
f65a4ca3 94
33db9f72
JR
95Courier zawiera wiele rozszerzeń SMTP: DSN, PIPELINING, 8BITMIME. Ma
96także nowe rozszerzenia SMTP dla pocztowych list dyskusyjnych i
f65a4ca3
JB
97filtrowania spamu.
98
f65a4ca3
JB
99%package pop3d
100Summary: Courier Integrated POP3 server
5537b050 101Summary(pl.UTF-8): Zintegrowany serwer POP3 do Couriera
1bdc4e6f 102Group: Networking/Daemons/POP3
3b73318a 103Requires(post): openssl-tools >= 0.9.7d
485ac86d 104Requires: %{name} = %{version}-%{release}
732bab98
TP
105Provides: pop3daemon
106Obsoletes: pop3daemon
f65a4ca3 107
c5ebe9bf 108%description pop3d
109This package installs Courier mail server's integrated POP3 server,
110which allows you to download mail from your mailbox using any POP3
9e755595
JB
111client. Courier's POP3 server can only be used to download mail from
112maildir mailboxes. This server does not support mailbox files. If you
113do not need the ability to download your mail using a POP3 client, you
114do not need to install this package.
c5ebe9bf 115
33db9f72
JR
116%description pop3d -l pl.UTF-8
117Ten pakiet zawiera zintegrowany serwer POP3 do Couriera, pozwalający
118na ściąganie poczty ze skrzynki przy pomocy dowolnego klienta POP3.
119Serwer POP3 Couriera może być używany tylko ze skrzynkami Maildir, nie
120obsługuje skrzynek w postaci pojedynczych plików.
f65a4ca3
JB
121
122%package imapd
123Summary: Courier Integrated IMAP server
5537b050 124Summary(pl.UTF-8): Zintegrowany serwer IMAP do Couriera
1fdfbbe1 125Group: Networking/Daemons
3b73318a 126Requires(post): openssl-tools >= 0.9.7d
485ac86d 127Requires: %{name} = %{version}-%{release}
f65a4ca3
JB
128Obsoletes: courier-imap
129Obsoletes: courier-imap-common
130
c5ebe9bf 131%description imapd
9e755595
JB
132This package installs Courier mail server's integrated IMAP server. If
133you do not need the ability to download your mail using an IMAP mail
134client, you do not need to install this package. Courier's IMAP server
135can only be used to download mail from maildir mailboxes. This server
136does not support mailbox files.
137
138This package requires that Courier must be already installed, this is
139NOT the standalone version of the Courier-IMAP server, and you cannot
140install both this package, and the standalone version of Courier-IMAP.
141If you have the standalone version of the Courier-IMAP server already
142installed, installing this package will automatically remove the
143standalone version.
c5ebe9bf 144
33db9f72 145%description imapd -l pl.UTF-8
f65a4ca3 146Ten pakiet zawiera zintegrowany serwer IMAP do Couriera. Pozwala
33db9f72
JR
147ściągać pocztę przy pomocy klienta IMAP. Serwer IMAP Couriera może być
148używany tylko ze skrzynkami Maildir, nie obsługuje skrzynek w postaci
149pojedynczych plików.
f65a4ca3
JB
150
151Ten pakiet wymaga serwera Courier, to NIE jest samodzielna wersja
33db9f72 152serwera Courier-IMAP. Nie można też instalować jednocześnie tego
f65a4ca3 153pakietu i samodzielnej wersji Courier-IMAP. Zainstalowanie tego
33db9f72 154pakietu automatycznie odinstaluje Courier-IMAP jeśli był zinstalowany.
f65a4ca3 155
ea45ecdd
AA
156%package webadmin
157Summary: Courier Integrated HTTP administraton panel
5537b050 158Summary(pl.UTF-8): Panel administracyjny przez HTTP dla Couriera
ea45ecdd 159Group: Networking/Daemons
485ac86d 160Requires: %{name} = %{version}-%{release}
5405c399 161Requires: filesystem >= 3.0-11
6c3bd8da 162Requires: webapps
e15af55d 163Requires: webserver = apache
8e3ef11d
AA
164Conflicts: apache-base < 2.2.0-8
165Conflicts: apache1 < 1.3.34-5.11
ea45ecdd
AA
166
167%description webadmin
168This is a web-based administration tool. Webadmin is a web CGI
169application.
170
33db9f72
JR
171%description webadmin -l pl.UTF-8
172Webadmin jest narzędziem administracyjnym obsługiwanym przez WWW.
ea45ecdd 173
f65a4ca3
JB
174%package webmail
175Summary: Courier Integrated HTTP (webmail) server
5537b050 176Summary(pl.UTF-8): Zintegrowany serwer poczty przez HTTP (webmail) do Couriera
1fdfbbe1 177Group: Networking/Daemons
485ac86d 178Requires: %{name} = %{version}-%{release}
2a001acf 179Requires: filesystem >= 3.0-11
6c3bd8da 180Requires: webapps
e15af55d 181Requires: webserver = apache
8e3ef11d
AA
182Conflicts: apache-base < 2.2.0-8
183Conflicts: apache1 < 1.3.34-5.11
f65a4ca3 184
c5ebe9bf 185%description webmail
186This package installs Courier mail server's integrated HTTP webmail
9e755595
JB
187server. If you do not need the ability to access your mail using a web
188browser, you do not need to install this package. Courier's webmail
189server can only be used to download mail from maildir mailboxes. This
190server does not support mailbox files.
c5ebe9bf 191
9e755595
JB
192This is the same server that's distributed separately under the name
193of SqWebMail, however its configuration is customized for the Courier
194mail server.
c5ebe9bf 195
33db9f72 196%description webmail -l pl.UTF-8
f65a4ca3 197Ten pakiet zawiera zintegrowany serwer poczty przez HTTP (webmail) dla
33db9f72
JR
198Couriera, pozwalający na dostęp do poczty za pomocą przeglądarki WWW.
199Serwer webmail Couriera może być używany tylko ze skrzynkami Maildir,
200nie obsługuje skrzynek w postaci pojedynczych plików.
f65a4ca3 201
33db9f72 202Jest to ten sam serwer, co dystrybuowany oddzielnie pod nazwą
f65a4ca3
JB
203SqWebMail, ale jego konfiguracja jest dostosowana do serwera Courier.
204
7859d47c 205%package webmlm
206Summary: Courier web-based access to some couriermlm commands
207Summary(pl.UTF-8): Dostęp WWW do niektórych poleceń couriermlm do Couriera
208Group: Networking/Daemons
209Requires: %{name} = %{version}-%{release}
210Requires: filesystem >= 3.0-11
211Requires: webapps
212Requires: webserver = apache
213Conflicts: apache-base < 2.2.0-8
214Conflicts: apache1 < 1.3.34-5.11
215
216%description webmlm
217WebMLM is a service that offers an alternative web-based access to
218some couriermlm commands, as an alternative to submitting them via
219E-mail.
220
a28b7ad2 221%description webmlm -l pl.UTF-8
7859d47c 222WebMLM to serwis oferujący dostęp WWW do wybranych poleceń couriermlm
223jako alternatywę do wysyłania ich poprzez e-mail.
224
9a3d2e11 225%package maildir-tools
8e00b423 226Summary: Tools for mail folders in Maildir format
5537b050 227Summary(pl.UTF-8): Narzędzia do zarządzania skrzynkami Maildir
8e00b423
AA
228Group: Applications/Mail
229Requires: %{name} = %{version}-%{release}
230
9a3d2e11 231%description maildir-tools
8e00b423
AA
232This package contains tools for mail folders in Maildir format.
233
33db9f72
JR
234%description maildir-tools -l pl.UTF-8
235Ten pakiet zawiera narzędzia do zarządzania folderami w formacie
6f4c39d4 236Maildir.
8e00b423 237
f65a4ca3
JB
238%package mlm
239Summary: Courier Integrated Mailing List Manager
5537b050 240Summary(pl.UTF-8): Zintegrowany zarządca list dyskusyjnych do Couriera
f65a4ca3 241Group: Applications/Mail
7efe0fc9 242Requires: %{name} = %{version}-%{release}
c5ebe9bf 243
244%description mlm
245This package installs couriermlm - a mailing list manager for the
9e755595
JB
246Courier mail server. If you do not need the ability to manage mailing
247lists, you do not need to install this package.
c5ebe9bf 248
249couriermlm is used to set up, maintain, and run a mailing list.
250couriermlm automatically processes subscription and unsubscription
251requests, and removes undeliverable addresses from the subscription
9e755595 252rolls. Mailing lists managed by couriermlm require zero human
c5ebe9bf 253administrative oversight. couriermlm supports digests, write-only
254posting aliases, and moderated mailing lists.
255
33db9f72
JR
256%description mlm -l pl.UTF-8
257Ten pakiet zawiera couriermlm - program do zarządzania listami
258dyskusyjnymi dla Couriera. couriermlm jest używany do konfigurowania,
259zarządzania i prowadzenia pocztowej listy dyskusyjnej. Automatycznie
260obsługuje żądania zapisywania i wypisywania oraz usuwa z listy
261niedziałające adresy subskrybentów. Listy obsługiwane przez couriermlm
262nie wymagają pracy administratora. couriermlm obsługuje digesty,
263aliasy pocztowe tylko do wysyłania i listy moderowane.
f65a4ca3
JB
264
265%package maildrop
266Summary: Courier Integrated mail filter
5537b050 267Summary(pl.UTF-8): Zintegrowany filtr poczty do Couriera
f65a4ca3 268Group: Applications/Mail
7efe0fc9 269Requires: %{name} = %{version}-%{release}
f65a4ca3
JB
270
271%description maildrop
272This package installs Courier mail server's integrated mail filter.
9e755595
JB
273You need to install this package if you want to be able to filter your
274incoming mail.
f65a4ca3 275
33db9f72 276%description maildrop -l pl.UTF-8
f65a4ca3 277Ten pakiet zawiera zintegrowany filtr poczty dla Couriera. Jest
33db9f72 278potrzebny do filtrowania przychodzącej poczty.
f65a4ca3 279
9754ea44
JB
280%package fax
281Summary: Courier fax support
282Summary(pl.UTF-8): Obsługa faksów dla Couriera
283Group: Applications/Mail
284Requires: %{name} = %{version}-%{release}
401b2552
JB
285Requires: ghostscript
286Requires: groff
287Requires: netpbm-progs
288#Requires: /usr/bin/sendfax
289# pdftops
290Suggests: poppler-progs
9754ea44
JB
291
292%description fax
293This package adds support for faxing E-mail messages. It allows to
294send fax messages simply by sending an E-mail to phonenumber@fax.
295
296%description fax -l pl.UTF-8
297Ten pakiet dodaje obsługę faksowania listów elektronicznych. Pozwala
298wysyłać faksy wysyłając po prostu e-maila na numertelefonu@fax.
299
c5ebe9bf 300%prep
43a020ce 301%setup -q
285ed68b 302%{!?with_fam:%patch1 -p1}
0dae501c 303%patch2 -p1
d69319ff 304%patch3 -p1
9efdd476 305%patch4 -p1
ed6b22b8 306%patch5 -p1
58bc002e 307%patch6 -p1
c5ebe9bf 308
9754ea44 309cat >apache.conf <<EOF
6c3bd8da
ER
310Alias /webmail %{_imagedir}
311<Directory %{_imagedir}>
312 AllowOverride None
313 Options None
6c3bd8da
ER
314 Allow from all
315</Directory>
9754ea44 316EOF
6c3bd8da 317
45f57918
JP
318%{__rm} libs/pcp/m4/ltversion.m4
319
50b95ff6 320%build
9754ea44 321%{__libtoolize}
95221c40
AA
322# Change Makefile.am files and force recreate Makefile.in's.
323OLDDIR=`pwd`
9754ea44 324find -type f -a -name configure.ac | while read FILE; do
95221c40
AA
325 cd "`dirname "$FILE"`"
326
327 if [ -f Makefile.am ]; then
6f622803 328 sed -i -e '/_[L]DFLAGS=-static/d' Makefile.am
95221c40
AA
329 fi
330
ed681050 331 %{__aclocal} $(test ! -d m4 || echo -I m4)
95221c40 332 %{__autoconf}
9754ea44 333 if grep -q AC_CONFIG_HEADER configure.ac; then
e2d411bb
ER
334 %{__autoheader}
335 fi
95221c40
AA
336 %{__automake}
337
338 cd "$OLDDIR"
339done
d8190ce6 340
50b95ff6 341%configure \
401b2552
JB
342 CERTTOOL=/usr/bin/certtool \
343 GROPS=/usr/bin/grops \
344 GS=/usr/bin/gs \
345 PNMSCALE=/usr/bin/pnmscale \
346 OPENSSL=/usr/bin/openssl \
347 SENDFAX=/usr/bin/sendfax \
9754ea44 348 --datadir=%{_datadir}/courier \
33c18667 349 --enable-imagedir=%{_imagedir} \
cbf1746a 350 --enable-imageurl=%{_imageurl} \
401b2552 351 --enable-mimetypes=/etc/mime.types \
c5520896 352 --with-certsdir=%{_certsdir} \
9efdd476 353 --with-db=db \
401b2552 354 %{?with_gnutls:--with-gnutls} \
33c18667 355 --with-mailer=%{_sbindir}/sendmail \
9754ea44 356 --with-mailgid=2 \
33c18667
AA
357 --with-mailgroup=daemon \
358 --with-mailuid=2 \
401b2552 359 --with-mailuser=daemon \
6d61614b 360 --with-notice=unicode \
401b2552 361 %{!?with_socks:--without-socks}
c5ebe9bf 362
5b00fb05 363%{__make} -j1
fbcfab47 364%{?with_tests:%{__make} -j1 check}
c5ebe9bf 365
f65a4ca3
JB
366%install
367rm -rf $RPM_BUILD_ROOT
c5ebe9bf 368umask 022
92ccf594 369install -d -p $RPM_BUILD_ROOT/etc/{cron.hourly,pam.d,rc.d/init.d} \
9754ea44 370 $RPM_BUILD_ROOT{/usr/lib,%{_certsdir},%{_cgibindir},%{_webapps}/courier-webmail,%{_sysconfdir}/hosteddomains}
c5ebe9bf 371
5b00fb05 372%{__make} -j1 install \
3d3f32f4 373 DESTDIR=$RPM_BUILD_ROOT
c5ebe9bf 374
a78f0f7d 375# fix pam problem
ed681050 376%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/*.authpam
a78f0f7d
AA
377for X in imap esmtp pop3 webmail calendar
378do
e15af55d 379 cat > $RPM_BUILD_ROOT/etc/pam.d/$X <<'EOF'
0dae501c 380#%PAM-1.0
a0621e90 381auth required pam_unix.so shadow nullok
382account required pam_unix.so
383session required pam_unix.so
a78f0f7d
AA
384EOF
385done
c5ebe9bf 386
f224ea7d 387%{__make} install-perms
c5ebe9bf 388
ea45ecdd 389# Move webmail and webadmin to cgibindir
9754ea44 390%{__mv} $RPM_BUILD_ROOT%{_libexecdir}/courier/webmail/webmail \
c5ebe9bf 391 $RPM_BUILD_ROOT%{_cgibindir}/webmail
9754ea44 392%{__mv} $RPM_BUILD_ROOT%{_libexecdir}/courier/webmail/webadmin \
ea45ecdd 393 $RPM_BUILD_ROOT%{_cgibindir}/webadmin
c5ebe9bf 394
ed681050
JB
395# noinst program (as of 1.1.8)
396%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/maildirwatch.1
397
debd9b9c 398# install a cron job to clean out webmail's cache
9754ea44 399install libs/sqwebmail/cron.cmd $RPM_BUILD_ROOT/etc/cron.hourly/courier-webmail-cleancache
c5ebe9bf 400
9754ea44
JB
401# Move .html documentation to docdir; use common directory for all subpackages for references to work.
402install -d $RPM_BUILD_ROOT%{_docdir}
403%{__mv} $RPM_BUILD_ROOT%{_datadir}/courier/htmldoc $RPM_BUILD_ROOT%{_docdir}/courier
c5ebe9bf 404
405# Manually set POP3DSTART and IMAPDSTART to yes, they'll go into a separate
406# package, so after it's installed they should be runnable.
407
27221f8a
AA
408sed -i 's/^POP3DSTART.*/POP3DSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/pop3d.dist
409sed -i 's/^POP3DSSLSTART.*/POP3DSSLSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/pop3d-ssl.dist
410sed -i 's/^IMAPDSTART.*/IMAPDSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/imapd.dist
411sed -i 's/^IMAPDSSLSTART.*/IMAPDSSLSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/imapd-ssl.dist
c5ebe9bf 412
0f904c39 413# Want to have esmtpd running by default
27221f8a 414sed -i 's/^ESMTPDSTART.*/ESMTPDSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/esmtpd.dist
0f904c39 415
d10c99ec
AA
416# run script from install-configure (make config files)
417for confdist in `awk ' $5 == "config" && $1 ~ /\.dist$/ { print $1 }' <permissions.dat`
95006427 418do %{__perl} ././sysconftool $RPM_BUILD_ROOT$confdist
d10c99ec
AA
419done
420
3b73318a 421# make locals, esmtpacceptmailfor.dir/default
20d769cb
AA
422touch $RPM_BUILD_ROOT%{_sysconfdir}/esmtpacceptmailfor.dir/default
423touch $RPM_BUILD_ROOT%{_sysconfdir}/locals
c5ebe9bf 424
51b0e2b5
AA
425# file with important options
426cat > $RPM_BUILD_ROOT%{_sysconfdir}/bofh <<EOF
427# enable this option if you want to pass bad converted mails
428# opt BOFHBADMIME=accept
429EOF
430
ea45ecdd
AA
431# Make password and unsecureok (files for webadmin)
432touch $RPM_BUILD_ROOT%{_sysconfdir}/webadmin/password
433touch $RPM_BUILD_ROOT%{_sysconfdir}/webadmin/unsecureok
434
20d769cb
AA
435# create file me to put localdomain
436touch $RPM_BUILD_ROOT%{_sysconfdir}/me
437
3407e4d1
AA
438# create calendarmode
439touch $RPM_BUILD_ROOT%{_sysconfdir}/calendarmode
440
92ccf594 441install courier.sysvinit $RPM_BUILD_ROOT/etc/rc.d/init.d/courier
c5ebe9bf 442
c5ebe9bf 443# sendmail soft links
3b267ecc 444ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT/usr/lib/sendmail
c5ebe9bf 445
9754ea44 446# fix rmail link (points to non-existing sendmail in %{_bindir}
a8000b36
AA
447ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT%{_bindir}/rmail
448
33c18667 449# for apache
9754ea44
JB
450cp -p apache.conf $RPM_BUILD_ROOT%{_webapps}/courier-webmail/apache.conf
451cp -p apache.conf $RPM_BUILD_ROOT%{_webapps}/courier-webmail/httpd.conf
452
453# makedat is packaged in courier-authlib
454%{__rm} $RPM_BUILD_ROOT%{_bindir}/makedat \
455 $RPM_BUILD_ROOT%{_libexecdir}/courier/makedatprog \
456 $RPM_BUILD_ROOT%{_datadir}/courier/makedat \
457 $RPM_BUILD_ROOT%{_mandir}/man1/makedat.1
e95643c5 458# remove unpackaged files
9754ea44 459%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/*.dist
c5ebe9bf 460
f65a4ca3
JB
461%clean
462rm -rf $RPM_BUILD_ROOT
463
c5520896
AA
464%triggerin -- courier < 0.45.5
465echo
466echo Directory with certificates has changed to %{_certsdir}
467echo
468
c5ebe9bf 469%post
c5520896 470if [ "$1" = "1" ]; then
e15af55d 471 [ -s %{_sysconfdir}/me ] || /bin/hostname -f > %{_sysconfdir}/me
656834c7 472 %banner -e %{name} <<'EOF'
c2b9de9d 473
a78f0f7d 474Now courier will refuse to accept SMTP messages except to localhost
e15af55d 475add hosts to %{_sysconfdir}/esmtpacceptmailfor.dir/default
d69319ff 476run makeacceptmailfor
c2b9de9d 477
e15af55d 478Add hosts to %{_sysconfdir}/locals you want to accept mail for
d69319ff 479run makealiases
c2b9de9d 480
a78f0f7d 481Enter user, who should receive mail for root, mailer-daemon and postmaster
e15af55d 482into %{_sysconfdir}/aliases/system
c2b9de9d 483
c1f6664a
AA
484Default maildir is in ~/Mail/Maildir
485
a78f0f7d 486EOF
fb4d919e
AA
487fi
488
656834c7
ER
489/sbin/chkconfig --add courier
490%service courier restart
3bf26190 491
c5ebe9bf 492%preun
debd9b9c 493if [ "$1" = "0" ]; then
656834c7 494 %service courier stop
debb60a3 495 /sbin/chkconfig --del courier
3a3d7263 496fi
c5ebe9bf 497
498%post imapd
656834c7 499# TODO: use rc-scripts here
fb4d919e 500if [ -e %{_localstatedir}/tmp/imapd.pid ]; then
4e9a0961 501 %{_sbindir}/imapd stop
502 %{_sbindir}/imapd start
ba530181 503else
4e9a0961 504 echo
33c18667 505 echo 'Type "%{_sbindir}/imapd start" to start imapd server'
4e9a0961 506 echo
ba530181 507fi
fb4d919e 508if [ -e %{_localstatedir}/tmp/imapd-ssl.pid ]; then
4e9a0961 509 %{_sbindir}/imapd-ssl stop
510 %{_sbindir}/imapd-ssl start
ba530181 511else
4e9a0961 512 echo
513 echo Type "%{_sbindir}/imapd-ssl start" to start imapd-ssl server
514 echo
ba530181 515fi
c5ebe9bf 516
debd9b9c
JB
517%preun imapd
518if [ "$1" = "0" ]; then
4e9a0961 519 if [ -e %{_localstatedir}/tmp/imapd.pid ]; then
520 %{_sbindir}/imapd stop
521 fi
522 if [ -e %{_localstatedir}/tmp/imapd-ssl.pid ]; then
523 %{_sbindir}/imapd-ssl stop
524 fi
debd9b9c
JB
525fi
526
527%post pop3d
fb4d919e 528if [ -e %{_localstatedir}/tmp/pop3d.pid ]; then
4e9a0961 529 %{_sbindir}/pop3d stop
530 %{_sbindir}/pop3d start
ba530181 531else
4e9a0961 532 echo
33c18667 533 echo 'Type "%{_sbindir}/pop3d start" to start pop3d server'
4e9a0961 534 echo
ba530181 535fi
fb4d919e 536if [ -e %{_localstatedir}/tmp/pop3d-ssl.pid ]; then
4e9a0961 537 %{_sbindir}/pop3d-ssl stop
538 %{_sbindir}/pop3d-ssl start
ba530181 539else
4e9a0961 540 echo
33c18667 541 echo 'Type "%{_sbindir}/pop3d-ssl start" to start pop3d-ssl server'
4e9a0961 542 echo
ba530181 543fi
debd9b9c
JB
544
545%preun pop3d
546if [ "$1" = "0" ]; then
4e9a0961 547 if [ -e %{_localstatedir}/tmp/pop3d.pid ]; then
548 %{_sbindir}/pop3d stop
549 fi
550 if [ -e %{_localstatedir}/tmp/pop3d-ssl.pid ]; then
551 %{_sbindir}/pop3d-ssl stop
552 fi
debd9b9c 553fi
c5ebe9bf 554
ea45ecdd
AA
555%post webadmin
556if [ "$1" = "1" ]; then
4e9a0961 557 echo
558 echo Remember to put your webadmin password to %{_sysconfdir}/webadmin/password
559 echo
ea45ecdd
AA
560fi
561
df8fd513 562%post webmail
3407e4d1 563if [ "$1" = "1" ]; then
4e9a0961 564 echo
565 echo If you want to have calendar starting by default then
566 echo put word net to %{_sysconfdir}/calendarmode
567 echo
3407e4d1 568fi
8d884446 569if [ -e %{_localstatedir}/tmp/sqwebmaild.pid ]; then
4e9a0961 570 %{_sbindir}/webmaild stop
571 %{_sbindir}/webmaild start
bb7dcd14 572else
4e9a0961 573 echo
33c18667 574 echo 'Type "%{_sbindir}/webmaild start" to start webmail server'
4e9a0961 575 echo
df8fd513
AA
576fi
577
33c18667
AA
578%preun webmail
579if [ "$1" = "0" ]; then
580 if [ -e %{_localstatedir}/tmp/sqwebmaild.pid ]; then
581 %{_sbindir}/webmaild stop
a0621e90 582 fi
0f904c39
AA
583fi
584
30a7fa6a 585%triggerin webmail -- apache1 < 1.3.37-3, apache1-base
6c3bd8da 586%webapp_register apache courier-webmail
485ac86d 587
30a7fa6a 588%triggerun webmail -- apache1 < 1.3.37-3, apache1-base
6c3bd8da 589%webapp_unregister apache courier-webmail
485ac86d 590
c0bdab23 591%triggerin webmail -- apache < 2.2.0, apache-base
6c3bd8da 592%webapp_register httpd courier-webmail
485ac86d 593
c0bdab23 594%triggerun webmail -- apache < 2.2.0, apache-base
6c3bd8da
ER
595%webapp_unregister httpd courier-webmail
596
597%triggerpostun webmail -- courier-webmail < 0.52.2-0.2
598# migrate from apache-config macros
599if [ -f /etc/courier/apache-courier.conf.rpmsave ]; then
600 if [ -d /etc/apache/webapps.d ]; then
601 cp -f %{_webapps}/courier-webmail/apache.conf{,.rpmnew}
602 cp -f /etc/courier/apache-courier.conf.rpmsave %{_webapps}/courier-webmail/apache.conf
603 fi
604
605 if [ -d /etc/httpd/webapps.d ]; then
606 cp -f %{_webapps}/courier-webmail/httpd.conf{,.rpmnew}
607 cp -f /etc/courier/apache-courier.conf.rpmsave %{_webapps}/courier-webmail/httpd.conf
608 fi
609 rm -f /etc/courier/apache-courier.conf.rpmsave
610fi
611
612# migrating apache-config symlinks
613if [ -L /etc/apache/conf.d/99_courier.conf ]; then
614 rm -f /etc/apache/conf.d/99_courier.conf
615 /usr/sbin/webapp register apache courier-webmail
616 %service -q apache reload
617fi
618if [ -L /etc/httpd/httpd.conf/99_courier.conf ]; then
619 rm -f /etc/httpd/httpd.conf/99_courier.conf
620 /usr/sbin/webapp register httpd courier-webmail
621 %service -q httpd reload
622fi
485ac86d 623
debd9b9c 624%files
9e755595 625%defattr(644,root,root,755)
9754ea44
JB
626%doc AUTHORS BENCHMARKS COPYING ChangeLog INSTALL NEWS README TODO
627# common:
628# couriertcpd, couriertls are common TCP/TLS wrappers
629# makemime used by sqwebmail, useful for maildrop
630# reformime used by mlm, useful for maildrop
631# deliverquota, sharedindex* are common for maildir
632%attr(755,root,root) %{_bindir}/couriertls
633%attr(755,root,root) %{_bindir}/deliverquota
634%attr(755,root,root) %{_bindir}/makemime
635%attr(755,root,root) %{_bindir}/mimegpg
636%attr(755,root,root) %{_bindir}/reformime
637%attr(755,root,root) %{_sbindir}/couriertcpd
638%attr(755,root,root) %{_sbindir}/mkdhparams
639%attr(755,root,root) %{_sbindir}/sharedindexinstall
640%attr(755,root,root) %{_sbindir}/sharedindexsplit
641%dir %{_libexecdir}/courier
642%dir %{_datadir}/courier
643%attr(755,root,root) %{_datadir}/courier/mkdhparams
644%attr(755,daemon,daemon) %dir %{_sysconfdir}
645%attr(750,daemon,daemon) %dir %{_certsdir}
646%dir %{_docdir}/courier
647%{_docdir}/courier/bg.png
648%{_docdir}/courier/japanese_flag.png
649%{_docdir}/courier/icon.gif
650%{_docdir}/courier/manpage.css
651%{_docdir}/courier/draft-varshavchik-*-smtpext.txt
652%{_docdir}/courier/FAQ.html
653%{_docdir}/courier/couriertcpd.html
654%{_docdir}/courier/couriertls.html
655%{_docdir}/courier/deliverquota.html
656%{_docdir}/courier/documentation.html
9754ea44
JB
657%{_docdir}/courier/index.html
658%{_docdir}/courier/install.html
659%{_docdir}/courier/layout.html
660%{_docdir}/courier/links.html
661%{_docdir}/courier/makedat.html
662%{_docdir}/courier/makemime.html
663%{_docdir}/courier/menu.html
664%{_docdir}/courier/mimegpg.html
665%{_docdir}/courier/mkdhparams.html
666%{_docdir}/courier/modules.html
667%{_docdir}/courier/reformime.html
668%{_docdir}/courier/repo.html
669%{_docdir}/courier/rpm.html
670%{_docdir}/courier/socks.html
671%{_docdir}/courier/status.html
672%{_docdir}/courier/structures.html
673%{_mandir}/man1/couriertcpd.1*
674%{_mandir}/man1/couriertls.1*
debd9b9c 675%{_mandir}/man1/makemime.1*
9754ea44 676%{_mandir}/man1/reformime.1*
debd9b9c 677%{_mandir}/man1/mimegpg.1*
9754ea44
JB
678%{_mandir}/man8/deliverquota.8*
679%{_mandir}/man8/mkdhparams.8*
680
681# MTA
682%attr(6555,daemon,daemon) %{_bindir}/cancelmsg
683%attr(755,root,root) %{_bindir}/courier-config
684%attr(755,root,root) %{_bindir}/dotforward
685%attr(2755,daemon,daemon) %{_bindir}/mailq
686%attr(4755,root,root) %{_bindir}/rmail
687%attr(755,root,root) %{_bindir}/testmxlookup
688%attr(755,root,root) %{_sbindir}/aliaslookup
689%attr(755,root,root) %{_sbindir}/courier
690%attr(754,root,daemon) %{_sbindir}/makealiases
691%attr(755,root,root) %{_sbindir}/makehosteddomains
692%attr(755,root,root) %{_sbindir}/showconfig
693%attr(754,root,daemon) %{_sbindir}/showmodules
694%attr(4755,root,root) %{_sbindir}/sendmail
695%attr(755,root,root) /usr/lib/sendmail
696%attr(754,daemon,daemon) %{_libexecdir}/courier/aliascombine
697%attr(754,daemon,daemon) %{_libexecdir}/courier/aliascreate
698%attr(754,daemon,daemon) %{_libexecdir}/courier/aliasexp
699%attr(754,daemon,daemon) %{_libexecdir}/courier/courierd
700%attr(754,daemon,daemon) %{_libexecdir}/courier/submit
701%attr(4554,daemon,daemon) %{_libexecdir}/courier/submitmkdir
702%attr(755,root,root) %{_datadir}/courier/courierctl.start
703%attr(754,root,daemon) %{_datadir}/courier/makealiases
704%attr(755,root,root) %{_datadir}/courier/makehosteddomains
705%attr(755,daemon,daemon) %dir %{_sysconfdir}/shared
706%attr(755,daemon,daemon) %dir %{_sysconfdir}/shared.tmp
707%attr(754,root,root) /etc/rc.d/init.d/courier
708%attr(755,bin,bin) %dir %{_localstatedir}
709%attr(755,daemon,daemon) %dir %{_localstatedir}/track
710%{_docdir}/courier/aliases.html
711%{_docdir}/courier/aliaslookup.html
712%{_docdir}/courier/cancelmsg.html
713%{_docdir}/courier/courier.html
714%{_docdir}/courier/courierd.html
715%{_docdir}/courier/dot-courier.html
716%{_docdir}/courier/dot-forward.html
717%{_docdir}/courier/mailq.html
718%{_docdir}/courier/makealiases.html
719%{_docdir}/courier/makehosteddomains.html
720%{_docdir}/courier/queue.html
721%{_docdir}/courier/sendmail.html
722%{_docdir}/courier/submit.html
723%{_docdir}/courier/testmxlookup.html
724%{_mandir}/man1/cancelmsg.1*
debd9b9c 725%{_mandir}/man1/dot-forward.1*
13f7f200 726%{_mandir}/man1/dotforward.1*
9754ea44 727%{_mandir}/man1/mailq.1*
13f7f200 728%{_mandir}/man1/rmail.1*
9754ea44
JB
729%{_mandir}/man1/sendmail.1*
730%{_mandir}/man1/testmxlookup.1*
debd9b9c
JB
731%{_mandir}/man5/dot-courier.5*
732%{_mandir}/man7/localmailfilter.7*
fbcfab47 733%{_mandir}/man8/aliaslookup.8*
debd9b9c 734%{_mandir}/man8/courier.8*
debd9b9c 735%{_mandir}/man8/makealiases.8*
9754ea44 736%{_mandir}/man8/makehosteddomains.8*
debd9b9c 737%{_mandir}/man8/submit.8*
9754ea44
JB
738%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bofh
739%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/courierd
740%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/enablefiltering
741%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/locals
6f4c39d4 742%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/me
debd9b9c
JB
743%attr(755,daemon,daemon) %dir %{_sysconfdir}/aliasdir
744%attr(750,daemon,daemon) %dir %{_sysconfdir}/aliases
9754ea44
JB
745%attr(640,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/aliases/system
746%attr(755,daemon,daemon) %dir %{_sysconfdir}/hosteddomains
debd9b9c 747%attr(755,daemon,daemon) %dir %{_sysconfdir}/smtpaccess
6f4c39d4 748%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/smtpaccess/default
c8c1f2fa 749%{_sysconfdir}/quotawarnmsg.example
9754ea44
JB
750%dir %{_datadir}/courier/courierwebadmin
751%{_datadir}/courier/courierwebadmin/admin-15*
752
753# LDAP configuration
754%attr(744,daemon,daemon) %{_sbindir}/courierldapaliasd
755%attr(640,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ldapaliasrc
756%{_docdir}/courier/courierldapaliasd.html
757%{_mandir}/man8/courierldapaliasd.8*
758
759# filters
760%attr(755,root,root) %{_bindir}/verifysmtp
761%attr(754,root,daemon) %{_sbindir}/courierfilter
762%attr(754,root,daemon) %{_sbindir}/filterctl
763%attr(755,root,root) %{_libexecdir}/courier/courierfilter
764%dir %{_libexecdir}/courier/filters
765%attr(755,root,root) %{_libexecdir}/courier/filters/dupfilter
766%attr(755,root,root) %{_libexecdir}/courier/filters/perlfilter
767%attr(755,root,root) %{_libexecdir}/courier/filters/ratefilter
768%attr(755,root,root) %{_libexecdir}/courier/filters/verifyfilter
769%attr(754,root,daemon) %{_datadir}/courier/filterctl
770%attr(755,root,root) %{_datadir}/courier/perlfilter-*.pl
771%attr(755,root,root) %{_datadir}/courier/verifysender
772%attr(755,root,root) %{_datadir}/courier/verifysenderfull
773%attr(750,daemon,daemon) %dir %{_sysconfdir}/filters
774%attr(750,daemon,daemon) %dir %{_sysconfdir}/filters/active
775%attr(750,daemon,daemon) %dir %{_localstatedir}/allfilters
776%attr(750,daemon,daemon) %dir %{_localstatedir}/filters
debd9b9c
JB
777%attr(770,daemon,daemon) %dir %{_localstatedir}/tmp
778%attr(750,daemon,daemon) %dir %{_localstatedir}/msgs
779%attr(750,daemon,daemon) %dir %{_localstatedir}/msgq
9754ea44
JB
780%{_docdir}/courier/courierfilter.html
781%{_docdir}/courier/courierperlfilter.html
782%{_docdir}/courier/dupfilter.html
783%{_docdir}/courier/ratefilter.html
784%{_docdir}/courier/verifyfilter.html
785%{_mandir}/man8/courierfilter.8*
786%{_mandir}/man8/courierperlfilter.8*
787%{_mandir}/man8/dupfilter.8*
788%{_mandir}/man8/filterctl.8*
789%{_mandir}/man8/ratefilter.8*
790%{_mandir}/man8/verifyfilter.8*
791%{_mandir}/man8/verifysmtp.8*
792
793# module.dsn
794%dir %{_libexecdir}/courier/modules/dsn
795%attr(755,root,root) %{_libexecdir}/courier/modules/dsn/courierdsn
796%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/module.dsn
797%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsndelayed.txt
798%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsndelivered.txt
799%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnfailed.txt
800%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnrelayed.txt
801%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnfooter.txt
802%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnsubjectnotice.txt
803%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnsubjectwarn.txt
804%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnheader.txt
805%{_docdir}/courier/courierdsn.html
806
807# module.esmtp
debd9b9c 808%attr(755,root,root) %{_bindir}/addcr
9754ea44 809%attr(755,root,root) %{_sbindir}/courieresmtpd
debd9b9c 810%attr(755,root,root) %{_sbindir}/esmtpd
9754ea44 811%attr(755,root,root) %{_sbindir}/esmtpd-msa
3bf26190 812%attr(755,root,root) %{_sbindir}/esmtpd-ssl
debd9b9c 813%attr(755,root,root) %{_sbindir}/makeacceptmailfor
debd9b9c 814%attr(755,root,root) %{_sbindir}/makepercentrelay
9754ea44 815%attr(755,root,root) %{_sbindir}/makesmtpaccess
debd9b9c 816%attr(755,root,root) %{_sbindir}/makesmtpaccess-msa
9754ea44
JB
817%attr(755,root,root) %{_sbindir}/mkesmtpdcert
818%dir %{_libexecdir}/courier/modules/esmtp
819%attr(754,root,daemon) %{_libexecdir}/courier/modules/esmtp/courieresmtp
820%attr(754,root,daemon) %{_libexecdir}/courier/modules/esmtp/courieresmtpd
821%attr(755,root,root) %{_libexecdir}/courier/modules/esmtp/addcr
822%attr(755,root,root) %{_datadir}/courier/esmtpd
823%attr(755,root,root) %{_datadir}/courier/esmtpd-ssl
824%attr(755,root,root) %{_datadir}/courier/makeacceptmailfor
825%attr(755,root,root) %{_datadir}/courier/makepercentrelay
826%attr(755,root,root) %{_datadir}/courier/makesmtpaccess
827%attr(755,root,root) %{_datadir}/courier/mkesmtpdcert
828%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/esmtp
829%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/module.esmtp
6f4c39d4
SP
830%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpd
831%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpd-msa
832%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpd-ssl
6f4c39d4
SP
833%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpd.cnf
834%attr(600,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpauthclient
9754ea44
JB
835%attr(755,daemon,daemon) %dir %{_sysconfdir}/esmtpacceptmailfor.dir
836%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpacceptmailfor.dir/default
837%attr(755,daemon,daemon) %dir %{_sysconfdir}/esmtppercentrelay.dir
838%{_docdir}/courier/esmtp.html
839%{_docdir}/courier/esmtpd.html
840%{_docdir}/courier/makeacceptmailfor.html
841%{_docdir}/courier/makepercentrelay.html
842%{_docdir}/courier/makesmtpaccess.html
843%{_docdir}/courier/mkesmtpdcert.html
844%{_mandir}/man8/esmtpd.8*
845%{_mandir}/man8/esmtpd-msa.8*
846%{_mandir}/man8/makeacceptmailfor.8*
847%{_mandir}/man8/makepercentrelay.8*
848%{_mandir}/man8/makesmtpaccess.8*
849%{_mandir}/man8/makesmtpaccess-msa.8*
850%{_mandir}/man8/mkesmtpdcert.8*
851
852# module.local
853%attr(755,root,root) %{_bindir}/preline
854%dir %{_libexecdir}/courier/modules/local
855%attr(755,root,root) %{_libexecdir}/courier/modules/local/courierdeliver
856%attr(755,root,root) %{_libexecdir}/courier/modules/local/courierlocal
857%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/module.local
858%{_docdir}/courier/local.html
859%{_docdir}/courier/localmailfilter.html
860%{_docdir}/courier/preline.html
861%{_mandir}/man1/preline.1*
862
863# module.uucp
864%attr(755,root,root) %{_sbindir}/makeuucpneighbors
865%dir %{_libexecdir}/courier/modules
866%dir %{_libexecdir}/courier/modules/uucp
867%attr(755,root,root) %{_libexecdir}/courier/modules/uucp/courieruucp
868%attr(755,root,root) %{_datadir}/courier/makeuucpneighbors
869%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/module.uucp
870%{_docdir}/courier/courieruucp.html
871%{_mandir}/man8/courieruucp.8*
872%{_mandir}/man8/makeuucpneighbors.8*
debd9b9c
JB
873
874%files pop3d
9e755595 875%defattr(644,root,root,755)
6f4c39d4
SP
876%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pop3d
877%attr(600,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pop3d.cnf
878%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pop3d-ssl
9754ea44 879%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/pop3
1326bb92 880%attr(755,root,root) %{_sbindir}/mkpop3dcert
debd9b9c 881%attr(755,root,root) %{_sbindir}/pop3d
d10c99ec 882%attr(755,root,root) %{_sbindir}/pop3d-ssl
9754ea44
JB
883%attr(755,root,root) %{_libexecdir}/courier/courierpop3d
884%attr(755,root,root) %{_libexecdir}/courier/courierpop3login
885%attr(755,root,root) %{_datadir}/courier/mkpop3dcert
886%attr(755,root,root) %{_datadir}/courier/pop3d
887%attr(755,root,root) %{_datadir}/courier/pop3d-ssl
888%attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-45pop3.pl
889%{_datadir}/courier/courierwebadmin/admin-45pop3.html
890%{_docdir}/courier/courierpop3d.html
891%{_docdir}/courier/mkpop3dcert.html
892%{_docdir}/courier/pop3d.html
893%{_mandir}/man8/courierpop3d.8*
894%{_mandir}/man8/courierpop3login.8*
895%{_mandir}/man8/mkpop3dcert.8*
896%{_mandir}/man8/pop3d.8*
897%{_mandir}/man8/pop3d-ssl.8*
debd9b9c
JB
898
899%files imapd
9e755595 900%defattr(644,root,root,755)
6f4c39d4
SP
901%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/imapd
902%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/imapd-ssl
903%attr(600,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/imapd.cnf
9754ea44
JB
904%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/imap
905%attr(755,root,root) %{_bindir}/imapd
debd9b9c
JB
906%attr(755,root,root) %{_sbindir}/imapd
907%attr(755,root,root) %{_sbindir}/imapd-ssl
9754ea44 908%attr(755,root,root) %{_sbindir}/makeimapaccess
debd9b9c 909%attr(755,root,root) %{_sbindir}/mkimapdcert
9754ea44
JB
910%attr(755,root,root) %{_libexecdir}/courier/imaplogin
911%attr(755,root,root) %{_datadir}/courier/imapd
912%attr(755,root,root) %{_datadir}/courier/imapd-ssl
913%attr(755,root,root) %{_datadir}/courier/makeimapaccess
914%attr(755,root,root) %{_datadir}/courier/mkimapdcert
915%attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-40imap.pl
916%{_datadir}/courier/courierwebadmin/admin-40imap.html
917%{_docdir}/courier/imapd.html
918%{_docdir}/courier/makeimapaccess.html
919%{_docdir}/courier/mkimapdcert.html
920%{_mandir}/man8/imapd.8*
921%{_mandir}/man8/makeimapaccess.8*
922%{_mandir}/man8/mkimapdcert.8*
debd9b9c 923
ea45ecdd
AA
924%files webadmin
925%defattr(644,root,root,755)
fc15d33a 926# suid root to cgi-bin??? and it's not secured by apache config!
ea45ecdd
AA
927%attr(4755,root,root) %{_cgibindir}/webadmin
928%attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin
929%attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin/added
930%attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin/removed
6f4c39d4 931%attr(400,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/webadmin/password
f3928986 932%attr(400,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/webadmin/restartauthcmd
6f4c39d4 933%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/webadmin/unsecureok
9754ea44
JB
934%attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-main.pl
935%attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-save.pl
936%attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-cancel.pl
937%attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-[0235]*.pl
938%attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-10password.pl
939%attr(755,root,root) %{_datadir}/courier/courierwebadmin/dumpenv.pl
940%attr(755,root,root) %{_datadir}/courier/courierwebadmin/webadmin.pl
941%{_datadir}/courier/courierwebadmin/admin-[0235]*.html
942%{_datadir}/courier/courierwebadmin/admin-10password.html
943%{_datadir}/courier/courierwebadmin/admin-main.html
944%{_datadir}/courier/courierwebadmin/admin-save.html
945%{_datadir}/courier/courierwebadmin/login.html
946%{_datadir}/courier/courierwebadmin/notsupp.html
947%{_datadir}/courier/courierwebadmin/unsecure.html
948%{_datadir}/courier/courierwebadmin/webadmin.pm
ea45ecdd 949
debd9b9c 950%files webmail
9e755595 951%defattr(644,root,root,755)
9754ea44 952%doc libs/gpglib/README.html
33c18667 953%attr(755,root,root) %{_cgibindir}/webmail
9754ea44 954%attr(755,root,root) /etc/cron.hourly/courier-webmail-cleancache
c8c1f2fa
ER
955%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/webmail
956%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/calendar
9754ea44
JB
957%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/calendarmode
958%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ldapaddressbook
6f4c39d4 959%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sqwebmaild
1326bb92 960%attr(755,root,root) %{_sbindir}/webgpg
9754ea44
JB
961%attr(755,root,root) %{_sbindir}/webmaild
962%attr(755,root,root) %{_libexecdir}/courier/pcpd
963%attr(755,root,root) %{_libexecdir}/courier/sqwebmaild
964%attr(755,root,root) %{_libexecdir}/courier/sqwebpasswd
965%dir %{_datadir}/courier/sqwebmail
966%dir %{_datadir}/courier/sqwebmail/html
967%dir %{_datadir}/courier/sqwebmail/html/en-us
968%{_datadir}/courier/sqwebmail/html/en
969%{_datadir}/courier/sqwebmail/images
970%config %{_datadir}/courier/sqwebmail/html/en-us/[CILT]*
971%{_datadir}/courier/sqwebmail/html/en-us/*.html
972%{_datadir}/courier/sqwebmail/html/en-us/*.txt
973%attr(755,root,root) %{_datadir}/courier/sqwebmail/cleancache.pl
974%attr(755,root,root) %{_datadir}/courier/sqwebmail/ldapsearch
975%attr(755,root,root) %{_datadir}/courier/sqwebmail/sendit.sh
976%attr(755,root,root) %{_datadir}/courier/sqwebmail/webgpg
977%attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-47webmail.pl
978%{_datadir}/courier/courierwebadmin/admin-47webmail.html
c1f6664a
AA
979%attr(755,bin,daemon) %dir %{_localstatedir}/calendar
980%attr(700,bin,daemon) %dir %{_localstatedir}/calendar/localcache
981%attr(750,bin,daemon) %dir %{_localstatedir}/calendar/private
982%attr(755,bin,daemon) %dir %{_localstatedir}/calendar/public
9754ea44 983%attr(700,bin,bin) %dir %{_localstatedir}/webmail-logincache
6c3bd8da
ER
984%dir %attr(750,root,http) %{_webapps}/courier-webmail
985%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/courier-webmail/apache.conf
986%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/courier-webmail/httpd.conf
9754ea44 987%{_docdir}/courier/pcp_README.html
debd9b9c 988
7859d47c 989%files webmlm
990%defattr(644,root,root,755)
c14214de 991%attr(700,daemon,daemon) %{_sysconfdir}/webmlmrc
7859d47c 992%attr(755,root,root) %{_bindir}/webmlmd
993%attr(755,root,root) %{_bindir}/webmlmd.rc
9754ea44
JB
994%dir %{_libexecdir}/courier/webmail
995%attr(755,root,root) %{_libexecdir}/courier/webmail/webmlm
996%{_docdir}/courier/webmlmd.html
7859d47c 997%{_mandir}/man1/webmlmd.1*
998
debd9b9c 999%files maildrop
9e755595 1000%defattr(644,root,root,755)
6f4c39d4 1001%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/maildrop
9754ea44
JB
1002%attr(755,root,root) %{_bindir}/lockmail
1003%attr(755,root,root) %{_bindir}/mailbot
debd9b9c 1004%attr(4755,root,root) %{_bindir}/maildrop
a0621e90 1005%attr(755,root,root) %{_bindir}/reformail
9754ea44
JB
1006%{_docdir}/courier/lockmail.html
1007%{_docdir}/courier/mailbot.html
1008%{_docdir}/courier/maildrop*.html
1009%{_docdir}/courier/reformail.html
1010%{_mandir}/man1/lockmail.1*
1011%{_mandir}/man1/mailbot.1*
1012%{_mandir}/man1/maildrop.1*
1013%{_mandir}/man1/reformail.1*
1014%{_mandir}/man7/maildropex.7*
1015%{_mandir}/man7/maildropfilter.7*
1016%{_mandir}/man7/maildropgdbm.7*
debd9b9c 1017
9a3d2e11 1018%files maildir-tools
8e00b423 1019%defattr(644,root,root,755)
9754ea44
JB
1020%doc libs/maildir/README.*.html
1021%attr(755,root,root) %{_bindir}/maildirmake
1022%attr(755,root,root) %{_bindir}/maildirkw
1023%attr(755,root,root) %{_bindir}/maildiracl
1024%{_docdir}/courier/maildir*.html
8e00b423
AA
1025%{_mandir}/man1/maildirmake.1*
1026%{_mandir}/man1/maildirkw.1*
1027%{_mandir}/man1/maildiracl.1*
1028%{_mandir}/man5/maildir.5*
1029%{_mandir}/man7/maildirquota.7*
8e00b423 1030
debd9b9c 1031%files mlm
9e755595 1032%defattr(644,root,root,755)
debd9b9c 1033%attr(755,root,root) %{_bindir}/couriermlm
9754ea44
JB
1034%{_datadir}/courier/couriermlm
1035%{_docdir}/courier/couriermlm.html
1036%{_mandir}/man1/couriermlm.1*
1037
1038%files fax
1039%defattr(644,root,root,755)
1040%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/faxcoverpage.tr
1041%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/faxnotifyrc
1042%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/faxrc
1043%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/module.fax
1044%dir %{_libexecdir}/courier/modules/fax
1045%attr(755,root,root) %{_libexecdir}/courier/modules/fax/courierfax
1046%dir %{_datadir}/courier/faxmail
1047%{_datadir}/courier/faxmail/*.filter
1048%{_datadir}/courier/faxmail/coverpage
1049%{_datadir}/courier/faxmail/init
1050%{_datadir}/courier/faxmail/new_fax
1051%{_docdir}/courier/courierfax.html
1052%{_mandir}/man8/courierfax.8*
This page took 0.419614 seconds and 4 git commands to generate.