Your message dated Wed, 16 Apr 2008 17:40:43 -0400
with message-id <[EMAIL PROTECTED]>
and subject line exim has been removed from Debian, closing #173986
has caused the Debian Bug report #173986,
regarding exim: Clean _all_ hints db's periodically
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
173986: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=173986
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: exim
Version: 3.35-1
Severity: normal
Tags: patch

Currently, only some of the hints db's in /var/spool/exim/db are
periodically cleaned. When you enable certain features in the config
file, more of such db's are created, which all need a periodical
tidy-up, to prevent unlimited growing.

This patch will add a very simple script which loops through all db's,
and tidies them. Manpage included.

N.B.: patch was made against exim-3.36-4 (current unstable), but will
probably work from exim-3.36-2 onwards.

diff -rNu exim-3.36.old/debian/crontab exim-3.36/debian/crontab
--- exim-3.36.old/debian/crontab        Sun Dec 22 13:42:21 2002
+++ exim-3.36/debian/crontab    Sun Dec 22 20:21:20 2002
@@ -4,5 +4,4 @@
 08,23,38,53 *     * * *     mail   if [ -x /usr/sbin/exim -a -f 
/etc/exim/exim.conf ]; then /usr/sbin/exim -q ; fi
 
 # Tidy databases
-13 6 * * *     mail    if [ -x /usr/sbin/exim_tidydb ]; then 
/usr/sbin/exim_tidydb /var/spool/exim retry >/dev/null; fi
-17 6 * * *     mail    if [ -x /usr/sbin/exim_tidydb ]; then 
/usr/sbin/exim_tidydb /var/spool/exim wait-remote_smtp >/dev/null; fi
+13 6 * * *     mail    if [ -x /usr/sbin/exim_tidydb_all ]; then 
/usr/sbin/exim_tidydb_all -q; fi
diff -rNu exim-3.36.old/debian/exim_tidydb_all exim-3.36/debian/exim_tidydb_all
--- exim-3.36.old/debian/exim_tidydb_all        Thu Jan  1 01:00:00 1970
+++ exim-3.36/debian/exim_tidydb_all    Sun Dec 22 20:20:40 2002
@@ -0,0 +1,41 @@
+#!/bin/sh
+
+set -e
+
+# Tidy all hints databases
+
+# Written by Jeroen van Wolffelaar <[EMAIL PROTECTED]>
+
+SPOOLDIR=/var/spool/exim
+
+if [ "$#" -eq 0 ]; then
+  exec 3>&1
+  QUIET=0
+elif [ "$#" -eq 1 -a "$1" = "-q" ]; then
+  exec 3>/dev/null
+  QUIET=1
+else
+  cat <<-USAGE
+       Usage: $0 [-q]
+       $0 will tidy up all exim databases, so that data is
+       eventually purged from them.
+
+       $0 should be run as mail or as root
+       
+       -q means: run quietly
+       USAGE
+  exit 1
+fi
+
+cd $SPOOLDIR/db
+for db in *; do
+  case "$db" in
+  *.lockfile)  continue ;;
+  retry)       OPT='' ;;
+  reject)      OPT='' ;;
+  wait-*)      OPT='' ;;
+  serialize-*) OPT='' ;;
+  *)           echo "Unrecognized database found: $db" >&2; exit 1
+  esac
+  /usr/sbin/exim_tidydb $OPT $SPOOLDIR $db >&3
+done
diff -rNu exim-3.36.old/debian/exim_tidydb_all.8 
exim-3.36/debian/exim_tidydb_all.8
--- exim-3.36.old/debian/exim_tidydb_all.8      Thu Jan  1 01:00:00 1970
+++ exim-3.36/debian/exim_tidydb_all.8  Sun Dec 22 20:23:23 2002
@@ -0,0 +1,31 @@
+.TH exim_tidydb_all 8 "22 dec 2002"
+.SH NAME
+exim_tidydb_all \- program to tidy all exim db's
+.SH SYNOPSIS
+.B exim_tidydb_all [-q]
+.SH DESCRIPTION
+The exim_tidydb_all script executes exim_tidydb on all db's found in the exim
+spool directory. It is meant to be run out of cron, for example weekly.
+
+Exim only uses these databases for performance hints such as caching of failed
+hosts, the worst that can possibly happen is that some of this information is
+lost when it shouldn't.
+
+The exim_tidydb_all script must be run as the 
+.I mail
+user, or of course root.
+.SH OPTIONS
+.TP
+.B -q
+Only output errors.
+.SH CAVEATS
+Even if the
+.I retry_data_expire
+option is set very high (over 30 days, not recommended), exim_tidydb_all will
+still purge 30-day old data from the retry database, thus imposing an upper
+limit on retry_data_expire.
+.SH SEE ALSO
+exim_tidydb(8)
+.SH AUTHOR
+This manual page was written by Jeroen van Wolffelaar
+<[EMAIL PROTECTED]>
diff -rNu exim-3.36.old/debian/rules exim-3.36/debian/rules
--- exim-3.36.old/debian/rules  Sun Dec 22 13:42:21 2002
+++ exim-3.36/debian/rules      Sun Dec 22 19:57:19 2002
@@ -68,6 +68,7 @@
         cd ../bin;               ln -sf ../sbin/exim mailq; \
         cd ../lib;               ln -sf ../sbin/exim sendmail )
        install debian/newaliases debian/tmp/usr/bin
+       install -m 0755 debian/exim_tidydb_all debian/tmp/usr/sbin
        install -m 0755 debian/init.d debian/tmp/etc/init.d/exim
        install -m 0755 debian/cron.daily debian/tmp/etc/cron.daily/exim
        install -m 0644 debian/crontab debian/tmp/etc/cron.d/exim
@@ -76,7 +77,8 @@
        # Install documentation
        cp debian/exicyclog.8 debian/exigrep.8 debian/exim.8 debian/exim_db.8 \
                debian/exim_dbmbuild.8 debian/exim_dumpdb.8 \
-               debian/exim_fixdb.8 debian/exim_tidydb.8 debian/eximstats.8 \
+               debian/exim_fixdb.8 debian/exim_tidydb.8 
debian/exim_tidydb_all.8 \
+               debian/eximstats.8 \
                debian/exinext.8 debian/exiwhat.8 debian/exiqsumm.8 \
                debian/eximconfig.8 debian/newaliases.8 debian/rmail.8 \
                debian/rsmtp.8 debian/runq.8 debian/sendmail.8 debian/mailq.8 \



-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux square 2.4.20-rc1 #1 Fri Nov 8 11:33:42 CET 2002 i686
Locale: LANG=C, LC_CTYPE=POSIX

Versions of packages exim depends on:
ii  cron                         3.0pl1-72   management of regular background p
ii  libc6                        2.2.5-11.2  GNU C Library: Shared libraries an
ii  libdb2                       2:2.7.7.0-7 The Berkeley database routines (ru
ii  libident                     0.22-2      simple RFC1413 client library - ru
ii  libldap2                     2.0.23-6    OpenLDAP libraries.
ii  libpam0g                     0.72-35     Pluggable Authentication Modules l
ii  libpcre3                     3.4-1.1     Philip Hazel's Perl Compatible Reg



--- End Message ---
--- Begin Message ---
Version: 3.36-18.2+rm

The exim package has been removed from Debian testing, unstable and
experimental, so I am now closing the bugs that were still opened
against it.

For more information about this package's removal, read
http://bugs.debian.org/420191 . That bug might give the reasons why
this package was removed, and suggestions of possible replacements.

Don't hesitate to reply to this mail if you have any question.

Thank you for your contribution to Debian.
Barry deFreese


--- End Message ---

Reply via email to