]> git.pld-linux.org Git - packages/courier.git/blobdiff - courier.spec
- added extra-path /usr/lib64/openssl (amd64)
[packages/courier.git] / courier.spec
index 94c84c7aab6b5619037f63422895ccce29d06a2b..c82985119e91219ea2a076aa3a352c24b3063e01 100644 (file)
@@ -1,19 +1,50 @@
+#
+# Conditional build:
+%bcond_with fam                # with fam support
+#
 Summary:       Courier mail server
 Summary(pl):   Serwer poczty Courier
 Name:          courier
-Version:       0.35.1
-Release:       1
+Version:       0.44.2
+Release:       3
 License:       GPL
-Group:         Applications/Mail
-Source:                http://ftp1.sourceforge.net/courier/%{name}-%{version}.tar.gz
+Group:         Networking/Daemons
+Source0:       http://dl.sourceforge.net/courier/%{name}-%{version}.tar.bz2
+# Source0-md5: 8c607c70a692d8f8ccb769a3f96d2f28
+Patch0:        %{name}-openssl-path.patch
+Patch1:                %{name}-withoutfam.patch
+Patch2:                %{name}-maildir.patch
+Patch3:                %{name}-no_res_query.patch
 URL:           http://www.courier-mta.org/
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: db-devel
+BuildRequires: expect
+BuildRequires: libstdc++-devel
+BuildRequires: libtool
+BuildRequires: mailcap
+BuildRequires: mysql-devel
+BuildRequires: openldap-devel
+BuildRequires: openssl-devel >= 0.9.7c
+BuildRequires: openssl-tools >= 0.9.7c
+BuildRequires: openssl-tools-perl >= 0.9.7c
+BuildRequires: pam-devel
+BuildRequires: perl-devel
+BuildRequires: postgresql-devel
+BuildRequires: sysconftool
+BuildRequires: zlib-devel
+%{?with_fam:BuildRequires:     fam-devel}
+Requires(post,preun):  /sbin/chkconfig
+Requires(post):        openssl-tools >= 0.9.7c
+%{?with_fam:Requires:  fam}
 Provides:      smtpdaemon
-#AutoProv:     no
-Prereq:                /sbin/chkconfig
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                apachedir       /home/httpd
-%define                _prefix         /usr/lib/courier
+%define                apachedir       /home/services/httpd
+%define                _datadir        %{_prefix}/share/courier
+%define                _mandir         /usr/share/man
+%define                _libdir         %{_prefix}/%{_lib}/courier
+%define                _libexecdir     %{_libdir}
 %define                _localstatedir  /var/spool/courier
 %define                _sysconfdir     /etc/courier
 %define                initdir         /etc/rc.d/init.d
@@ -28,7 +59,7 @@ Prereq:               /sbin/chkconfig
 %description
 Courier is a fully functional mail server, that can completely take
 over the mail services normally provided by sendmail, Qmail, or any
-other mail server.  Although Courier does not support all legacy
+other mail server. Although Courier does not support all legacy
 features of existing mail servers, the number of obsoleted functions
 is very small, and there are better, and more robust, alternatives
 available.
@@ -44,74 +75,59 @@ Wprawdzie Courier nie ma wszystkich mo
 ilo¶æ nie obs³ugiwanych funkcji jesgt bardzo ma³a, i s± dostêpne
 lepsze alternatywy.
 
-Courier zawiera wiele rozszerzeñ SMTP: DSN, PIPELINING, 8BITMIME.
-Ma tak¿e nowe rozszerzenia SMTP dla pocztowych list dyskusyjnych i
+Courier zawiera wiele rozszerzeñ SMTP: DSN, PIPELINING, 8BITMIME. Ma
+tak¿e nowe rozszerzenia SMTP dla pocztowych list dyskusyjnych i
 filtrowania spamu.
 
-%package sendmail-wrapper
-Summary:       Courier soft links for sendmail
-Summary(pl):   Wrapper sendmail do Couriera
-Group:         Applications/Mail
-Requires:      %{name} = %{version}
-
-%description sendmail-wrapper
-This package contains two soft links from /usr/sbin/sendmail and
-/usr/lib/sendmail to %{_bindir}/sendmail.  This allows application
-that use sendmail to transparently use Courier for sending mail.
-
-%description sendmail-wrapper -l pl
-Ten pakiet zawiera symlinki z /usr/sbin/sendmail i /usr/lib/sendmail
-do %{_bindir}/sendmail. Pozwala to aplikacjom u¿ywaj±cym sendmaila
-korzystaæ z Couriera.
-# acc. FHS these symlinks should be in main package...
-
 %package pop3d
 Summary:       Courier Integrated POP3 server
 Summary(pl):   Zintegrowany serwer POP3 do Couriera
-Group:         Applications/Mail
-Requires:      %{name} = %{version}
+Group:         Networking/Daemons
+Requires:      %{name} = %{version}-%{version}
+Requires(post):        openssl-tools >= 0.9.7c
 
 %description pop3d
 This package installs Courier mail server's integrated POP3 server,
 which allows you to download mail from your mailbox using any POP3
-client.  Courier's POP3 server can only be used to download mail
-from maildir mailboxes.  This server does not support mailbox files.
-If you do not need the ability to download your mail using a POP3
-client, you do not need to install this package.
+client. Courier's POP3 server can only be used to download mail from
+maildir mailboxes. This server does not support mailbox files. If you
+do not need the ability to download your mail using a POP3 client, you
+do not need to install this package.
 
 %description pop3d -l pl
 Ten pakiet zawiera zintegrowany serwer POP3 do Couriera, pozwalaj±cy
 na ¶ci±ganie poczty ze skrzynki przy pomocy dowolnego klienta POP3.
-Serwer POP3 Couriera mo¿e byæ u¿ywany tylko ze skrzynkami Maildir,
-nie obs³uguje skrzynek w postaci pojedynczych plików.
+Serwer POP3 Couriera mo¿e byæ u¿ywany tylko ze skrzynkami Maildir, nie
+obs³uguje skrzynek w postaci pojedynczych plików.
 
 %package imapd
 Summary:       Courier Integrated IMAP server
 Summary(pl):   Zintegrowany serwer IMAP do Couriera
-Group:         Applications/Mail
-Requires:      %{name} = %{version}
+Group:         Networking/Daemons
+Requires:      %{name} = %{version}-%{version}
+Requires(post):        openssl-tools >= 0.9.7c
 Obsoletes:     courier-imap
 Obsoletes:     courier-imap-common
 
 %description imapd
-This package installs Courier mail server's integrated IMAP server.
-If you do not need the ability to download your mail using an IMAP
-mail client, you do not need to install this package.  Courier's
-IMAP server can only be used to download mail from maildir
-mailboxes.  This server does not support mailbox files.
-
-This package requires that Courier must be already installed, this
-is NOT the standalone version of the Courier-IMAP server, and you
-cannot install both this package, and the standalone version of
-Courier-IMAP.  If you have the standalone version of the
-Courier-IMAP server already installed, installing this package
-will automatically remove the standalone version.
+This package installs Courier mail server's integrated IMAP server. If
+you do not need the ability to download your mail using an IMAP mail
+client, you do not need to install this package. Courier's IMAP server
+can only be used to download mail from maildir mailboxes. This server
+does not support mailbox files.
+
+This package requires that Courier must be already installed, this is
+NOT the standalone version of the Courier-IMAP server, and you cannot
+install both this package, and the standalone version of Courier-IMAP.
+If you have the standalone version of the Courier-IMAP server already
+installed, installing this package will automatically remove the
+standalone version.
 
 %description imapd -l pl
 Ten pakiet zawiera zintegrowany serwer IMAP do Couriera. Pozwala
-¶ci±gaæ pocztê przy pomocy klienta IMAP. Serwer IMAP Couriera mo¿e
-byæ u¿ywany tylko ze skrzynami Maildir, nie obs³uguje skrzynek
-w postaci pojedynczych plików.
+¶ci±gaæ pocztê przy pomocy klienta IMAP. Serwer IMAP Couriera mo¿e byæ
+u¿ywany tylko ze skrzynami Maildir, nie obs³uguje skrzynek w postaci
+pojedynczych plików.
 
 Ten pakiet wymaga serwera Courier, to NIE jest samodzielna wersja
 serwera Courier-IMAP. Nie mo¿na te¿ instalowaæ jednocze¶nie tego
@@ -121,21 +137,21 @@ pakietu automatycznie odinstaluje Courier-IMAP je
 %package webmail
 Summary:       Courier Integrated HTTP (webmail) server
 Summary(pl):   Zintegrowany serwer poczty przez HTTP (webmail) do Couriera
-Group:         Applications/Mail
-Requires:      %{name} = %{version}
+Group:         Networking/Daemons
+Requires:      %{name} = %{version}-%{version}
 Requires:      %{_cgibindir}
 Requires:      %{_documentrootdir}
 
 %description webmail
 This package installs Courier mail server's integrated HTTP webmail
-server.  If you do not need the ability to access your mail using a
-web browser, you do not need to install this package.  Courier's
-webmail server can only be used to download mail from maildir
-mailboxes.  This server does not support mailbox files.
+server. If you do not need the ability to access your mail using a web
+browser, you do not need to install this package. Courier's webmail
+server can only be used to download mail from maildir mailboxes. This
+server does not support mailbox files.
 
-This is the same server that's distributed separately under the
-name of SqWebMail, however its configuration is customized for the
-Courier mail server.
+This is the same server that's distributed separately under the name
+of SqWebMail, however its configuration is customized for the Courier
+mail server.
 
 %description webmail -l pl
 Ten pakiet zawiera zintegrowany serwer poczty przez HTTP (webmail) dla
@@ -148,227 +164,220 @@ SqWebMail, ale jego konfiguracja jest dostosowana do serwera Courier.
 
 %package mlm
 Summary:       Courier Integrated Mailing List Manager
-Summary(pl):   Zintegrowany menad¿er list dyskusyjnych do Couriera
+Summary(pl):   Zintegrowany zarz±dca list dyskusyjnych do Couriera
 Group:         Applications/Mail
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}-%{version}
 
 %description mlm
 This package installs couriermlm - a mailing list manager for the
-Courier mail server.  If you do not need the ability to manage
-mailing lists, you do not need to install this package.
+Courier mail server. If you do not need the ability to manage mailing
+lists, you do not need to install this package.
 
 couriermlm is used to set up, maintain, and run a mailing list.
 couriermlm automatically processes subscription and unsubscription
 requests, and removes undeliverable addresses from the subscription
-rolls.  Mailing lists managed by couriermlm require zero human
+rolls. Mailing lists managed by couriermlm require zero human
 administrative oversight. couriermlm supports digests, write-only
 posting aliases, and moderated mailing lists.
 
 %description mlm -l pl
-Ten pakiet zawiera couriermlm - menad¿er list dyskusyjnych dla
-Couriera. couriermlm jest u¿ywany do skonfigurowania, zarz±dzania i
-prowadzenia pocztowej listy dyskusyjnej. Automatycznie obs³uguje
-¿±dania zapisywania i wypisywania i usuwa niedzia³aj±ce adresy
-z listy subskrybentów. Listy obs³ugiwane przez couriermlm nie wymagaj±
-pracy administratora. couriermlm obs³uguje digesty, aliasy pocztowe
-tylko do wysy³ania i listy moderowane.
+Ten pakiet zawiera couriermlm - program do zarz±dzania listami
+dyskusyjnymi dla Couriera. couriermlm jest u¿ywany do konfigurowania,
+zarz±dzania i prowadzenia pocztowej listy dyskusyjnej. Automatycznie
+obs³uguje ¿±dania zapisywania i wypisywania oraz usuwa z listy
+niedzia³aj±ce adresy subskrybentów. Listy obs³ugiwane przez couriermlm
+nie wymagaj± pracy administratora. couriermlm obs³uguje digesty,
+aliasy pocztowe tylko do wysy³ania i listy moderowane.
 
 %package maildrop
 Summary:       Courier Integrated mail filter
 Summary(pl):   Zintegrowany filtr poczty do Couriera
 Group:         Applications/Mail
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}-%{version}
 
 %description maildrop
 This package installs Courier mail server's integrated mail filter.
-You need to install this package if you want to be able to filter
-your incoming mail.
+You need to install this package if you want to be able to filter your
+incoming mail.
 
 %description maildrop -l pl
 Ten pakiet zawiera zintegrowany filtr poczty dla Couriera. Jest
 potrzebny do filtrowania przychodz±cej poczty.
 
-%package maildrop-wrapper
-Summary:       Courier soft links for maildrop
-Summary(pl):   Wrapper maildrop do Couriera
-Group:         Applications/Mail
-Requires:      %{name}-maildrop = %{version}
-
-%description maildrop-wrapper
-This package installs several soft links from the /usr/local/bin
-directory to Courier's integrated maildrop mail filter.  Maildrop is
-available as a standalone package, which installs in %{_bindir}.
-If you have applications that expect to find maildrop in /usr/local/bin
-you can install this package to create soft links that point to
-Courier's integrated maildrop version instead, in order to continue
-to use those applications, without needing to reconfigure them.
-
-%description maildrop-wrapper -l pl
-Ten pakiet zawiera symlinki z katalogu /usr/local/bin do filtru maildrop
-Couriera. maildrop jest dostêpnym w oddzielnym pakiecie, instaluj±cym
-siê w %{_bindir}. Przydaje siê aplikacjom szukaj±cym maildropa
-w /usr/local/bin do u¿ywania z Courierem bez rekonfigurowania.
-# hmmm ??? to be removed...
-
 %package smtpauth
 Summary:       Courier mail server authenticated ESMTP module
-Summary(pl):   Modu³ autentykacji ESMTP (SMTP AUTH) do Couriera
-Group:         Applications/Mail
-Requires:      %{name} = %{version}
+Summary(pl):   Modu³ uwierzytelniania ESMTP (SMTP AUTH) do Couriera
+Group:         Networking/Daemons
+Requires:      %{name} = %{version}-%{version}
 
 %description smtpauth
-Authenticated ESMTP allows remote users to authenticate themselves
-and be able to relay outbound mail through the Courier mail server.
+Authenticated ESMTP allows remote users to authenticate themselves and
+be able to relay outbound mail through the Courier mail server.
 
 %description smtpauth -l pl
-SMTP AUTH pozwala zdalnym u¿ytkownikom na autentykacjê i umo¿liwienie
-przekazania wychodz±cej poczty poprzez serwer poczty Courier.
+SMTP AUTH pozwala zdalnym u¿ytkownikom na uwierzytelnianie i
+umo¿liwienie przekazania wychodz±cej poczty poprzez serwer poczty
+Courier.
 
-%prep
-%setup
+%package authldap
+Summary:        LDAP authentication daemon for Courier mail server
+Summary(pl):    Demon autentykacji LDAP do Couriera
+Group:          Networking/Daemons
+PreReq:         %{name} = %{version}-%{version}
 
-%configure2_13 \
-       --localstatedir=%{_localstatedir} \
-       --sysconfdir=%{_sysconfdir} \
-       --mandir=%{_mandir} \
-       --enable-imageurl=%{_imageurl}
+%description authldap
+This package provides LDAP authentication for Courier.
 
-cat >README.REDHAT <<EOF
+%description authldap -l pl
+Ten pakiet pozwala na korzystanie z autentykacji LDAP w Courierze.
 
-This installation of Courier is configured as follows:
+%package authmysql
+Summary:        MySQL authentication daemon for Courier mail server
+Summary(pl):    Demon autentykacji MySQL do Couriera
+Group:          Networking/Daemons
+PreReq:         %{name} = %{version}-%{version}
 
-Installation directory:          %{_prefix}
-Binary installation directory:   %{_exec_prefix}
-Binaries:                        %{_bindir}
-Superuser binaries:              %{_sbindir}
-Program executables:             %{_libexecdir}
-Configuration files:             %{_sysconfdir}
-Scripts, other non-binaries:     %{_datadir}
-Mail queue, temporary files:     %{_localstatedir}
-Manual pages:                    %{_mandir}
+%description authmysql
+This package provides MySQL authentication for Courier.
 
-EOF
+%description authmysql -l pl
+Ten pakiet pozwala na korzystanie z autentykacji MySQL w Courierze.
+
+%package authpgsql
+Summary:        PostgreSQL authentication daemon for Courier mail server
+Summary(pl):    Demon autentykacji PostgreSQL do Couriera
+Group:          Networking/Daemons
+PreReq:         %{name} = %{version}-%{version}
+
+%description authpgsql
+This package provides PostgreSQL authentication for Courier.
+
+%description authpgsql -l pl
+Ten pakiet pozwala na korzystanie z autentykacji PostgreSQL w Courierze.
+
+%prep
+%setup -q
+%patch0 -p1
+%{!?with_fam:%patch1 -p1}
+%patch2 -p1
+%patch3 -p1
 
 %build
+# we don't want fax module
+rm -rf courier/module.fax
+cp -f /usr/share/automake/config.sub webmail
+
+cd rootcerts
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+cd ..
+
+cd authlib
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+cd ..
+
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure \
+       --localstatedir=%{_localstatedir} \
+       --sysconfdir=%{_sysconfdir} \
+       --mandir=%{_mandir} \
+       --enable-imageurl=%{_imageurl} \
+       --with-db=db
+
 %{__make}
 %{__make} check
 
 %install
 rm -rf $RPM_BUILD_ROOT
 umask 022
-install -d $RPM_BUILD_ROOT%{_prefix}
-install -d $RPM_BUILD_ROOT/etc/pam.d
-
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
-
-ln -sf %{_sysconfdir}/pop3d.authpam $RPM_BUILD_ROOT/etc/pam.d/pop3
-ln -sf %{_sysconfdir}/esmtp.authpam $RPM_BUILD_ROOT/etc/pam.d/esmtp
-ln -sf %{_sysconfdir}/imapd.authpam $RPM_BUILD_ROOT/etc/pam.d/imap
-ln -sf %{_sysconfdir}/webmail.authpam $RPM_BUILD_ROOT/etc/pam.d/webmail
+install -d -p $RPM_BUILD_ROOT{%{_prefix},/etc/{cron.hourly,pam.d},%{initdir}} \
+       $RPM_BUILD_ROOT{%{_cgibindir},%{_documentrootdir}} \
+       $RPM_BUILD_ROOT{%{_sysconfdir}/userdb,%{_localstatedir}{/calendar,/tmp/broken}} \
+       $RPM_BUILD_ROOT/etc/cron.hourly
 
-%{__make} install-perms
-
-#
-# We're going to create some more config files later, so let's just make
-# sure they're processed as all other Courier config files
-#
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-echo '/etc/pam.d/esmtp 644 root root' >>permissions.dat
-echo '/etc/profile.d/courier.sh 755 bin bin config' >>permissions.dat
-echo '/etc/profile.d/courier.csh 755 bin bin config' >>permissions.dat
-echo '%{initdir}/courier 755 bin bin config' >>permissions.dat
+# fix pam problem
+rm -f $RPM_BUILD_ROOT%{_sysconfdir}/*.authpam
+for X in imap esmtp pop3 webmail calendar
+do
+cat > $RPM_BUILD_ROOT/etc/pam.d/$X <<EOF
+#%PAM-1.0
+auth       required     pam_unix.so shadow nullok
+account    required     pam_unix.so
+session    required     pam_unix.so
+EOF
+done
 
-#
-#  Translate permissions.dat to spec file filelist.
-#
+# delete dead links
+rm -f $RPM_BUILD_ROOT%{_mandir}/man1/dotforward.1 \
+$RPM_BUILD_ROOT%{_mandir}/man1/rmail.1 \
+$RPM_BUILD_ROOT%{_mandir}/man7/authcram.7 \
+$RPM_BUILD_ROOT%{_mandir}/man7/authdaemon.7 \
+$RPM_BUILD_ROOT%{_mandir}/man7/authdaemond.7 \
+$RPM_BUILD_ROOT%{_mandir}/man7/authldap.7 \
+$RPM_BUILD_ROOT%{_mandir}/man7/authmysql.7 \
+$RPM_BUILD_ROOT%{_mandir}/man7/authpam.7 \
+$RPM_BUILD_ROOT%{_mandir}/man7/authpwd.7 \
+$RPM_BUILD_ROOT%{_mandir}/man7/authshadow.7 \
+$RPM_BUILD_ROOT%{_mandir}/man7/authuserdb.7 \
+$RPM_BUILD_ROOT%{_mandir}/man7/authvchkpw.7 \
+$RPM_BUILD_ROOT%{_mandir}/man8/esmtpd-msa.8 \
+$RPM_BUILD_ROOT%{_mandir}/man8/makesmtpaccess-msa.8 \
+$RPM_BUILD_ROOT%{_mandir}/man8/filterctl.8 \
+$RPM_BUILD_ROOT%{_mandir}/man8/makeuucpneighbors.8 \
+$RPM_BUILD_ROOT%{_mandir}/man8/pw2userdb.8 \
+$RPM_BUILD_ROOT%{_mandir}/man8/vchkpw2userdb.8 \
+$RPM_BUILD_ROOT%{_mandir}/man8/courierpop3login.8
+
+# make man links
+echo '.so dot-forward.1' > $RPM_BUILD_ROOT%{_mandir}/man1/dotforward.1
+echo '.so sendmail.1' > $RPM_BUILD_ROOT%{_mandir}/man1/rmail.1
+echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authcram.7
+echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authdaemon.7
+echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authdaemond.7
+echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authldap.7
+echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authmysql.7
+echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authpgsql.7
+echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authpam.7
+echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authpwd.7
+echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authshadow.7
+echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authuserdb.7
+echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authvchkpw.7
+echo '.so esmtpd.8' > $RPM_BUILD_ROOT%{_mandir}/man8/esmtpd-msa.8
+echo '.so courierfilter.8' > $RPM_BUILD_ROOT%{_mandir}/man8/filterctl.8
+echo '.so makesmtpaccess.8' > $RPM_BUILD_ROOT%{_mandir}/man8/makesmtpaccess-msa.8
+echo '.so courieruucp.8' > $RPM_BUILD_ROOT%{_mandir}/man8/makeuucpneighbors.8
+echo '.so makeuserdb.8' > $RPM_BUILD_ROOT%{_mandir}/man8/pw2userdb.8
+echo '.so makeuserdb.8' > $RPM_BUILD_ROOT%{_mandir}/man8/vchkpw2userdb.8
+echo '.so courierpop3d.8' > $RPM_BUILD_ROOT%{_mandir}/man8/courierpop3login.8
 
-perl -e '
-$buildroot=$ENV{"RPM_BUILD_ROOT"};
-$prefix="%{_prefix}";
-$exec_prefix="%{_exec_prefix}";
-
-while (<>)
-{
-       chop if /\n$/;
-       ($file,$mode,$uid,$gid,$special)=split(/ +/);
-       $file=$prefix if $file eq "$prefix/.";
-
-       next if $special eq "doc";
-       next if $file eq "$prefix/doc";
-
-       # Ignore dir/. entries
-
-       next if $file =~ /\/\.$/;
-
-       # Ignore man directories
-
-       next if $file eq "%{_mandir}";
-       next if substr($file, 0, length("%{_mandir}")) eq "%{_mandir}"
-               && substr($file, length("%{_mandir}")) =~ /^\/man[1-9]$/;
-
-       $mode = "-" if $special eq "%doc";
-       $special="%config" if $special eq "config";
-       $special="%dir" if ! -l "$buildroot/$file" && -d "$buildroot/$file";
-       if ($special eq "man")
-       {
-               if ( -l "$buildroot/$file" )
-               {
-                       print STDERR "ln -s " . readlink("$buildroot$file")
-                               . ".gz $buildroot/$file.gz\n";
-                       symlink readlink("$buildroot$file")
-                               . ".gz", "$buildroot/$file.gz";
-               }
-               else
-               {
-                       print STDERR "gzip <$buildroot$file >$buildroot$file.gz\n";
-                       system("gzip <$buildroot$file >$buildroot$file.gz ; rm -f $buildroot$file");
-               }
-               $file="$file.gz"
-       }
-       $special="" unless $special =~ /%/;
-
-       $special="%attr($mode, $uid, $gid) $special";
-       print "$special $file\n";
-}
-
-' <permissions.dat >filelist1 || exit 1
-
-sed -n '/imap[\.a-z0-9]*$/p;/imapd-ssl/p' <filelist1 >filelist.imap
-sed -n '/pop3[\.a-z0-9]*$/p' <filelist1 >filelist.pop3
-sed -n '/couriermlm/p' <filelist1 >filelist.mlm
-sed -n '/authstart$/p;/authend$/p' <filelist1 >filelist.auth
-sed -n '/maildrop[^/]*$/p;/reformail[^/]*$/p;/reformime[^/]*$/p' <filelist1 >filelist.maildrop
-sed '/imap[\.a-z0-9]*$/d;/imapd-ssl/d;/pop3[\.a-z0-9]*$/d;/couriermlm/d;/webmail/d;/ldapaddressbook$/d;/maildrop[^/]*$/d;/reformail[^/]*$/d;/reformime[^/]*$/d;/authstart$/d;/authend$/d' <filelist1 >filelist
-
-sed -n '/sqwebmail/p;/webmail.authpam/p;/webmail-logincache/p;/ldapaddressbook$/p' <filelist1 | sed '/images/d' >filelist.webmail
+%{__make} install-perms
 
 # Note that we delete all 'webmail's, but copy over only 'sqwebmail's.
 # This removes all webmail-related stuff from the main filelist,
 # and adds everything except the executable, webmail, to filelist.webmail.
 # Here's why:
 
-install -d $RPM_BUILD_ROOT%{_cgibindir}
 cp -f $RPM_BUILD_ROOT%{_libexecdir}/courier/webmail/webmail \
        $RPM_BUILD_ROOT%{_cgibindir}/webmail
 
 # And here's why we delete all images from filelist.webmail:
-
-install -d $RPM_BUILD_ROOT%{_documentrootdir}
 mv -f $RPM_BUILD_ROOT%{_datadir}/sqwebmail/images $RPM_BUILD_ROOT%{_documentrootdir}/webmail
 
-# Do we need to install a cron job to clean out webmail's cache?
-
-if test -f webmail/cron.cmd
-then
-       install -d $RPM_BUILD_ROOT/etc/cron.hourly
-       cp webmail/cron.cmd $RPM_BUILD_ROOT/etc/cron.hourly/courier-webmail-cleancache
-       echo "%attr(555, root, wheel) /etc/cron.hourly/courier-webmail-cleancache" >>filelist.webmail
-fi
+# install a cron job to clean out webmail's cache
+install webmail/cron.cmd $RPM_BUILD_ROOT/etc/cron.hourly/courier-webmail-cleancache
 
-#
 # Move .html documentation back to build dir, so that RPM will move it to
 # the appropriate docdir
-#
 
 rm -rf htmldoc
 mkdir htmldoc
@@ -378,22 +387,34 @@ chmod a-w htmldoc/*
 # Manually set POP3DSTART and IMAPDSTART to yes, they'll go into a separate
 # package, so after it's installed they should be runnable.
 
-sed 's/^POP3DSTART.*/POP3DSTART=YES/' <$RPM_BUILD_ROOT%{_sysconfdir}/pop3d >$RPM_BUILD_ROOT%{_sysconfdir}/pop3d.new
-mv -f $RPM_BUILD_ROOT%{_sysconfdir}/pop3d.new $RPM_BUILD_ROOT%{_sysconfdir}/pop3d
+sed 's/^POP3DSTART.*/POP3DSTART=YES/' <$RPM_BUILD_ROOT%{_sysconfdir}/pop3d.dist >$RPM_BUILD_ROOT%{_sysconfdir}/pop3d.new
+mv -f $RPM_BUILD_ROOT%{_sysconfdir}/pop3d.new $RPM_BUILD_ROOT%{_sysconfdir}/pop3d.dist
 
-sed 's/^IMAPDSTART.*/IMAPDSTART=YES/' <$RPM_BUILD_ROOT%{_sysconfdir}/imapd >$RPM_BUILD_ROOT%{_sysconfdir}/imapd.new
-mv -f $RPM_BUILD_ROOT%{_sysconfdir}/imapd.new $RPM_BUILD_ROOT%{_sysconfdir}/imapd
+sed 's/^POP3DSSLSTART.*/POP3DSSLSTART=YES/' <$RPM_BUILD_ROOT%{_sysconfdir}/pop3d-ssl.dist >$RPM_BUILD_ROOT%{_sysconfdir}/pop3d-ssl.new
+mv -f $RPM_BUILD_ROOT%{_sysconfdir}/pop3d-ssl.new $RPM_BUILD_ROOT%{_sysconfdir}/pop3d-ssl.dist
 
-sed 's/^IMAPDSSLSTART.*/IMAPDSSLSTART=YES/' <$RPM_BUILD_ROOT%{_sysconfdir}/imapd-ssl >$RPM_BUILD_ROOT%{_sysconfdir}/imapd.new-ssl
-mv -f $RPM_BUILD_ROOT%{_sysconfdir}/imapd.new-ssl $RPM_BUILD_ROOT%{_sysconfdir}/imapd-ssl
+sed 's/^IMAPDSTART.*/IMAPDSTART=YES/' <$RPM_BUILD_ROOT%{_sysconfdir}/imapd.dist >$RPM_BUILD_ROOT%{_sysconfdir}/imapd.new
+mv -f $RPM_BUILD_ROOT%{_sysconfdir}/imapd.new $RPM_BUILD_ROOT%{_sysconfdir}/imapd.dist
 
-#
-# Red Hat init.d file
-#
+sed 's/^IMAPDSSLSTART.*/IMAPDSSLSTART=YES/' <$RPM_BUILD_ROOT%{_sysconfdir}/imapd-ssl.dist >$RPM_BUILD_ROOT%{_sysconfdir}/imapd.new-ssl
+mv -f $RPM_BUILD_ROOT%{_sysconfdir}/imapd.new-ssl $RPM_BUILD_ROOT%{_sysconfdir}/imapd-ssl.dist
 
-install -d $RPM_BUILD_ROOT%{initdir}
+# Want to have esmtpd running by default
+sed 's/^ESMTPDSTART.*/ESMTPDSTART=YES/' <$RPM_BUILD_ROOT%{_sysconfdir}/esmtpd.dist >$RPM_BUILD_ROOT%{_sysconfdir}/esmtpd.new
+mv -f $RPM_BUILD_ROOT%{_sysconfdir}/esmtpd.new $RPM_BUILD_ROOT%{_sysconfdir}/esmtpd.dist
 
-cp -f courier.sysvinit $RPM_BUILD_ROOT%{initdir}/courier
+# run script from install-configure (make config files)
+for confdist in `awk ' $5 == "config" && $1 ~ /\.dist$/ { print $1 }' <permissions.dat`
+do /usr/bin/perl ././sysconftool $RPM_BUILD_ROOT$confdist
+done
+
+# make locals, esmtpacceptmailfor.dir/esmtpacceptmailfor
+for X in locals esmtpacceptmailfor.dir/esmtpacceptmailfor
+do
+echo localhost >$RPM_BUILD_ROOT%{_sysconfdir}/$X
+done
+
+install courier.sysvinit $RPM_BUILD_ROOT%{initdir}/courier
 
 #
 # Red Hat /etc/profile.d scripts
@@ -430,48 +451,19 @@ else
 endif
 EOF
 
-#
 # sendmail soft links
-#
-
-install -d $RPM_BUILD_ROOT/usr/sbin
-install -d $RPM_BUILD_ROOT/usr/lib
-install -d $RPM_BUILD_ROOT/usr/bin
 
-ln -sf %{_bindir}/sendmail $RPM_BUILD_ROOT/usr/sbin/sendmail
 ln -sf %{_bindir}/sendmail $RPM_BUILD_ROOT/usr/lib/sendmail
-ln -sf %{_bindir}/sendmail $RPM_BUILD_ROOT/usr/bin/sendmail
-
-#
-# maildrop wrapper soft links
-#
-
-install -d $RPM_BUILD_ROOT/usr/local/bin
-
-for f in dotlock maildirmake maildrop makedat reformail reformime deliverquota
-do
-       ln -s %{_bindir}/$f $RPM_BUILD_ROOT/usr/local/bin/$f
-done
-
-for f in makeuserdb pw2userdb userdb userdbpw vchkpw2userdb
-do
-       ln -s %{_sbindir}/$f $RPM_BUILD_ROOT/usr/local/bin/$f
-done
-
-#
-# The following directories are not created by default, but I want them here.
-#
-
-install -d $RPM_BUILD_ROOT%{_sysconfdir}/userdb
-install -d $RPM_BUILD_ROOT%{_localstatedir}/tmp/broken
 
-. courier/uidgid || exit 1
+# This link by default is missing
+ln -sf %{_datadir}/esmtpd-ssl $RPM_BUILD_ROOT%{_sbindir}/esmtpd-ssl
 
-mailuser=daemon
-mailgroup=daemon
-
-echo "%attr(700, $mailuser, $mailgroup) %dir %{_sysconfdir}/userdb" >>filelist
-echo "%attr(755, $mailuser, $mailgroup) %dir %{_localstatedir}/tmp/broken" >>filelist
+# remove unpackaged files
+rm -f $RPM_BUILD_ROOT%{_sysconfdir}/*.dist
+rm -f $RPM_BUILD_ROOT%{_sysconfdir}/rfcerr*.txt
+rm -rf $RPM_BUILD_ROOT%{_datadir}/htmldoc
+rm -rf $RPM_BUILD_ROOT%{_datadir}/faxmail
+rm -f $RPM_BUILD_ROOT%{_mandir}/man5/maildir.5*
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -482,69 +474,445 @@ rm -rf $RPM_BUILD_ROOT
 %{_sbindir}/makesmtpaccess 2>/dev/null || true
 
 # If we do not have a certificate, make one up.
-
-if test ! -f %{_datadir}/esmtpd.pem
-then
+if [ ! -f %{_datadir}/esmtpd.pem ]; then
        %{_sbindir}/mkesmtpdcert
 fi
 
+cat <<EOF
+
+Now courier will refuse to accept SMTP messages except to localhost
+add hosts to /etc/courier/esmtpacceptmailfor.dir/esmtpacceptmailfor
+run makeacceptmailfor
+
+Add hosts to /etc/courier/locals you want to accept mail for
+run makealiases
+
+Enter user, who should receive mail for root, mailer-daemon and postmaster
+into /etc/courier/aliases/system
+
+EOF
+
 %preun
-%{initdir}/courier stop
-if test "$1" = "0"
-then
-        /sbin/chkconfig --del courier
+if [ "$1" = "0" ]; then
+       %{initdir}/courier stop
+       /sbin/chkconfig --del courier
 fi
 
 %post imapd
 # If we do not have a certificate, make one up.
-
-if test ! -f %{_datadir}/imapd.pem
-then
+if [ ! -f %{_datadir}/imapd.pem ]; then
        %{_sbindir}/mkimapdcert
 fi
-%preun imapd
 %{_sbindir}/imapd stop
+%{_sbindir}/imapd start
 %{_sbindir}/imapd-ssl stop
+%{_sbindir}/imapd-ssl start
 
-%preun pop3d
+%preun imapd
+if [ "$1" = "0" ]; then
+       %{_sbindir}/imapd stop
+       %{_sbindir}/imapd-ssl stop
+fi
+
+%post pop3d
+# If we do not have a certificate, make one up.
+if [ ! -f %{_datadir}/pop3d.pem ]; then
+       %{_sbindir}/mkpop3dcert
+fi
 %{_sbindir}/pop3d stop
+%{_sbindir}/pop3d start
 
-%post smtpauth
-%{_sbindir}/esmtpd stop
-%{_sbindir}/esmtpd start
+%preun pop3d
+if [ "$1" = "0" ]; then
+       %{_sbindir}/pop3d stop
+fi
 
-%postun smtpauth
-%{_sbindir}/esmtpd stop
-%{_sbindir}/esmtpd start
+%post webmail
+if ps -A |grep -q authdaemond; then
+    %{_libdir}/courier/sqwebmaild start
+fi
 
-%files -f filelist
+%preun webmail
+if ps -A |grep -q sqwebmaild; then
+    %{_libdir}/courier/sqwebmaild stop
+fi
 
-%attr(555, bin, bin) %doc README.REDHAT AUTHORS COPYING
-%attr(555, bin, bin) %doc htmldoc/*
+%post smtpauth
+%{_sbindir}/esmtpd stop
+%{_sbindir}/esmtpd start
 
-%files sendmail-wrapper
-%attr(-, bin, bin) /usr/sbin/sendmail
-%attr(-, bin, bin) /usr/bin/sendmail
-%attr(-, bin, bin) /usr/lib/sendmail
+echo
+echo Remember to enable auth in esmtp config files
+echo
 
-%files maildrop-wrapper
+%postun smtpauth
+if [ "$1" = "0" ]; then
+       %{_sbindir}/esmtpd stop
+       %{_sbindir}/esmtpd start
+fi
 
-%attr(-, bin, bin) /usr/local/bin/*
+%post authldap
+if ps -A |grep -q authdaemond; then
+    %{_libdir}/authlib/authdaemond stop
+    %{_libdir}/authlib/authdaemond start
+fi
 
-%files pop3d -f filelist.pop3
-%attr(644, root, wheel) /etc/pam.d/pop3
+%postun authldap
+if [ -x %{_libdir}/authlib/authdaemond ]; then
+    if ps -A |grep -q authdaemond; then
+       %{_libdir}/authlib/authdaemond stop;
+       %{_libdir}/authlib/authdaemond start;
+    fi
+fi
 
-%files imapd -f filelist.imap
-%attr(644, root, wheel) /etc/pam.d/imap
+%post authmysql
+if ps -A |grep -q authdaemond; then
+    %{_libdir}/authlib/authdaemond stop
+    %{_libdir}/authlib/authdaemond start
+fi
 
-%files webmail -f filelist.webmail
-%attr(4511, root, wheel) %{_cgibindir}/webmail
-%attr(644, root, wheel) /etc/pam.d/webmail
-%attr(755, bin, bin) %dir %{_documentrootdir}/webmail
-%attr(444, bin, bin) %{_documentrootdir}/webmail/*
+%postun authmysql
+if [ -x %{_libdir}/authlib/authdaemond ]; then
+    if ps -A |grep -q authdaemond; then
+       %{_libdir}/authlib/authdaemond stop;
+       %{_libdir}/authlib/authdaemond start;
+    fi
+fi
 
-%files maildrop -f filelist.maildrop
+%post authpgsql
+if ps -A |grep -q authdaemond; then
+    %{_libdir}/authlib/authdaemond stop
+    %{_libdir}/authlib/authdaemond start
+fi
 
-%files mlm -f filelist.mlm
+%postun authpgsql
+if [ -x %{_libdir}/authlib/authdaemond ]; then
+    if ps -A |grep -q authdaemond; then
+       %{_libdir}/authlib/authdaemond stop;
+       %{_libdir}/authlib/authdaemond start;
+    fi
+fi
 
-%files smtpauth -f filelist.auth
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS BENCHMARKS NEWS README TODO htmldoc/*
+%{_mandir}/man1/sendmail.1*
+%{_mandir}/man1/preline.1*
+%{_mandir}/man1/maildirmake.1*
+%{_mandir}/man1/maildirkw.1*
+%{_mandir}/man1/cancelmsg.1*
+%{_mandir}/man1/lockmail.1*
+%{_mandir}/man1/mailbot.1*
+%{_mandir}/man1/makemime.1*
+%{_mandir}/man1/mimegpg.1*
+%{_mandir}/man1/makedat.1*
+%{_mandir}/man1/testmxlookup.1*
+%{_mandir}/man1/dot-forward.1*
+%{_mandir}/man1/couriertls.1*
+%{_mandir}/man1/mailq*
+%{_mandir}/man1/couriertcpd*
+%{_mandir}/man1/dotforward.1*
+%{_mandir}/man1/rmail.1*
+%{_mandir}/man5/dot-courier.5*
+%{_mandir}/man7/localmailfilter.7*
+%{_mandir}/man7/maildirquota.7*
+%{_mandir}/man7/authlib.7*
+%{_mandir}/man7/authcram.7*
+%{_mandir}/man7/authdaemon.7*
+%{_mandir}/man7/authdaemond.7*
+%{_mandir}/man7/authpam.7*
+%{_mandir}/man7/authpwd.7*
+%{_mandir}/man7/authshadow.7*
+%{_mandir}/man7/authuserdb.7*
+%{_mandir}/man7/authvchkpw.7*
+%{_mandir}/man8/courierfilter.8*
+%{_mandir}/man8/courierperlfilter.8*
+%{_mandir}/man8/dupfilter.8*
+%{_mandir}/man8/courier.8*
+%{_mandir}/man8/courierldapaliasd.8*
+%{_mandir}/man8/deliverquota.8*
+%{_mandir}/man8/esmtpd.8*
+%{_mandir}/man8/makeacceptmailfor.8*
+%{_mandir}/man8/makehosteddomains.8*
+%{_mandir}/man8/mkesmtpdcert.8*
+%{_mandir}/man8/makealiases.8*
+%{_mandir}/man8/makepercentrelay.8*
+%{_mandir}/man8/makesmtpaccess.8*
+%{_mandir}/man8/makeuserdb.8*
+%{_mandir}/man8/submit.8*
+%{_mandir}/man8/userdb.8*
+%{_mandir}/man8/userdbpw.8*
+%{_mandir}/man8/courieruucp.8*
+%{_mandir}/man8/esmtpd-msa.8*
+%{_mandir}/man8/filterctl.8*
+%{_mandir}/man8/makesmtpaccess-msa.8*
+%{_mandir}/man8/makeuucpneighbors.8*
+%{_mandir}/man8/pw2userdb.8*
+%{_mandir}/man8/vchkpw2userdb.8*
+%dir %{_sysconfdir}
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ldapaddressbook
+%attr(755,daemon,daemon) %dir %{_sysconfdir}/aliasdir
+%attr(750,daemon,daemon) %dir %{_sysconfdir}/aliases
+%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/enablefiltering
+%attr(755,daemon,daemon) %dir %{_sysconfdir}/smtpaccess
+%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/smtpaccess/default
+%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/esmtpacceptmailfor.dir/esmtpacceptmailfor
+%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/locals
+%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/courierd
+%attr(640,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/aliases/system
+%attr(644,root,root) %{_sysconfdir}/quotawarnmsg.example
+%dir %{_libdir}
+%dir %{_libdir}/courier
+%dir %{_datadir}
+%{_datadir}/rootcerts
+%attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin
+%attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin/added
+%attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin/removed
+%attr(755,root,root) %dir %{_datadir}/courierwebadmin
+%attr(755,root,root) %{_datadir}/courierwebadmin/webadmin.pl
+%attr(755,root,root) %{_datadir}/courierwebadmin/dumpenv.pl
+%attr(755,root,root) %{_datadir}/courierwebadmin/admin-main.pl
+%attr(755,root,root) %{_datadir}/courierwebadmin/admin-save.pl
+%attr(755,root,root) %{_datadir}/courierwebadmin/admin-cancel.pl
+%{_datadir}/courierwebadmin/login.html
+%{_datadir}/courierwebadmin/admin-save.html
+%{_datadir}/courierwebadmin/admin-main.html
+%{_datadir}/courierwebadmin/unsecure.html
+%dir %{_libdir}/filters
+%attr(755,root,root) %{_libdir}/filters/*
+%attr(755,root,root) %{_datadir}/perlfilter-*.pl
+%dir %{_localstatedir}
+%attr(770,daemon,daemon) %dir %{_localstatedir}/tmp
+%attr(750,daemon,daemon) %dir %{_localstatedir}/msgs
+%attr(750,daemon,daemon) %dir %{_localstatedir}/msgq
+%attr(750,daemon,daemon) %dir %{_localstatedir}/filters
+%attr(750,daemon,daemon) %dir %{_localstatedir}/allfilters
+%attr(750,daemon,daemon) %dir %{_sysconfdir}/filters
+%attr(750,daemon,daemon) %dir %{_sysconfdir}/filters/active
+%attr(754,root,daemon) %{_datadir}/filterctl
+%attr(754,root,daemon) %{_sbindir}/filterctl
+%attr(754,root,daemon) %{_sbindir}/courierfilter
+%attr(755,root,root) %{_datadir}/courierwebadmin/admin-[01235]*.pl
+%{_datadir}/courierwebadmin/admin-[01235]*.html
+%{_datadir}/courierwebadmin/webadmin.pm
+%{_datadir}/courierwebadmin/notsupp.html
+%dir %{_libdir}/courier/modules
+%dir %{_libdir}/courier/modules/uucp
+%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/module.uucp
+%attr(755,root,root) %{_libdir}/courier/modules/uucp/courieruucp
+%attr(755,root,root) %{_sbindir}/makeuucpneighbors
+%attr(755,root,root) %{_datadir}/makeuucpneighbors
+%dir %{_libdir}/courier/modules/local
+%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/module.local
+%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/authmodulelist
+%attr(755,root,root) %{_libdir}/courier/modules/local/courierlocal
+%attr(755,root,root) %{_libdir}/courier/modules/local/courierdeliver
+%attr(755,root,root) %{_bindir}/preline
+%dir %{_libdir}/courier/modules/esmtp
+%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/module.esmtp
+%attr(750,root,daemon) %{_libdir}/courier/modules/esmtp/courieresmtp
+%attr(750,root,daemon) %{_libdir}/courier/modules/esmtp/courieresmtpd
+%attr(755,root,root) %{_libdir}/courier/modules/esmtp/addcr
+%attr(755,root,root) %{_sbindir}/courieresmtpd
+%attr(755,root,root) %{_bindir}/addcr
+%attr(755,root,root) %{_sbindir}/esmtpd
+%attr(755,root,root) %{_datadir}/esmtpd
+%attr(755,root,root) %{_sbindir}/esmtpd-ssl
+%attr(755,root,root) %{_datadir}/esmtpd-ssl
+%attr(755,root,root) %{_sbindir}/makesmtpaccess
+%attr(755,root,root) %{_datadir}/makesmtpaccess
+%attr(755,root,root) %{_sbindir}/makeacceptmailfor
+%attr(755,root,root) %{_datadir}/makeacceptmailfor
+%attr(755,root,root) %{_sbindir}/makepercentrelay
+%attr(755,root,root) %{_datadir}/makepercentrelay
+%attr(755,root,root) %{_sbindir}/mkesmtpdcert
+%attr(755,root,root) %{_datadir}/mkesmtpdcert
+%attr(755,root,root) %{_sbindir}/esmtpd-msa
+%attr(755,root,root) %{_sbindir}/makesmtpaccess-msa
+%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/esmtpd
+%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/esmtpd-msa
+%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/esmtpd-ssl
+%attr(755,daemon,daemon) %dir %{_sysconfdir}/esmtpacceptmailfor.dir
+%attr(755,daemon,daemon) %dir %{_sysconfdir}/esmtppercentrelay.dir
+%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/esmtpd.cnf
+%attr(600,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/esmtpauthclient
+%dir %{_libdir}/courier/modules/dsn
+%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsndelayed.txt
+%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsndelivered.txt
+%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsnfailed.txt
+%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsnrelayed.txt
+%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsnfooter.txt
+%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsnsubjectnotice.txt
+%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsnsubjectwarn.txt
+%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsnheader.txt
+%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/module.dsn
+%attr(755,root,root) %{_libdir}/courier/modules/dsn/courierdsn
+%{_libdir}/courier/modules/modules.ctl
+%attr(4550,daemon,daemon) %{_libdir}/courier/submitmkdir
+%attr(750,root,daemon) %{_libdir}/courier/courierd
+%attr(750,root,daemon) %{_libdir}/courier/aliasexp
+%attr(750,root,daemon) %{_libdir}/courier/aliascombine
+%attr(750,root,daemon) %{_libdir}/courier/aliascreate
+%attr(750,root,daemon) %{_libdir}/courier/submit
+%attr(755,root,root) %{_libdir}/courier/makedatprog
+%attr(755,root,root) %{_libdir}/%{name}/pcpd
+%attr(755,root,root) %{_sbindir}/courier
+%attr(755,root,root) %{_sbindir}/showconfig
+%attr(750,root,daemon) %{_sbindir}/showmodules
+%attr(755,root,root) %{_sbindir}/userdbpw
+%attr(755,root,root) %{_sbindir}/couriertcpd
+%attr(755,root,root) %{_sbindir}/courierlogger
+%attr(6555,daemon,daemon) %{_bindir}/cancelmsg
+%attr(755,root,root) %{_bindir}/courier-config
+%attr(2755,root,daemon) %{_bindir}/mailq
+%attr(755,root,root) %{_bindir}/maildirmake
+%attr(755,root,root) %{_bindir}/maildirkw
+%attr(4755,root,root) %{_bindir}/sendmail
+%attr(4755,root,root) %{_bindir}/rmail
+%attr(755,root,root) %{_bindir}/lockmail
+%attr(755,root,root) %{_bindir}/deliverquota
+%attr(755,root,root) %{_bindir}/mailbot
+%attr(755,root,root) %{_bindir}/makemime
+%attr(755,root,root) %{_bindir}/mimegpg
+%attr(755,root,root) %{_bindir}/dotforward
+%attr(755,root,root) %{_datadir}/makedat
+%attr(755,root,root) %{_bindir}/makedat
+%attr(755,root,root) %{_bindir}/testmxlookup
+%attr(750,root,daemon) %{_datadir}/makealiases
+%attr(750,root,daemon) %{_sbindir}/makealiases
+%attr(755,root,root) %{_datadir}/makehosteddomains
+%attr(755,root,root) %{_sbindir}/makehosteddomains
+%attr(755,root,root) %{_datadir}/makeuserdb
+%attr(755,root,root) %{_sbindir}/makeuserdb
+%attr(755,root,root) %{_datadir}/userdb
+%attr(755,root,root) %{_sbindir}/userdb
+%attr(755,root,root) %{_datadir}/pw2userdb
+%attr(755,root,root) %{_sbindir}/pw2userdb
+%attr(755,root,root) %{_datadir}/vchkpw2userdb
+%attr(755,root,root) %{_sbindir}/vchkpw2userdb
+%attr(755,root,root) %{_datadir}/courierctl.start
+%attr(755,root,root) %{_bindir}/couriertls
+%attr(640,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ldapaliasrc
+%attr(700,daemon,daemon) %{_sbindir}/courierldapaliasd
+%attr(660,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/authdaemonrc
+%dir %{_libdir}/authlib
+%attr(755,root,root) %{_libdir}/authlib/authdaemon
+%attr(755,root,root) %{_libdir}/authlib/authdaemond.plain
+%attr(755,root,root) %{_libdir}/authlib/authdaemond
+%attr(770,daemon,daemon) %dir %{_localstatedir}/authdaemon
+%attr(755,root,root) %dir %{_libdir}/authlib/changepwd
+%attr(4755,root,root) %{_libdir}/authlib/changepwd/authdaemon.passwd
+%attr(755,root,root) %{_libdir}/authlib/changepwd/authsystem.passwd
+%attr(755,root,root) %{_datadir}/authsystem.passwd
+%attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/esmtp
+%attr(755,root,root) /etc/profile.d/courier.sh
+%attr(755,root,root) /etc/profile.d/courier.csh
+%attr(754,root,root) /etc/rc.d/init.d/courier
+%attr(700,daemon,daemon) %dir %{_sysconfdir}/userdb
+%attr(755,daemon,daemon) %dir %{_localstatedir}/calendar
+%attr(755,daemon,daemon) %dir %{_localstatedir}/tmp/broken
+%attr(755,root,root) %{_bindir}/sendmail
+%attr(755,root,root) /usr/lib/sendmail
+
+%files pop3d
+%defattr(644,root,root,755)
+%attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/pop3
+%{_mandir}/man8/courierpop3d.8*
+%{_mandir}/man8/mkpop3dcert.8*
+%{_mandir}/man8/pop3d.8*
+%{_mandir}/man8/courierpop3login.8*
+%attr(755,root,root) %{_datadir}/courierwebadmin/admin-45pop3.pl
+%{_datadir}/courierwebadmin/admin-45pop3.html
+%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pop3d
+%attr(600,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pop3d.cnf
+%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pop3d-ssl
+%attr(755,root,root) %{_libdir}/courier/courierpop3d
+%attr(755,root,root) %{_libdir}/courier/courierpop3login
+%attr(755,root,root) %{_datadir}/pop3d
+%attr(755,root,root) %{_sbindir}/pop3d
+%attr(755,root,root) %{_datadir}/pop3d-ssl
+%attr(755,root,root) %{_sbindir}/pop3d-ssl
+%attr(755,root,root) %{_datadir}/mkpop3dcert
+%attr(755,root,root) %{_sbindir}/mkpop3dcert
+
+%files imapd
+%defattr(644,root,root,755)
+%attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/imap
+%{_mandir}/man8/imapd.8*
+%{_mandir}/man8/mkimapdcert.8*
+%attr(755,root,root) %{_datadir}/courierwebadmin/admin-40imap.pl
+%attr(644,root,root) %{_datadir}/courierwebadmin/admin-40imap.html
+%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/imapd
+%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/imapd-ssl
+%attr(600,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/imapd.cnf
+%attr(755,root,root) %{_libdir}/courier/imaplogin
+%attr(755,root,root) %{_sbindir}/imapd
+%attr(755,root,root) %{_sbindir}/imapd-ssl
+%attr(755,root,root) %{_datadir}/imapd
+%attr(755,root,root) %{_datadir}/imapd-ssl
+%attr(755,root,root) %{_bindir}/imapd
+%attr(755,root,root) %{_datadir}/mkimapdcert
+%attr(755,root,root) %{_sbindir}/mkimapdcert
+
+%files webmail
+%defattr(644,root,root,755)
+%attr(4755,root,root) %{_cgibindir}/webmail
+%attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/webmail
+%attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/calendar
+%{_documentrootdir}/webmail
+%dir %{_datadir}/sqwebmail
+%dir %{_datadir}/sqwebmail/html
+%dir %{_datadir}/sqwebmail/html/en-us
+%{_datadir}/sqwebmail/html/en
+%config %{_datadir}/sqwebmail/html/en-us/[CILT]*
+%{_datadir}/sqwebmail/html/en-us/*.html
+%{_datadir}/sqwebmail/html/en-us/*.txt
+%attr(755,root,root) %{_datadir}/courierwebadmin/admin-4*.pl
+%{_datadir}/courierwebadmin/admin-4*.html
+%attr(755,root,root) %{_datadir}/sqwebmail/webgpg
+%attr(755,root,root) %{_sbindir}/webgpg
+%attr(755,root,root) %{_datadir}/sqwebmail/cleancache.pl
+%attr(755,root,root) %{_datadir}/sqwebmail/sendit.sh
+%attr(755,root,root) %{_datadir}/sqwebmail/ldapsearch
+%attr(755,root,root) %{_libdir}/%{name}/sqwebmaild
+%dir %{_libdir}/%{name}/webmail/
+%attr(755,root,root) %{_libdir}/%{name}/webmail/webadmin
+%attr(755,root,root) %{_libdir}/%{name}/webmail/webmail
+%attr(700, bin, bin) %dir %{_localstatedir}/webmail-logincache
+%attr(755,root,root) /etc/cron.hourly/courier-webmail-cleancache
+
+%files maildrop
+%defattr(644,root,root,755)
+%{_mandir}/man1/maildrop.1*
+%{_mandir}/man1/refor*
+%{_mandir}/man5/maildrop*
+%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/maildrop
+%attr(755,root,root)  %{_bindir}/reformail
+%attr(755,root,root)  %{_bindir}/reformime
+%attr(4755,root,root) %{_bindir}/maildrop
+
+%files mlm
+%defattr(644,root,root,755)
+%{_mandir}/man1/couriermlm.1*
+%attr(755,root,root) %{_bindir}/couriermlm
+%{_datadir}/couriermlm
+
+%files smtpauth
+%defattr(644,root,root,755)
+%attr(4750,root,daemon) %{_libdir}/courier/modules/esmtp/authstart
+%attr(755,root,root) %{_libdir}/courier/modules/esmtp/authend
+
+%files authldap
+%{_mandir}/man7/authldap.7*
+%attr(755,root,root) %{_libdir}/authlib/authdaemond.ldap
+%attr(660,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/authldaprc
+
+%files authmysql
+%{_mandir}/man7/authmysql.7*
+%attr(755,root,root) %{_libdir}/authlib/authdaemond.mysql
+%attr(660,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/authmysqlrc
+
+%files authpgsql
+%{_mandir}/man7/authpgsql.7*
+%attr(755,root,root) %{_libdir}/authlib/authdaemond.pgsql
+%attr(660,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/authpgsqlrc
This page took 0.081784 seconds and 4 git commands to generate.