Hello community,
here is the log from the commit of package exim for openSUSE:Factory
checked in at Tue Aug 3 02:02:13 CEST 2010.
--------
New Changes file:
--- /dev/null 2010-05-08 11:31:08.000000000 +0200
+++ /mounts/work_src_done/STABLE/exim/exim.changes 2010-07-14 10:45:28.000000000 +0200
@@ -0,0 +1,1250 @@
+-------------------------------------------------------------------
+Wed Jul 14 10:45:19 CEST 2010 - dmueller@suse.de
+
+- fix mysql provides to be versioned again
+
+-------------------------------------------------------------------
+Tue Jun 8 15:36:36 UTC 2010 - poeml@cmdline.net
+
+- update to 4.72
+ - installed exipick 20100104.1, adding $max_received_linelength, $data_path,
+ and $header_path variables; fixed documentation bugs and typos
+ - installed exipick 20100222.0, added --input-dir and --finput to allow
+ exipick to access non-standard spools, including the "frozen" queue
+ (Finput)
+ - Bugzilla 965: Support mysql stored procedures. Patch from Alain Williams
+ - Bugzilla 961: Spacing fix (syntax error) on Makefile directives for NetBSD
+ - Bugzilla 955: Documentation fix for max_rcpts. Patch from Andreas Metzler
+ - Bugzilla 954: Fix for unknown responses from Dovecot authenticator. Patch
+ from Kirill Miazine
+ - Bugzilla 671: Added umask to procmail example.
+ - installed exipick 20100323.0, fixing doc bug
+ - Bugzilla 988: CVE-2010-2023 - prevent hardlink attack on sticky mail
+ directory. Notification and patch from Dan Rosenberg.
+ - PDKIM: Upgrade PolarSSL files to upstream version 0.12.1.
+ - Improve log output when DKIM signing operation fails.
+ - Treat the transport option dkim_domain as a colon separated list, not as a
+ single string, and sign the message with each element, omitting multiple
+ occurences of the same signer.
+ - Null terminate DKIM strings, Null initialise DKIM variable Bugzilla 985,
+ 986. Patch by Simon Arlott
+ - Bugzilla 967. dnsdb DNS TXT record bug fix (DKIM-related) Patch by Simon
+ Arlott
+ - Bugzilla 989: CVE-2010-2024 - work round race condition on MBX locking.
+ Notification from Dan Rosenberg.
+
+-------------------------------------------------------------------
+Wed May 26 11:24:50 UTC 2010 - poeml@cmdline.net
+
+- fix build of exim-mysql package by correcting path in postinstall script;
+ patch kindly provided by Christian Schweingruber
+
+-------------------------------------------------------------------
+Tue Nov 24 14:09:54 UTC 2009 - poeml@cmdline.net
+
+- update to 4.71
+ Bugfixes over 4.70:
+ * Bugzilla 912: Fix DKIM segfault on empty headers/body
+ * Bugzilla 913: Documentation fix for gnutls_* options.
+ * Bugzilla 722: Documentation for randint. Better randomness defaults.
+ * Bugzilla 847: Enable DNSDB lookup by default.
+ * Bugzilla 915: Flag broken perl installation during build.
+
+-------------------------------------------------------------------
+Sat Nov 14 10:54:59 UTC 2009 - poeml@cmdline.net
+
+- update to 4.70
+ This release is a combination feature and bug fix release.
+ The major new features are:-
+ * Native DKIM support without an external library.
+ * Experimental DCC support via dccifd (contributed by Wolfgang Breyha).
+ Other changes:-
+ * PCRE is no longer included with the Exim distribution. You will
+ need a separate PCRE library (and matching headers) to compile
+ Exim. You will need to change your Local/Makefile to support
+ this. Most modern systems have a packaged PCRE library,
+ alternatively PCRE can be found at http://www.pcre.org/
+ * Experimental Yahoo! Domainkeys support dropped in favor of
+ native DKIM support.
+ * The documentation has been updated and regenerated.
+ As usual, all changes are in the doc/ChangeLog file:
+ http://vcs.exim.org/viewvc/exim/exim-doc/doc-txt/ChangeLog?view=markup&pathrev=exim_4_70
+
+-------------------------------------------------------------------
+Tue Jun 9 17:47:56 CEST 2009 - poeml@suse.de
+
+- silence some rpmlint warnings, by removing executable permissions
+ from utilities packaged under documentation.
+- in the exim-mysql package, remove the versioned Provides, because
+ rpmlint doesn't like it at all.
+
+-------------------------------------------------------------------
+Wed Oct 29 18:39:31 CET 2008 - poeml@suse.de
+
+- add Required-Stop to init script, as required by LSB.
+
+-------------------------------------------------------------------
+Wed Aug 20 16:22:17 CEST 2008 - poeml@suse.de
+
+- also add "spamd postgresql mysql" to should-start and should-stop
+ in the LSB headers of /etc/init.d/exim
+
+-------------------------------------------------------------------
+Mon Aug 18 12:00:46 CEST 2008 - poeml@suse.de
+
+- fix init script LSB headers -- Should-Stop added
+
+-------------------------------------------------------------------
+Sun Jun 15 14:27:56 CEST 2008 - poeml@suse.de
+
+- fix logic of decision (in logrotate snippet) whether to send the
+ weekly reports
+
+-------------------------------------------------------------------
+Fri Jan 25 23:22:38 CET 2008 - meissner@suse.de
+
+- fixed an array overflow spotted by gcc4.3.
+
+-------------------------------------------------------------------
+Thu Jan 10 19:25:40 CET 2008 - poeml@suse.de
+
+- update to 4.69, which is mainly a bug fix release (although there
+ is also preliminary DKIM support available if compiled with
+ appropriate flags, which we don't do). The major change is an
+ update to the embedded PCRE library in response to security
+ issues, which are not relevant here, since we link against the
+ system pcre library, assuming that it has been fixed already.
+ TK/01 Add preliminary DKIM support. Currently requires a forked version of
+ ALT-N's libdkim that I have put here:
+ http://duncanthrax.net/exim-experimental/
+ Note to Michael Haardt: I had to rename some vars in sieve.c. They
+ were called 'true' and it seems that C99 defines that as a reserved
+ keyword to be used with 'bool' variable types. That means you could
+ not include C99-style headers which use bools without triggering
+ build errors in sieve.c.
+ NM/01 Bugzilla 592: --help option is handled incorrectly if exim is invoked
+ as mailq or other aliases. Changed the --help handling significantly
+ to do whats expected. exim_usage() emits usage/help information.
+ SC/01 Added the -bylocaldomain option to eximstats.
+ NM/02 Bugzilla 619: Defended against bad data coming back from gethostbyaddr
+ NM/03 Bugzilla 613: Documentation fix for acl_not_smtp
+ NM/04 Bugzilla 628: PCRE update to 7.4 (work done by John Hall)
+
+-------------------------------------------------------------------
+Fri Sep 28 01:55:04 CEST 2007 - poeml@suse.de
+
+- add #include to apparmor profile, to
+ allow for interactive usage (mailq, exim -M, ...)
+
+-------------------------------------------------------------------
+Thu Aug 30 17:37:17 CEST 2007 - poeml@suse.de
+
+- update to 4.68
+ PH/01 Another patch from the Sieve maintainer.
+ PH/02 When an IPv6 address is converted to a string for single-key lookup
+ in an address list (e.g. for an item such as "net24-dbm;/net/works"),
+ dots are used instead of colons so that keys in lsearch files need not
+ contain colons. This was done some time before quoting was made available
+ in lsearch files. However, iplsearch files do require colons in IPv6 keys
+ (notated using the quote facility) so as to distinguish them from IPv4
+ keys. This meant that lookups for IP addresses in host lists did not work
+ for iplsearch lookups.
+ This has been fixed by arranging for IPv6 addresses to be expressed with
+ colons if the lookup type is iplsearch. This is not incompatible, because
+ previously such lookups could never work.
+ The situation is now rather anomolous, since one *can* have colons in
+ ordinary lsearch keys. However, making the change in all cases is
+ incompatible and would probably break a number of configurations.
+ TK/01 Change PRVS address formatting scheme to reflect latests BATV draft
+ version.
+ MH/01 The "spam" ACL condition code contained a sscanf() call with a %s
+ conversion specification without a maximum field width, thereby enabling
+ a rogue spamd server to cause a buffer overflow. While nobody in their
+ right mind would setup Exim to query an untrusted spamd server, an
+ attacker that gains access to a server running spamd could potentially
+ exploit this vulnerability to run arbitrary code as the Exim user.
+ TK/02 Bugzilla 502: Apply patch to make the SPF-Received: header use
+ $primary_hostname instead of what libspf2 thinks the hosts name is.
+ MH/02 The dsearch lookup now uses lstat(2) instead of stat(2) to look for
+ a directory entry by the name of the lookup key. Previously, if a
+ symlink pointed to a non-existing file or a file in a directory that
+ Exim lacked permissions to read, a lookup for a key matching that
+ symlink would fail. Now it is enough that a matching directory entry
+ exists, symlink or not. (Bugzilla 503.)
+ PH/03 The body_linecount and body_zerocount variables are now exported in the
+ local_scan API.
+ PH/04 Added the $dnslist_matched variable.
+ PH/05 Unset $tls_cipher and $tls_peerdn before making a connection as a client.
+ This means they are set thereafter only if the connection becomes
+ encrypted.
+ PH/06 Added the client_condition to authenticators so that some can be skipped
+ by clients under certain conditions.
+ PH/07 The error message for a badly-placed control=no_multiline_responses left
+ "_responses" off the end of the name.
+ PH/08 Added -Mvc to output a copy of a message in RFC 2822 format.
+ PH/09 Tidied the code for creating ratelimiting keys, creating them explicitly
+ (without spaces) instead of just copying the configuration text.
+ PH/10 Added the /noupdate option to the ratelimit ACL condition.
+ PH/11 Added $max_received_linelength.
+ PH/12 Added +ignore_defer and +include_defer to host lists.
+ PH/13 Installed PCRE version 7.2. This needed some changes because of the new
+ way in which PCRE > 7.0 is built.
+ PH/14 Implemented queue_only_load_latch.
+ PH/15 Removed an incorrect (int) cast when reading the value of SIZE in a
+ MAIL command. The effect was to mangle the value on 64-bit systems.
+ PH/16 Another patch from the Sieve maintainer.
+ PH/17 Added the NOTQUIT ACL, based on a patch from Ted Cooper.
+ PH/18 If a system quota error occurred while trying to create the file for
++++ 1053 more lines (skipped)
++++ between /dev/null
++++ and /mounts/work_src_done/STABLE/exim/exim.changes
calling whatdependson for head-i586
New:
----
apparmor.usr.sbin.exim
exim-4.12-tail.patch
exim-4.72.tar.bz2
exim.changes
exim.logrotate
exim.rc
exim.spec
exim4-manpages.tar.bz2
eximstats-html-update.py
eximstats.conf
permissions.exim
sysconfig.exim
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ exim.spec ++++++
#
# spec file for package exim (Version 4.72)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: exim
BuildRequires: db-devel openldap2-devel pcre-devel
%if %{?suse_version:1}%{?!suse_version:0}
BuildRequires: tcpd-devel
%if %suse_version > 910
BuildRequires: xorg-x11-devel
%else
BuildRequires: XFree86-devel XFree86-libs
%endif
%else
BuildRequires: libXaw-devel libXext-devel libXt-devel openssl-devel tcp_wrappers xorg-x11-server-sdk
%endif
Url: http://www.exim.org/
Conflicts: sendmail sendmail-tls postfix
License: GPLv2+
Group: Productivity/Networking/Email/Servers
AutoReqProv: on
Provides: smtp_daemon
%if %{?suse_version:%suse_version}%{?!suse_version:0} > 800
Requires: logrotate
PreReq: %insserv_prereq %fillup_prereq /usr/sbin/useradd fileutils textutils
%endif
Version: 4.72
Release: 1
%if %{?build_with_mysql:1}0
BuildRequires: mysql-devel
Provides: exim = %version
%endif
Summary: The Exim Mail Transfer Agent, a Replacement for sendmail
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: exim-%{version}.tar.bz2
Source1: sysconfig.exim
Source2: exim.logrotate
Source11: exim.rc
Source12: permissions.exim
Source13: apparmor.usr.sbin.exim
Source20: http://www.logic.univie.ac.at/~ametzler/debian/exim4manpages/exim4-manpages....
Source30: eximstats-html-update.py
Source31: eximstats.conf
Patch: exim-4.12-tail.patch
%if !%{?build_with_mysql:1}0
%package -n eximon
License: GPLv2+
Summary: Eximon, an graphical frontend to administer Exim's mail queue
Group: Productivity/Networking/Email/Servers
%package -n eximstats-html
License: GPLv2+
Summary: Create HTML reports of exim logs
Group: Productivity/Networking/Email/Servers
Requires: perl-GD perl-GDGraph perl-GDTextUtil
%endif
%description
Exim is a mail transport agent (MTA) developed at the University of
Cambridge for use on Unix systems connected to the Internet. It is
freely available under the terms of the GNU General Public Licence. In
style, it is similar to Smail 3, but its facilities are more extensive.
In particular, it has options for verifying incoming sender and
recipient addresses, for refusing mail from specified hosts, networks,
or senders, and for controlling mail relaying.
Authors:
--------
Philip Hazel
%if !%{?build_with_mysql:1}0
%description -n eximon
This allows administrators to view the exim agent's mail queue and
logs, and perform a variety of actions on queued messages, such as
freezing, bouncing and thawing messages, and even editing body and
header of mails.
Authors:
--------
Philip Hazel
%description -n eximstats-html
If this package is installed alongside the exim MTA, and you enable
EXIM_REPORT_WEEKLY_HTML in /etc/sysconfig/exim, logrotate/cron will
create HTML reports in /srv/www/eximstats.
You can edit /etc/apache2/conf.d/eximstats.conf to configure your
webserver for the reports.
The script /usr/sbin/eximstats-html-update.py can create the reports
for log files that were rotated in the past. (You would only run this
once, if at all. The rest is done by logrotate / cron.)
Authors:
--------
Philip Hazel
%endif
%prep
%setup -q -n exim-%{version}
%patch
# build with fPIE/pie on SUSE 10.0 or newer, or on any other platform
%if %{?suse_version:%suse_version}%{?!suse_version:99999} > 930
fPIE="-fPIE"
pie="-pie"
%endif
cat <<-EOF > Local/Makefile
# see src/EDITME for comments.
BIN_DIRECTORY=/usr/sbin
CONFIGURE_FILE=/etc/exim/exim.conf
EXIM_USER=mail
EXIM_GROUP=mail
SPOOL_DIRECTORY=/var/spool/exim
ROUTER_ACCEPT=yes
ROUTER_DNSLOOKUP=yes
ROUTER_IPLITERAL=yes
ROUTER_MANUALROUTE=yes
ROUTER_QUERYPROGRAM=yes
ROUTER_REDIRECT=yes
# ROUTER_IPLOOKUP=yes
TRANSPORT_APPENDFILE=yes
TRANSPORT_AUTOREPLY=yes
TRANSPORT_PIPE=yes
TRANSPORT_SMTP=yes
TRANSPORT_LMTP=yes
SUPPORT_MAILDIR=yes
SUPPORT_MAILSTORE=yes
SUPPORT_MBX=yes
LOOKUP_DBM=yes
LOOKUP_LSEARCH=yes
LOOKUP_CDB=yes
LOOKUP_DNSDB=yes
LOOKUP_DSEARCH=yes
LOOKUP_LDAP=yes
%if %{?build_with_mysql:1}0
LOOKUP_MYSQL=yes
%endif
LOOKUP_NIS=yes
# LOOKUP_NISPLUS=yes
# LOOKUP_ORACLE=yes
LOOKUP_PASSWD=yes
# LOOKUP_PGSQL=yes
# LOOKUP_WHOSON=yes
CYRUS_SASLAUTHD_SOCKET=/var/run/sasl2/mux
LDAP_LIB_TYPE=OPENLDAP2
# LOOKUP_INCLUDE=-I /usr/local/ldap/include -I /usr/local/mysql/include -I /usr/local/pgsql/include
# LOOKUP_LIBS=-L/usr/local/lib -lldap -llber -lmysqlclient -lpq
LOOKUP_LIBS=-lldap -llber
%if %{?build_with_mysql:1}0
LOOKUP_INCLUDE=-I /usr/include/mysql
LOOKUP_LIBS=-lldap -llber -lmysqlclient
%endif
EXIM_MONITOR=eximon.bin
WITH_CONTENT_SCAN=yes
WITH_OLD_DEMIME=yes
AUTH_CRAM_MD5=yes
AUTH_PLAINTEXT=yes
# AUTH_SPA=yes
AUTH_DOVECOT=yes
SUPPORT_TLS=yes
TLS_LIBS=-lssl -lcrypto
INFO_DIRECTORY=%{_infodir}
LOG_FILE_PATH=/var/log/exim/%%s.log
EXICYCLOG_MAX=10
SYSLOG_LOG_PID=yes
COMPRESS_COMMAND=/bin/gzip
COMPRESS_SUFFIX=gz
ZCAT_COMMAND=/usr/bin/zcat
# SUPPORT_PAM=yes
# You probably need to add -lpam to EXTRALIBS
# RADIUS_CONFIG_FILE=/etc/radiusclient/radiusclient.conf
# CYRUS_PWCHECK_SOCKET=/var/pwcheck/pwcheck
# USE_TCP_WRAPPERS=yes
NO_SYMLINK=yes
CHOWN_COMMAND=/bin/chown
CHGRP_COMMAND=/bin/chgrp
MV_COMMAND=/bin/mv
RM_COMMAND=/bin/rm
PERL_COMMAND=/usr/bin/perl
# APPENDFILE_MODE=0600
# APPENDFILE_DIRECTORY_MODE=0700
# APPENDFILE_LOCKFILE_MODE=0600
# CONFIGURE_FILE_USE_NODE=yes
# CONFIGURE_FILE_USE_EUID=yes
# DELIVER_BUFFER_SIZE=8192
# EXIMDB_DIRECTORY_MODE=0750
# EXIMDB_MODE=0640
# EXIMDB_LOCKFILE_MODE=0640
# HEADER_MAXSIZE="(1024*1024)"
# INPUT_DIRECTORY_MODE=0750
# LOG_DIRECTORY_MODE=0750
# LOG_MODE=0640
# LOOKUP_TESTDB=yes
MAKE_SHELL=/bin/bash
# MAX_NAMED_LIST=16
# MAXINTERFACES=250
# MSGLOG_DIRECTORY_MODE=0750
# PERL_CC=
# PERL_CCOPTS=
# PERL_LIBS=
PID_FILE_PATH=/var/run/exim.pid
# SPOOL_DIRECTORY_MODE=0750
# SPOOL_MODE=0640
SUPPORT_MOVE_FROZEN_MESSAGES=yes
HAVE_IPV6=YES
CFLAGS=$RPM_OPT_FLAGS -Wall -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLDAP_DEPRECATED $fPIE
EXTRALIBS=-ldl -L/usr/X11R6/%{_lib} $pie
EOF
touch Local/eximon.conf
rm -f doc/*.{orig,txt~}
%build
make
%install
mkdir -p $RPM_BUILD_ROOT/etc/init.d
mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
mkdir -p $RPM_BUILD_ROOT/usr/{bin,sbin,lib}
mkdir -p $RPM_BUILD_ROOT/var/log/exim
mkdir -p $RPM_BUILD_ROOT/var/spool/mail/
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
mkdir -p $RPM_BUILD_ROOT/usr/bin
make inst_dest=$RPM_BUILD_ROOT/usr/sbin \
inst_conf=$RPM_BUILD_ROOT/etc/exim/exim.conf \
inst_info=$RPM_BUILD_ROOT/%{_infodir} \
INSTALL_ARG=-no_chown install
mv $RPM_BUILD_ROOT/usr/sbin/exim-%{version}* $RPM_BUILD_ROOT/usr/sbin/exim
mv $RPM_BUILD_ROOT/etc/exim/exim.conf src/configure.default # with all substitutions done
install -m 755 %{S:11} $RPM_BUILD_ROOT/etc/init.d/exim
# aka...
for i in \
/usr/lib/sendmail \
/usr/bin/runq \
/usr/bin/rsmtp \
/usr/bin/mailq \
/usr/bin/newaliases
do
ln -sf ../sbin/exim $RPM_BUILD_ROOT$i
done
ln -sf exim $RPM_BUILD_ROOT/usr/sbin/sendmail
ln -sv ../../etc/init.d/exim $RPM_BUILD_ROOT/usr/sbin/rcexim
%if !%{?build_with_mysql:1}0
mv $RPM_BUILD_ROOT/usr/sbin/eximon* $RPM_BUILD_ROOT/usr/bin/
%else
rm $RPM_BUILD_ROOT/usr/sbin/eximon*
%endif
cp -p %{S:1} $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.exim
install -m 644 %{S:2} $RPM_BUILD_ROOT/etc/logrotate.d/exim
# man pages
mv doc/exim.8 $RPM_BUILD_ROOT/%{_mandir}/man8/
pod2man --center=EXIM --section=8 $RPM_BUILD_ROOT/usr/sbin/eximstats > $RPM_BUILD_ROOT/%{_mandir}/man8/eximstats.8
tar xvjf %{S:20}
cp -p exim4-manpages/* $RPM_BUILD_ROOT/%{_mandir}/man8/
for i in \
sendmail \
runq \
rsmtp \
mailq \
newaliases
do
ln -sf exim.8.gz $RPM_BUILD_ROOT/%{_mandir}/man8/$i.8.gz
done
for i in \
exim_dumpdb \
exim_fixdb \
exim_tidydb
do
ln -sf exim_db.8.gz $RPM_BUILD_ROOT/%{_mandir}/man8/$i.8.gz
done
perl -pi -e 's%/usr/share/doc/exim4%/usr/share/doc/packages/exim%g' `find $RPM_BUILD_ROOT/%{_mandir}/man8 -name "*.8"`
gzip -9 doc/*.txt
#
# package the utilities without executable permissions, to silence rpmlint warnings
chmod 644 util/*.{pl,sh} src/convert4r*
#
# since 10.0, the permissions file is packaged in the 'permissions' package
%if %{?suse_version:%suse_version}%{?!suse_version:99999} < 1000
install -m 0755 -d $RPM_BUILD_ROOT/etc/permissions.d
install -m 0644 $RPM_SOURCE_DIR/permissions.exim $RPM_BUILD_ROOT/etc/permissions.d/exim
%endif
# eximstats-html files
%if !%{?build_with_mysql:1}0
mkdir -p $RPM_BUILD_ROOT/srv/www/eximstats
mkdir -p $RPM_BUILD_ROOT/etc/apache2/conf.d/
cp -p $RPM_SOURCE_DIR/eximstats.conf $RPM_BUILD_ROOT/etc/apache2/conf.d/
install -m 0755 $RPM_SOURCE_DIR/eximstats-html-update.py $RPM_BUILD_ROOT/%{_sbindir}
%endif
# apparmor profile
install -D -m 0644 $RPM_SOURCE_DIR/apparmor.usr.sbin.exim $RPM_BUILD_ROOT/etc/apparmor/profiles/extras/usr.sbin.exim
%post
%run_permissions
if ! test -s etc/exim/exim.conf; then
if test -s etc/exim.conf; then
mv etc/exim.conf etc/exim/
echo moving exim.conf to /etc/exim/
else
cp -p usr/share/doc/packages/%{name}/configure.default etc/exim/exim.conf
echo copying default config file to /etc/exim/exim.conf
fi
fi
# create logfiles if missing
for i in var/log/exim/main.log var/log/exim/panic.log var/log/exim/reject.log; do
if ! test -e $i; then touch $i; chown mail:mail $i; chmod 640 $i ; fi
done
%{fillup_and_insserv exim}
exit 0
%if %{?suse_version:%suse_version}%{?!suse_version:0} > 820
%preun
%stop_on_removal exim
%endif
%postun
%if %{?suse_version:%suse_version}%{?!suse_version:0} > 820
%restart_on_update exim
%endif
%insserv_cleanup
%verifyscript
%verify_permissions -e /usr/sbin/exim
%clean
%files
%defattr(-,root,root)
%doc ACKNOWLEDGMENTS CHANGES LICENCE NOTICE README.UPDATING README
%doc doc
%doc src/configure.default
%doc build-Linux-*/convert4r{3,4}
%doc util
%doc %{_mandir}/man8/*
/usr/sbin/exicyclog
/usr/sbin/exigrep
/usr/sbin/exiqgrep
%verify(not mode) %attr(4755,root,root) /usr/sbin/exim
/usr/sbin/exim_*
/usr/sbin/eximstats
/usr/sbin/exinext
/usr/sbin/exipick
/usr/sbin/exiqsumm
/usr/sbin/exiwhat
%dir /etc/exim
%config /etc/init.d/exim
%config(noreplace) /etc/logrotate.d/exim
%if %{?suse_version:%suse_version}%{?!suse_version:99999} < 1000
%config(noreplace) /etc/permissions.d/exim
%endif
%dir /etc/apparmor
%dir /etc/apparmor/profiles
%dir /etc/apparmor/profiles/extras
%config(noreplace) /etc/apparmor/profiles/extras/usr.sbin.exim
/usr/sbin/rcexim
/usr/bin/mailq
/usr/bin/runq
/usr/bin/rsmtp
/usr/bin/newaliases
/usr/sbin/sendmail
/usr/lib/sendmail
/var/adm/fillup-templates/sysconfig.exim
%dir %attr(750,root,mail) /var/log/exim
%if !%{?build_with_mysql:1}0
%files -n eximon
%defattr(-,root,root)
/usr/bin/eximon
/usr/bin/eximon.bin
%files -n eximstats-html
%defattr(-,root,root)
%attr(0750,root,www) /srv/www/eximstats
/etc/apache2
/etc/apache2/conf.d
/etc/apache2/conf.d/eximstats.conf
%{_sbindir}/eximstats-html-update.py
%endif
%changelog
++++++ apparmor.usr.sbin.exim ++++++
# vim:syntax=apparmor
# Last Modified: Wed May 30 17:00:04 2007
#include
/usr/sbin/exim {
#include
#include
#include
#include
capability chown,
capability dac_override,
capability fowner,
capability setgid,
capability setuid,
/etc/aliases r,
/etc/exim/** r,
/etc/greylistd/whitelist-hosts r,
/proc/*/mounts r,
/proc/loadavg r,
/proc/net/if_inet6 r,
/usr/bin/procmail Px,
/usr/lib/cyrus/bin/deliver Px,
/usr/lib/majordomo/wrapper px,
/usr/sbin/exim ixr,
/var/lib/greylistd/whitelist-hosts r,
/var/lib/majordomo/lists/* r,
/var/log/exim/*.log w,
/var/run/exim.pid w,
/var/run/greylistd/socket w,
/var/spool/exim/** rw,
}
++++++ exim-4.12-tail.patch ++++++
--- scripts/Configure-config.h
+++ scripts/Configure-config.h
@@ -41,7 +41,7 @@
# Double-check that config.h is complete.
-if [ "`tail -1 config.h`" != "/* End of config.h */" ] ; then
+if [ "`tail -n 1 config.h`" != "/* End of config.h */" ] ; then
echo "*** config.h appears to be incomplete"
echo "*** unexpected failure in buildconfig program"
exit 1
++++++ exim.logrotate ++++++
/var/log/exim/main.log {
compress
dateext
notifempty
missingok
create 640 mail mail
rotate 99
weekly
#maxage 365
prerotate
cd /var/log/exim
test -f /etc/sysconfig/exim && source /etc/sysconfig/exim
if test "$EXIM_REPORT_WEEKLY" = yes; then
day=`date +%Y%m%d`
report=weekly_report-$day
eximstatsdir=/srv/www/eximstats/$day
touch $report; chmod 640 $report; chown :mail $report
eximstats main.log > $report
if test "$EXIM_REPORT_WEEKLY_HTML" = yes; then
mkdir $eximstatsdir
eximstats -html -charts -chartdir $eximstatsdir main.log > $eximstatsdir/index.html
fi
if ! test -e no_report_mail && test "$EXIM_REPORT_WEEKLY_SEND" = yes; then mail -s "$(sed -n '2{p;q;}' < $report) ($(hostname))" postmaster < $report; fi
if test -f $report.gz; then old $report.gz; fi
gzip -f -9 $report
fi
endscript
}
/var/log/exim/reject.log {
compress
dateext
notifempty
missingok
create 640 mail mail
rotate 99
size 4M
#maxage 365
}
/var/log/exim/panic.log {
compress
dateext
notifempty
missingok
create 640 mail mail
rotate 99
size 1M
#maxage 365
}
++++++ exim.rc ++++++
#! /bin/sh
# Copyright (c) 2002-2003 SuSE Linux AG, Nuernberg, Germany.
# Copyright (c) 2004-2008 SUSE Linux Products GmbH, Nuernberg, Germany.
# All rights reserved.
#
# Author: Peter Poeml
#
### BEGIN INIT INFO
# Provides: exim sendmail
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: $named $time greylistd amavis spamd postgresql mysql
# Should-Stop: $named greylistd amavis spamd postgresql mysql
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Short-Description: exim MTA
# Description: Start the exim MTA (mail transfer agent)
### END INIT INFO
EXIM_PID=/var/run/exim.pid
EXIM_BIN=/usr/sbin/exim
if [ -s /etc/sysconfig/exim ]; then
. /etc/sysconfig/exim
else
# pre 8.0
# Source SuSE config
. /etc/rc.config
# Determine the base and follow a runlevel link name.
base=${0##*/}
link=${base#*[SK][0-9][0-9]}
# Force execution if not called by a runlevel directory.
test $link = $base && START_EXIM=yes
test "$START_EXIM" = yes || exit 0
fi
. /etc/rc.status
rc_reset
case "$1" in
start)
echo -n "Initializing SMTP port (exim)"
if [ -e $EXIM_PID ]; then
startproc -p $EXIM_PID $EXIM_BIN $EXIM_ARGS
else
$EXIM_BIN $EXIM_ARGS
fi
rc_status -v
;;
stop)
echo -n "Shutting down SMTP port"
killproc -p $EXIM_PID -TERM $EXIM_BIN
rc_status -v
;;
test)
echo -n "Testing exim configuration"
$EXIM_BIN -bV
;;
try-restart)
## Do a restart only if the service was active before.
## Note: try-restart is now part of LSB (as of 1.9).
## RH has a similar command named condrestart.
$0 status
if test $? = 0; then
$0 restart
else
rc_reset # Not running is not a failure.
fi
# Remember status and be quiet
rc_status
;;
restart)
$0 stop
$0 start
rc_status
;;
reload|force-reload)
echo -n "Reload service exim"
kill -HUP `cat $EXIM_PID* 2>/dev/null` 2> /dev/null || true
rc_status -v
;;
status)
echo -n "Checking for service exim: "
checkproc -p $EXIM_PID $EXIM_BIN
rc_status -v
;;
probe)
test /etc/exim.conf -nt $EXIM_PID \
&& echo reload
;;
*)
echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
exit 1
esac
rc_exit
++++++ eximstats-html-update.py ++++++
#!/usr/bin/python
import os, os.path, glob
outdir_base = '/srv/www/eximstats'
def main():
os.chdir('/var/log/exim')
reports = glob.glob('main.log-*.gz') + glob.glob('main.log-*.bz2')
for report in reports:
(base, ext) = os.path.splitext(report)
daystr = base[-8:]
outdir = os.path.join(outdir_base, daystr)
if os.path.exists(outdir):
continue
print 'processing', daystr
os.mkdir(outdir)
if ext == '.gz':
catprg = 'zcat'
elif ext == '.bz2':
catprg = 'bzcat'
os.system('%s %s | eximstats -html -charts -chartdir %s > %s/index.html' \
% (catprg, report, outdir, outdir))
if __name__ == '__main__':
main()
++++++ eximstats.conf ++++++
Alias /eximstats /srv/www/eximstats
Order allow,deny
Allow from all
Options +Indexes
</Directory>
++++++ permissions.exim ++++++
/usr/sbin/exim root:root 4755
++++++ sysconfig.exim ++++++
## Path: Network/Mail/Exim
## Description: Exim mailserver configuration
## Type: string
## Default: "-bd -q30m"
## ServiceRestart: exim
#
# Command line arguments to hand over to exim
# Normally: -bd -q30m (run as background daemon)
#
EXIM_ARGS="-bd -q30m"
## Type: yesno
## Default: "no"
#
# Create weekly reports (see man 8 eximstats)?
# The reports are saved in the same directory as the log files.
#
# To see an example of the reports, you can use this command:
# eximstats < /var/log/exim/main.log |less
#
EXIM_REPORT_WEEKLY="no"
## Type: yesno
## Default: "no"
#
# Create HTML reports (see the EXIM_REPORT_WEEKLY setting) in
# /srv/www/eximstats?
# needs the eximstats-html package to be installed
#
EXIM_REPORT_WEEKLY_HTML="no"
## Type: yesno
## Default: "no"
#
# Send the reports (see the EXIM_REPORT_WEEKLY setting) via mail to
# postmaster?
#
EXIM_REPORT_WEEKLY_SEND="no"
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org