[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#401329: marked as done (Mailscanner logrotate and crondaily scripts)

Your message dated Tue, 02 Jan 2007 14:32:07 +0000
with message-id <E1H1kgR-0008B7-DL@ries.debian.org>
and subject line Bug#401329: fixed in mailscanner 4.55.10-4
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: mailscanner
Version: 4.51.5-1.1
Severity: important

The logrotate script shipped with mailscanner is wrong. It look on the wrong

# have exim update it's database (if we're using exim, that is)
if [ -x /usr/sbin/exim_tidydb -a -d /var/spool/exim_incoming ]; then
    /usr/sbin/exim_tidydb -t 0m /var/spool/exim_incoming retry >/dev/null

The directory should be exim4_incoming not exim_incoming.

But a script as the one used in cron.daily exim-config will be better.


# go to mailscanner spool directory
cd /var/spool/MailScanner

  cd $SPOOLDIROUT/db || exit 1
  if ! find $SPOOLDIROUT/db -maxdepth 1 -name '*.lockfile' -or -type f \
    -printf '%f\0' | \
      xargs -0r -n 1 \
      start-stop-daemon --start --exec /usr/sbin/exim_tidydb \
      --chuid Debian-exim:Debian-exim -- $SPOOLDIROUT > /dev/null; then
    # if we reach this, invoking exim_tidydb from start-stop-daemon has
    # failed, most probably because of libpam-tmpdir being in use
    # (see #373786 and #376165)
    find $SPOOLDIROUT/db -maxdepth 1 -name '*.lockfile' -or -type f \
    -printf '%f\0' | \
    su - --shell /bin/bash \
         --command "xargs -0r -n 1 /usr/sbin/exim_tidydb $SPOOLDIROUT >
/dev/null" \

But in fact, we have a general problem.

The script /etc/cron.daily/exim4-base, already looks in exim4_incoming thrue
the commands:

SPOOLDIR="$(exim4 -bP spool_directory | sed 's/.*=[[:space:]]\(.*\)/\1/')"

And in both case logs in exim4 and exim4_incoming or exim4 are not well

We need need to decide the best to do.

1) Update the /etc/cron.daily/exim4-base script to look on both directory
for logs and tidydb if mailscanner is installed,

2) Update the mailscanner logrotate script to well handle the log rotate and
exim_tidydb update for mailscanner additions.



--- End Message ---
--- Begin Message ---
Source: mailscanner
Source-Version: 4.55.10-4

We believe that the bug you reported is fixed in the latest version of
mailscanner, which is due to be installed in the Debian FTP archive:

  to pool/main/m/mailscanner/mailscanner_4.55.10-4.diff.gz
  to pool/main/m/mailscanner/mailscanner_4.55.10-4.dsc
  to pool/main/m/mailscanner/mailscanner_4.55.10-4_all.deb

A summary of the changes between this version and the previous one is

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 401329@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
Simon Walter <simon.walter@hp-factory.de> (supplier of updated mailscanner package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)

Hash: SHA1

Format: 1.7
Date: Sat, 16 Dec 2006 14:05:53 +0100
Source: mailscanner
Binary: mailscanner
Architecture: source all
Version: 4.55.10-4
Distribution: unstable
Urgency: low
Maintainer: Simon Walter <simon.walter@hp-factory.de>
Changed-By: Simon Walter <simon.walter@hp-factory.de>
 mailscanner - email virus scanner and spam tagger
Closes: 309641 332249 401329 401510 402530 402797 402967
 mailscanner (4.55.10-4) unstable; urgency=low
   * New maintainer (Closes: #401510)
   * Complet rewrite of the init-script. (Closes: #402967)
   * Remove check_mailscanner script
   * Manpages for all executables.
   * New installation manual for exim4. (Closes: #401329)
   * New installation manual for sendmail (Closes: #332249)
   * Add spanish debconf translation. (Closes: #402530)
   * Add comment about spamhaus.org DNSBLs. (Closes: #402797)
   * Add update_phishing_safe_sites script
   * Add d2mbox script
   * Reactivate usage of spam.assassin.prefs.conf. (Closes: #309641)
 e03a506c68c6d362928a577bd724f614 661 mail optional mailscanner_4.55.10-4.dsc
 1b526aac681674a861ebd87beaa4668e 32911 mail optional mailscanner_4.55.10-4.diff.gz
 b263497c370f3704d22a6ed71dbed84a 540952 mail optional mailscanner_4.55.10-4_all.deb

Version: GnuPG v1.4.6 (GNU/Linux)


--- End Message ---

Reply to: