X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=courier.spec;h=eeb6774d04cc032be1678fc8464016bebfb8027d;hb=30a7fa6a68b0aee432d19b8d8c7cd6f489cf6230;hp=f279ae7fd22de43445eb65bcf2a97b08216369cb;hpb=c5520896d10f0be08c39bd628f7b20c1f2991cf1;p=packages%2Fcourier.git diff --git a/courier.spec b/courier.spec index f279ae7..eeb6774 100644 --- a/courier.spec +++ b/courier.spec @@ -1,46 +1,57 @@ +# TODO +# - test and bump rel. to 1 +# - doesn't -webadmin need webserver integration? +# - use rc-scripts here in %%post scriptlets # # Conditional build: -%bcond_with fam # with fam support +%bcond_without fam # with fam support +%bcond_with tests # without tests # Summary: Courier mail server Summary(pl): Serwer poczty Courier Name: courier -Version: 0.45.5 -Release: 0.5 +Version: 0.52.2 +Release: 2 License: GPL Group: Networking/Daemons Source0: http://dl.sourceforge.net/courier/%{name}-%{version}.tar.bz2 -# Source0-md5: 59f69d851740a11a0172eb803f9ab12f -Patch0: %{name}-openssl-path.patch +# Source0-md5: 73cda41adc5425ade94e1f9005b2218b +Patch0: %{name}-openssl-path.patch Patch1: %{name}-withoutfam.patch Patch2: %{name}-maildir.patch Patch3: %{name}-sendmail_dir.patch Patch4: %{name}-start_scripts.patch -Patch5: %{name}-fix_build.patch -Patch6: %{name}-certs.patch +Patch5: %{name}-certs.patch +Patch6: %{name}-db.patch URL: http://www.courier-mta.org/ BuildRequires: autoconf BuildRequires: automake -BuildRequires: db-devel +BuildRequires: courier-authlib-devel >= 0.57 BuildRequires: expect +%{?with_fam:BuildRequires: fam-devel} +BuildRequires: gettext-devel BuildRequires: libstdc++-devel BuildRequires: libtool BuildRequires: mailcap -BuildRequires: mysql-devel -BuildRequires: openldap-devel +BuildRequires: openldap-devel >= 2.3.0 BuildRequires: openssl-devel >= 0.9.7d BuildRequires: openssl-tools >= 0.9.7d BuildRequires: openssl-tools-perl >= 0.9.7d BuildRequires: pam-devel +BuildRequires: pcre-devel BuildRequires: perl-devel -BuildRequires: postgresql-devel +BuildRequires: rpmbuild(macros) >= 1.268 +BuildRequires: sed >= 4.0 BuildRequires: sysconftool -BuildRequires: zlib-devel -%{?with_fam:BuildRequires: fam-devel} Requires(post,preun): /sbin/chkconfig +Requires(post,preun): rc-scripts +# only for light upgrade from old version < 0.47 +# remove it after some time +Requires(post): courier-authlib-userdb Requires(post): openssl-tools >= 0.9.7d -%{?with_fam:Requires: fam} +Requires: perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION') Provides: smtpdaemon +Obsoletes: courier-smtpauth Obsoletes: exim Obsoletes: masqmail Obsoletes: nullmailer @@ -56,22 +67,18 @@ Obsoletes: ssmtp Obsoletes: zmailer BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define apachedir /home/services/httpd %define _datadir %{_prefix}/share/courier -%define _mandir /usr/share/man -%define _libdir %{_prefix}/%{_lib}/courier +%define _libdir %{_prefix}/%{_lib}/%{name} %define _libexecdir %{_libdir} %define _localstatedir /var/spool/courier %define _sysconfdir /etc/courier %define _certsdir %{_sysconfdir}/certs -%define initdir /etc/rc.d/init.d +%define _initrddir /etc/rc.d/init.d -# Change the following if your DocumentRoot and cgibindir differ. This is -# the default redhat build: - -%define _cgibindir %{apachedir}/cgi-bin -%define _documentrootdir %{apachedir}/html -%define _imageurl /webmail/ +%define _webapps /etc/webapps +%define _cgibindir %{_prefix}/lib/cgi-bin +%define _imagedir %{_datadir}/sqwebmail/images +%define _imageurl /webmail %description Courier is a fully functional mail server, that can completely take @@ -89,8 +96,8 @@ management and spam filtering. Courier jest w pe³ni funkcjonalnym serwerem poczty, mo¿e ca³kowicie zast±piæ us³ugi pocztowe dawane przez sendmail, Qmaila i inne serwery. Wprawdzie Courier nie ma wszystkich mo¿liwo¶ci istniej±cych serwerów, -ilo¶æ nie obs³ugiwanych funkcji jest bardzo ma³a, i s± dostêpne -lepsze alternatywy. +ilo¶æ nie obs³ugiwanych funkcji jest 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 @@ -100,8 +107,8 @@ filtrowania spamu. Summary: Courier Integrated POP3 server Summary(pl): Zintegrowany serwer POP3 do Couriera Group: Networking/Daemons -Requires: %{name} = %{version}-%{release} Requires(post): openssl-tools >= 0.9.7d +Requires: %{name} = %{version}-%{release} %description pop3d This package installs Courier mail server's integrated POP3 server, @@ -121,8 +128,8 @@ obs Summary: Courier Integrated IMAP server Summary(pl): Zintegrowany serwer IMAP do Couriera Group: Networking/Daemons -Requires: %{name} = %{version}-%{release} Requires(post): openssl-tools >= 0.9.7d +Requires: %{name} = %{version}-%{release} Obsoletes: courier-imap Obsoletes: courier-imap-common @@ -143,7 +150,7 @@ 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 +u¿ywany tylko ze skrzynkami Maildir, nie obs³uguje skrzynek w postaci pojedynczych plików. Ten pakiet wymaga serwera Courier, to NIE jest samodzielna wersja @@ -156,8 +163,11 @@ Summary: Courier Integrated HTTP administraton panel Summary(pl): Panel administracyjny przez HTTP dla Couriera Group: Networking/Daemons Requires: %{name} = %{version}-%{release} -Requires: %{_cgibindir} -Requires: webserver +Requires: FHS >= 2.3-12 +Requires: webapps +Requires: webserver = apache +Conflicts: apache-base < 2.2.0-8 +Conflicts: apache1 < 1.3.34-5.11 %description webadmin This is a web-based administration tool. Webadmin is a web CGI @@ -171,8 +181,11 @@ Summary: Courier Integrated HTTP (webmail) server Summary(pl): Zintegrowany serwer poczty przez HTTP (webmail) do Couriera Group: Networking/Daemons Requires: %{name} = %{version}-%{release} -Requires: %{_cgibindir} -Requires: %{_documentrootdir} +Requires: FHS >= 2.3-12 +Requires: webapps +Requires: webserver = apache +Conflicts: apache-base < 2.2.0-8 +Conflicts: apache1 < 1.3.34-5.11 %description webmail This package installs Courier mail server's integrated HTTP webmail @@ -204,7 +217,8 @@ Requires: %{name} = %{version}-%{release} This package contains tools for mail folders in Maildir format. %description maildir-tools -l pl -Ten pakiet zawiera narzêdzia do zarz±dzania folderami w formacie Maildir. +Ten pakiet zawiera narzêdzia do zarz±dzania folderami w formacie +Maildir. %package mlm Summary: Courier Integrated Mailing List Manager @@ -248,57 +262,6 @@ incoming mail. Ten pakiet zawiera zintegrowany filtr poczty dla Couriera. Jest potrzebny do filtrowania przychodz±cej poczty. -%package smtpauth -Summary: Courier mail server authenticated ESMTP module -Summary(pl): Modu³ uwierzytelniania ESMTP (SMTP AUTH) do Couriera -Group: Networking/Daemons -Requires: %{name} = %{version}-%{release} - -%description smtpauth -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 uwierzytelnianie i -umo¿liwienie przekazania wychodz±cej poczty poprzez serwer poczty -Courier. - -%package authldap -Summary: LDAP authentication daemon for Courier mail server -Summary(pl): Demon autentykacji LDAP do Couriera -Group: Networking/Daemons -PreReq: %{name} = %{version}-%{release} - -%description authldap -This package provides LDAP authentication for Courier. - -%description authldap -l pl -Ten pakiet pozwala na korzystanie z autentykacji LDAP w Courierze. - -%package authmysql -Summary: MySQL authentication daemon for Courier mail server -Summary(pl): Demon autentykacji MySQL do Couriera -Group: Networking/Daemons -PreReq: %{name} = %{version}-%{release} - -%description authmysql -This package provides MySQL authentication for Courier. - -%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}-%{release} - -%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 @@ -309,67 +272,61 @@ Ten pakiet pozwala na korzystanie z autentykacji PostgreSQL w Courierze. %patch5 -p1 %patch6 -p1 +echo " +Alias /webmail %{_imagedir} + + AllowOverride None + Options None + # FIXME: is allow from all the most safest way? + Allow from all + +" > apache.conf + %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} - -cd courier -%{__aclocal} -%{__autoconf} -ln -s ../ltmain.sh . -%{__automake} - -cd module.esmtp -%{__aclocal} -%{__autoconf} -ln -s ../ltmain.sh . -%{__automake} -cd ../.. - -cd imap -%{__aclocal} -%{__autoconf} -%{__automake} -cd .. +# Change Makefile.am files and force recreate Makefile.in's. +OLDDIR=`pwd` +find -type f -a \( -name configure.in -o -name configure.ac \) | while read FILE; do + cd "`dirname "$FILE"`" + + if [ -f Makefile.am ]; then + sed -i -e '/_[L]DFLAGS=-static/d' Makefile.am + fi + + %{__libtoolize} + %{__aclocal} + %{__autoconf} + %{__autoheader} + %{__automake} + + cd "$OLDDIR" +done %configure \ --localstatedir=%{_localstatedir} \ --sysconfdir=%{_sysconfdir} \ --mandir=%{_mandir} \ + --enable-imagedir=%{_imagedir} \ --enable-imageurl=%{_imageurl} \ --with-certsdir=%{_certsdir} \ --with-db=db \ - --with-mailer=%{_sbindir}/sendmail + --with-mailer=%{_sbindir}/sendmail \ + --with-mailuser=daemon \ + --with-mailgroup=daemon \ + --with-mailuid=2 \ + --with-mailgid=2 %{__make} -%{__make} check +%{!?with_tests:%{__make} check} %install rm -rf $RPM_BUILD_ROOT umask 022 -install -d -p $RPM_BUILD_ROOT{/etc/{cron.hourly,pam.d},%{initdir}} \ - $RPM_BUILD_ROOT{%{_cgibindir},%{_documentrootdir},%{_prefix}/lib} \ - $RPM_BUILD_ROOT%{_sysconfdir}/{userdb,hosteddomains,shared} \ - $RPM_BUILD_ROOT%{_localstatedir}{/calendar/{private,public},/tmp/broken} \ +install -d -p $RPM_BUILD_ROOT{/etc/{cron.hourly,pam.d},%{_initrddir}} \ + $RPM_BUILD_ROOT{%{_prefix}/lib,%{_cgibindir},%{_webapps}/courier-webmail,%{_sysconfdir}/hosteddomains} \ $RPM_BUILD_ROOT{/etc/cron.hourly,%{_certsdir}} %{__make} install \ @@ -379,7 +336,7 @@ install -d -p $RPM_BUILD_ROOT{/etc/{cron.hourly,pam.d},%{initdir}} \ rm -f $RPM_BUILD_ROOT%{_sysconfdir}/*.authpam for X in imap esmtp pop3 webmail calendar do -cat > $RPM_BUILD_ROOT/etc/pam.d/$X < $RPM_BUILD_ROOT/etc/pam.d/$X <<'EOF' #%PAM-1.0 auth required pam_unix.so shadow nullok account required pam_unix.so @@ -390,57 +347,29 @@ done # 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 %{__make} install-perms # Move webmail and webadmin to cgibindir -mv -f $RPM_BUILD_ROOT%{_libexecdir}/courier/webmail/webmail \ +mv -f $RPM_BUILD_ROOT%{_libdir}/courier/webmail/webmail \ $RPM_BUILD_ROOT%{_cgibindir}/webmail -mv -f $RPM_BUILD_ROOT%{_libexecdir}/courier/webmail/webadmin \ +mv -f $RPM_BUILD_ROOT%{_libdir}/courier/webmail/webadmin \ $RPM_BUILD_ROOT%{_cgibindir}/webadmin -# And here's why we delete all images from filelist.webmail: -mv -f $RPM_BUILD_ROOT%{_datadir}/sqwebmail/images $RPM_BUILD_ROOT%{_documentrootdir}/webmail - # install a cron job to clean out webmail's cache install webmail/cron.cmd $RPM_BUILD_ROOT/etc/cron.hourly/courier-webmail-cleancache @@ -455,31 +384,29 @@ 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.dist >$RPM_BUILD_ROOT%{_sysconfdir}/pop3d.new -mv -f $RPM_BUILD_ROOT%{_sysconfdir}/pop3d.new $RPM_BUILD_ROOT%{_sysconfdir}/pop3d.dist - -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/^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 - -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 +sed -i 's/^POP3DSTART.*/POP3DSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/pop3d.dist +sed -i 's/^POP3DSSLSTART.*/POP3DSSLSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/pop3d-ssl.dist +sed -i 's/^IMAPDSTART.*/IMAPDSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/imapd.dist +sed -i 's/^IMAPDSSLSTART.*/IMAPDSSLSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/imapd-ssl.dist # 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 +sed -i 's/^ESMTPDSTART.*/ESMTPDSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/esmtpd.dist # run script from install-configure (make config files) for confdist in `awk ' $5 == "config" && $1 ~ /\.dist$/ { print $1 }' $RPM_BUILD_ROOT%{_sysconfdir}/bofh <$RPM_BUILD_ROOT/etc/profile.d/courier.sh <$RPM_BUILD_ROOT/etc/profile.d/courier.csh </etc/courier/me -cat < %{_sysconfdir}/me + %banner -e %{name} <<'EOF' Now courier will refuse to accept SMTP messages except to localhost -add hosts to /etc/courier/esmtpacceptmailfor.dir/default +add hosts to %{_sysconfdir}/esmtpacceptmailfor.dir/default run makeacceptmailfor -Add hosts to /etc/courier/locals you want to accept mail for +Add hosts to %{_sysconfdir}/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 +into %{_sysconfdir}/aliases/system + +Default maildir is in ~/Mail/Maildir EOF fi -if [ -e /var/lock/subsys/courier ]; then - %{initdir}/courier restart -else -echo -echo Type "%{initdir}/courier start" to start courier -echo -fi +/sbin/chkconfig --add courier +%service courier restart %preun if [ "$1" = "0" ]; then - if [ -e /var/lock/subsys/courier ]; then - %{initdir}/courier stop - fi + %service courier stop /sbin/chkconfig --del courier fi %post imapd +# TODO: use rc-scripts here if [ -e %{_localstatedir}/tmp/imapd.pid ]; then - %{_sbindir}/imapd stop - %{_sbindir}/imapd start + %{_sbindir}/imapd stop + %{_sbindir}/imapd start +else + echo + echo 'Type "%{_sbindir}/imapd start" to start imapd server' + echo fi if [ -e %{_localstatedir}/tmp/imapd-ssl.pid ]; then - %{_sbindir}/imapd-ssl stop - %{_sbindir}/imapd-ssl start + %{_sbindir}/imapd-ssl stop + %{_sbindir}/imapd-ssl start +else + echo + echo Type "%{_sbindir}/imapd-ssl start" to start imapd-ssl server + echo fi %preun imapd if [ "$1" = "0" ]; then - if [ -e %{_localstatedir}/tmp/imapd.pid ]; then - %{_sbindir}/imapd stop - fi - if [ -e %{_localstatedir}/tmp/imapd-ssl.pid ]; then - %{_sbindir}/imapd-ssl stop - fi + if [ -e %{_localstatedir}/tmp/imapd.pid ]; then + %{_sbindir}/imapd stop + fi + if [ -e %{_localstatedir}/tmp/imapd-ssl.pid ]; then + %{_sbindir}/imapd-ssl stop + fi fi %post pop3d if [ -e %{_localstatedir}/tmp/pop3d.pid ]; then - %{_sbindir}/pop3d stop - %{_sbindir}/pop3d start + %{_sbindir}/pop3d stop + %{_sbindir}/pop3d start +else + echo + echo 'Type "%{_sbindir}/pop3d start" to start pop3d server' + echo fi if [ -e %{_localstatedir}/tmp/pop3d-ssl.pid ]; then - %{_sbindir}/pop3d-ssl stop - %{_sbindir}/pop3d-ssl start + %{_sbindir}/pop3d-ssl stop + %{_sbindir}/pop3d-ssl start +else + echo + echo 'Type "%{_sbindir}/pop3d-ssl start" to start pop3d-ssl server' + echo fi %preun pop3d if [ "$1" = "0" ]; then - if [ -e %{_localstatedir}/tmp/pop3d.pid ]; then - %{_sbindir}/pop3d stop - fi - if [ -e %{_localstatedir}/tmp/pop3d-ssl.pid ]; then - %{_sbindir}/pop3d-ssl stop - fi + if [ -e %{_localstatedir}/tmp/pop3d.pid ]; then + %{_sbindir}/pop3d stop + fi + if [ -e %{_localstatedir}/tmp/pop3d-ssl.pid ]; then + %{_sbindir}/pop3d-ssl stop + fi fi %post webadmin if [ "$1" = "1" ]; then -echo -echo Remember to put your webadmin password to %{_sysconfdir}/webadmin/password -echo + echo + echo Remember to put your webadmin password to %{_sysconfdir}/webadmin/password + echo fi %post webmail if [ "$1" = "1" ]; then -echo -echo If you want to have calendar starting by default then -echo put word net to %{_sysconfdir}/calendarmode -echo + echo + echo If you want to have calendar starting by default then + echo put word net to %{_sysconfdir}/calendarmode + echo fi -if ps -A |grep -q sqwebmaild; then - %{_libdir}/courier/sqwebmaild stop - %{_libdir}/courier/sqwebmaild start +if [ -e %{_localstatedir}/tmp/sqwebmaild.pid ]; then + %{_sbindir}/webmaild stop + %{_sbindir}/webmaild start else -echo -echo Type "%{_libdir}/courier/sqwebmaild start" to start webmail server -echo + echo + echo 'Type "%{_sbindir}/webmaild start" to start webmail server' + echo fi %preun webmail if [ "$1" = "0" ]; then - if ps -A |grep -q sqwebmaild; then - %{_libdir}/courier/sqwebmaild stop - fi + if [ -e %{_localstatedir}/tmp/sqwebmaild.pid ]; then + %{_sbindir}/webmaild stop + fi fi -%post smtpauth -if [ -e %{_localstatedir}/tmp/esmtpd.pid ]; then - %{_sbindir}/esmtpd stop - %{_sbindir}/esmtpd start -fi -if [ -e %{_localstatedir}/tmp/esmtpd-ssl.pid ]; then - %{_sbindir}/esmtpd-ssl stop - %{_sbindir}/esmtpd-ssl start -fi +%triggerin webmail -- apache1 < 1.3.37-3, apache1-base +%webapp_register apache courier-webmail -if [ "$1" = "1" ]; then -echo -echo Remember to enable auth in esmtp config files -echo -fi +%triggerun webmail -- apache1 < 1.3.37-3, apache1-base +%webapp_unregister apache courier-webmail -%postun smtpauth -if [ "$1" = "0" ]; then - if [ -e %{_localstatedir}/tmp/esmtpd.pid ]; then - %{_sbindir}/esmtpd stop - %{_sbindir}/esmtpd start - fi - if [ -e %{_localstatedir}/tmp/esmtpd-ssl.pid ]; then - %{_sbindir}/esmtpd-ssl stop - %{_sbindir}/esmtpd-ssl start - fi -fi +%triggerin webmail -- apache < 2.2.0, apache-base +%webapp_register httpd courier-webmail -%post authldap -if ps -A |grep -q authdaemond.lda; then - %{_libdir}/authlib/authdaemond stop - %{_libdir}/authlib/authdaemond start -fi +%triggerun webmail -- apache < 2.2.0, apache-base +%webapp_unregister httpd courier-webmail -%postun authldap -if [ -x %{_libdir}/authlib/authdaemond ]; then - if ps -A |grep -q authdaemond.lda; then - %{_libdir}/authlib/authdaemond stop; - %{_libdir}/authlib/authdaemond start; +%triggerpostun webmail -- courier-webmail < 0.52.2-0.2 +# migrate from apache-config macros +if [ -f /etc/courier/apache-courier.conf.rpmsave ]; then + if [ -d /etc/apache/webapps.d ]; then + cp -f %{_webapps}/courier-webmail/apache.conf{,.rpmnew} + cp -f /etc/courier/apache-courier.conf.rpmsave %{_webapps}/courier-webmail/apache.conf fi -fi - -%post authmysql -if ps -A |grep -q authdaemond.mys; then - %{_libdir}/authlib/authdaemond stop - %{_libdir}/authlib/authdaemond start -fi -%postun authmysql -if [ -x %{_libdir}/authlib/authdaemond ]; then - if ps -A |grep -q authdaemond.mys; then - %{_libdir}/authlib/authdaemond stop; - %{_libdir}/authlib/authdaemond start; + if [ -d /etc/httpd/webapps.d ]; then + cp -f %{_webapps}/courier-webmail/httpd.conf{,.rpmnew} + cp -f /etc/courier/apache-courier.conf.rpmsave %{_webapps}/courier-webmail/httpd.conf fi + rm -f /etc/courier/apache-courier.conf.rpmsave fi -%post authpgsql -if ps -A |grep -q authdaemond.pgs; then - %{_libdir}/authlib/authdaemond stop - %{_libdir}/authlib/authdaemond start +# migrating apache-config symlinks +if [ -L /etc/apache/conf.d/99_courier.conf ]; then + rm -f /etc/apache/conf.d/99_courier.conf + /usr/sbin/webapp register apache courier-webmail + %service -q apache reload fi - -%postun authpgsql -if [ -x %{_libdir}/authlib/authdaemond ]; then - if ps -A |grep -q authdaemond.pgs; then - %{_libdir}/authlib/authdaemond stop; - %{_libdir}/authlib/authdaemond start; - fi +if [ -L /etc/httpd/httpd.conf/99_courier.conf ]; then + rm -f /etc/httpd/httpd.conf/99_courier.conf + /usr/sbin/webapp register httpd courier-webmail + %service -q httpd reload fi %files @@ -749,15 +624,6 @@ fi %{_mandir}/man1/rmail.1* %{_mandir}/man5/dot-courier.5* %{_mandir}/man7/localmailfilter.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* @@ -771,41 +637,38 @@ fi %{_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} -%attr(750,root,root) %dir %{_certsdir} +%attr(755,daemon,daemon) %dir %{_sysconfdir} +%attr(750,daemon,daemon) %dir %{_certsdir} %attr(755,daemon,daemon) %dir %{_sysconfdir}/hosteddomains -%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/me -%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ldapaddressbook +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/me +%config(noreplace) %verify(not md5 mtime size) %{_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(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_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/default -%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 +%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/smtpaccess/default +%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpacceptmailfor.dir/default +%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bofh +%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/locals +%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/courierd +%attr(640,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/aliases/system +%{_sysconfdir}/quotawarnmsg.example %dir %{_libdir} %dir %{_libdir}/courier %dir %{_datadir} %{_datadir}/rootcerts %attr(755,root,root) %dir %{_datadir}/courierwebadmin +%{_datadir}/courierwebadmin/admin-15* %dir %{_libdir}/filters -%attr(755,root,root) %{_libdir}/filters/* -%attr(755,root,root) %{_datadir}/perlfilter-*.pl -%dir %{_localstatedir} +%attr(755,daemon,daemon) %{_libdir}/filters/* +%attr(755,daemon,daemon) %{_datadir}/perlfilter-*.pl +%attr(755,bin,bin) %dir %{_localstatedir} %attr(770,daemon,daemon) %dir %{_localstatedir}/tmp %attr(750,daemon,daemon) %dir %{_localstatedir}/msgs %attr(750,daemon,daemon) %dir %{_localstatedir}/msgq @@ -818,17 +681,17 @@ fi %attr(754,root,daemon) %{_sbindir}/courierfilter %dir %{_libdir}/courier/modules %dir %{_libdir}/courier/modules/uucp -%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/module.uucp +%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_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 md5 mtime size) %{_sysconfdir}/module.local %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(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_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 @@ -850,45 +713,43 @@ fi %attr(755,root,root) %{_sbindir}/makesmtpaccess-msa %attr(755,root,root) %{_sbindir}/sharedindexinstall %attr(755,root,root) %{_sbindir}/sharedindexsplit -%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(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpd +%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpd-msa +%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_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 -%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(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpd.cnf +%attr(600,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpauthclient +%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsndelayed.txt +%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsndelivered.txt +%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnfailed.txt +%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnrelayed.txt +%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnfooter.txt +%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnsubjectnotice.txt +%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnsubjectwarn.txt +%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnheader.txt +%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/module.dsn +%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rfcerr*.txt %dir %{_libdir}/courier/modules/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) %{_sbindir}/authenumerate +%attr(750,daemon,daemon) %{_libdir}/courier/courierd +%attr(750,daemon,daemon) %{_libdir}/courier/aliasexp +%attr(750,daemon,daemon) %{_libdir}/courier/aliascombine +%attr(750,daemon,daemon) %{_libdir}/courier/aliascreate +%attr(750,daemon,daemon) %{_libdir}/courier/submit +%attr(755,daemon,daemon) %{_libdir}/courier/makedatprog %attr(6555,daemon,daemon) %{_bindir}/cancelmsg %attr(755,root,root) %{_sbindir}/courier %attr(755,root,root) %{_datadir}/courierctl.start %attr(755,root,root) %{_bindir}/couriertls %attr(755,root,root) %{_sbindir}/couriertcpd -%attr(755,root,root) %{_sbindir}/courierlogger %attr(755,root,root) %{_bindir}/courier-config %attr(755,root,root) %{_bindir}/deliverquota %attr(755,root,root) %{_bindir}/dotforward %attr(755,root,root) %{_bindir}/lockmail %attr(755,root,root) %{_bindir}/mailbot -%attr(2755,root,daemon) %{_bindir}/mailq +%attr(2755,daemon,daemon) %{_bindir}/mailq %attr(750,root,daemon) %{_datadir}/makealiases %attr(750,root,daemon) %{_sbindir}/makealiases %attr(755,root,root) %{_datadir}/makedat @@ -896,55 +757,34 @@ fi %attr(755,root,root) %{_datadir}/makehosteddomains %attr(755,root,root) %{_sbindir}/makehosteddomains %attr(755,root,root) %{_bindir}/makemime -%attr(755,root,root) %{_datadir}/makeuserdb -%attr(755,root,root) %{_sbindir}/makeuserdb %attr(755,root,root) %{_bindir}/mimegpg -%attr(755,root,root) %{_datadir}/pw2userdb -%attr(755,root,root) %{_sbindir}/pw2userdb %attr(4755,root,root) %{_bindir}/rmail %attr(755,root,root) %{_sbindir}/showconfig %attr(750,root,daemon) %{_sbindir}/showmodules %attr(4755,root,root) %{_sbindir}/sendmail %attr(755,root,root) %{_bindir}/testmxlookup -%attr(755,root,root) %{_datadir}/userdb -%attr(755,root,root) %{_sbindir}/userdb -%attr(755,root,root) %{_sbindir}/userdbpw -%attr(755,root,root) %{_datadir}/vchkpw2userdb -%attr(755,root,root) %{_sbindir}/vchkpw2userdb -%attr(640,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ldapaliasrc +%attr(640,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_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 +%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/esmtp %attr(754,root,root) /etc/rc.d/init.d/courier -%attr(700,daemon,daemon) %dir %{_sysconfdir}/userdb -%attr(750,daemon,daemon) %dir %{_sysconfdir}/shared -%attr(755,daemon,daemon) %dir %{_localstatedir}/tmp/broken -%attr(755,root,root) /usr/lib/sendmail +%attr(755,daemon,daemon) %dir %{_sysconfdir}/shared +%attr(755,daemon,daemon) %dir %{_sysconfdir}/shared.tmp +%attr(755,daemon,daemon) %dir %{_localstatedir}/track +%attr(755,root,root) %{_prefix}/lib/sendmail %files pop3d %defattr(644,root,root,755) %doc htmldoc/*pop3d* -%attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/pop3 +%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/pop3 %{_mandir}/man8/courierpop3d.8* %{_mandir}/man8/courierpop3login.8* %{_mandir}/man8/mkpop3dcert.8* %{_mandir}/man8/pop3d.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(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pop3d +%attr(600,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pop3d.cnf +%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pop3d-ssl %attr(755,root,root) %{_libdir}/courier/courierpop3d %attr(755,root,root) %{_libdir}/courier/courierpop3login %attr(755,root,root) %{_datadir}/mkpop3dcert @@ -957,14 +797,14 @@ fi %files imapd %defattr(644,root,root,755) %doc htmldoc/*imapd* -%attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/imap +%config(noreplace) %verify(not md5 mtime size) /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 +%{_datadir}/courierwebadmin/admin-40imap.html +%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/imapd +%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/imapd-ssl +%attr(600,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/imapd.cnf %attr(755,root,root) %{_libdir}/courier/imaplogin %attr(755,root,root) %{_sbindir}/imapd %attr(755,root,root) %{_sbindir}/imapd-ssl @@ -976,12 +816,13 @@ fi %files webadmin %defattr(644,root,root,755) +# suid root to cgi-bin??? and it's not secured by apache config! %attr(4755,root,root) %{_cgibindir}/webadmin %attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin %attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin/added %attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin/removed -%attr(400,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/webadmin/password -%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/webadmin/unsecureok +%attr(400,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/webadmin/password +%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/webadmin/unsecureok %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 @@ -1001,14 +842,16 @@ fi %files webmail %defattr(644,root,root,755) %doc htmldoc/pcp* gpglib/README.html -%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 +%attr(755,root,root) %{_cgibindir}/webmail +%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/webmail +%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/calendar +%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sqwebmaild +%attr(755,root,root) %{_sbindir}/webmaild %dir %{_datadir}/sqwebmail %dir %{_datadir}/sqwebmail/html %dir %{_datadir}/sqwebmail/html/en-us %{_datadir}/sqwebmail/html/en +%{_datadir}/sqwebmail/images %config %{_datadir}/sqwebmail/html/en-us/[CILT]* %{_datadir}/sqwebmail/html/en-us/*.html %{_datadir}/sqwebmail/html/en-us/*.txt @@ -1021,21 +864,25 @@ fi %attr(755,root,root) %{_sbindir}/webgpg %attr(755,root,root) %{_libdir}/courier/pcpd %attr(755,root,root) %{_libdir}/courier/sqwebmaild +%attr(755,root,root) %{_libdir}/courier/sqwebpasswd %attr(700, bin, bin) %dir %{_localstatedir}/webmail-logincache %attr(755,root,root) /etc/cron.hourly/courier-webmail-cleancache -%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/calendarmode -%attr(751,bin,bin) %dir %{_localstatedir}/calendar -%attr(700,bin,bin) %dir %{_localstatedir}/calendar/localcache -%attr(750,bin,bin) %dir %{_localstatedir}/calendar/private -%attr(755,bin,bin) %dir %{_localstatedir}/calendar/public +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/calendarmode +%attr(755,bin,daemon) %dir %{_localstatedir}/calendar +%attr(700,bin,daemon) %dir %{_localstatedir}/calendar/localcache +%attr(750,bin,daemon) %dir %{_localstatedir}/calendar/private +%attr(755,bin,daemon) %dir %{_localstatedir}/calendar/public +%dir %attr(750,root,http) %{_webapps}/courier-webmail +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/courier-webmail/apache.conf +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/courier-webmail/httpd.conf %files maildrop %defattr(644,root,root,755) %doc htmldoc/r* htmldoc/maildrop* htmldoc/lockmail* %{_mandir}/man1/maildrop.1* %{_mandir}/man1/refor* -%{_mandir}/man5/maildrop* -%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/maildrop +%{_mandir}/man7/maildrop* +%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/maildrop %attr(4755,root,root) %{_bindir}/maildrop %attr(755,root,root) %{_bindir}/reformail %attr(755,root,root) %{_bindir}/reformime @@ -1058,37 +905,3 @@ fi %{_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 -%defattr(644,root,root,755) -%doc authlib/README.ldap -%attr(755,root,root) %{_libdir}/authlib/authdaemond.ldap -%attr(660,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/authldaprc -%{_mandir}/man7/authldap.7* -%attr(755,root,root) %{_datadir}/courierwebadmin/admin-15ldap.pl -%{_datadir}/courierwebadmin/admin-15ldap.html -%attr(755,root,root) %{_datadir}/courierwebadmin/admin-15ldapa.pl -%{_datadir}/courierwebadmin/admin-15ldapa.html - -%files authmysql -%defattr(644,root,root,755) -%doc authlib/README.authmysql.html authlib/README.authmysql.myownquery -%attr(755,root,root) %{_libdir}/authlib/authdaemond.mysql -%attr(660,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/authmysqlrc -%{_mandir}/man7/authmysql.7* -%attr(755,root,root) %{_datadir}/courierwebadmin/admin-15mysql.pl -%{_datadir}/courierwebadmin/admin-15mysql.html - -%files authpgsql -%defattr(644,root,root,755) -%doc authlib/README.authpostgres.html -%attr(755,root,root) %{_libdir}/authlib/authdaemond.pgsql -%attr(660,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/authpgsqlrc -%{_mandir}/man7/authpgsql.7* -%attr(755,root,root) %{_datadir}/courierwebadmin/admin-15pgsql.pl -%{_datadir}/courierwebadmin/admin-15pgsql.html