Package: mailscanner
Version: 4.57.6-1
Severity: important

/etc/cron.daily/mailscanner:
/etc/cron.daily/mailscanner: line 33: exim4: command not found
/etc/cron.daily/mailscanner: line 36: [: eq: unary operator expected


Two problems here.

1) Script is largely exim4 specific.  Logic to determine the MTA in use on the 
system should be run prior to MTA specific code.
At current moment, I would suggest adding logic to detect the presence
of exim4 before proceeding with the exim specific portion of the  cron.daily 
script.

2) Poor quoting of variables in script.

>From the script
if [ ! $SPOOLDIR eq $SPOOLDIRDEFAULT ]; then
                # and there is the default spool directory
                if [ -d $SPOOLDIRDEFAULT ]; then


Should be something of the form
if [ ! "$SPOOLDIR" eq "$SPOOLDIRDEFAULT" ]; then
                # and there is the default spool directory
                if [ -d "$SPOOLDIRDEFAULT" ]; then

$SPOOLDIR may be the empty string.  Without quoting this will
confuse the test builtin ("[") in the shell leading to erroneous
results.



-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-xen-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages mailscanner depends on:
ii  debconf [debconf-2.0]   1.5.11           Debian configuration management sy
ii  libarchive-zip-perl     1.16-1           Module for manipulation of ZIP arc
ii  libcompress-zlib-perl   1.42-2           Perl module for creation and manip
ii  libconvert-binhex-perl  1.119+pristine-1 Perl5 module for extracting data f
ii  libconvert-tnef-perl    0.17-5           Perl module to read TNEF files
ii  libdbd-sqlite3-perl     1.13-1.1         Perl DBI driver with a self-contai
ii  libfilesys-df-perl      0.92-2           Module to obtain filesystem disk s
ii  libhtml-parser-perl     3.55-1           A collection of modules that parse
ii  libmime-perl            5.420-1          Perl5 modules for MIME-compliant m
ii  libnet-cidr-perl        0.11-1           Manipulate IPv4/IPv6 netblocks in 
ii  libsys-hostname-long-pe 1.4-1            Figure out the long (fully-qualifi
ii  libsys-syslog-perl      0.18-2           Perl interface to the UNIX syslog(
ii  perl                    5.8.8-7          Larry Wall's Practical Extraction 
ii  postfix [mail-transport 2.3.6-1          A high-performance mail transport 
ii  spamassassin            3.1.7-1          Perl-based spam filter using text 
ii  ucf                     2.0017           Update Configuration File: preserv
ii  unzip                   5.52-9           De-archiver for .zip files

Versions of packages mailscanner recommends:
ii  libnet-cidr-lite-perl         0.20-1     Merge IPv4 or IPv6 CIDR address ra
ii  ncftp                         2:3.2.0-1  A user-friendly and well-featured 
ii  tnef                          1.4.3-1    Tool to unpack MIME application/ms
ii  wget                          1.10.2-2   retrieves files from the web

-- debconf information:
  mailscanner/v3_upgrade: Don't upgrade


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to