Bug#629314: exim4-base: Wrong parameter order for mail during E4BCD_DAILY_REPORT_TO

Andreas Schiweck debian at rainrider.de
Sun Jun 5 14:30:34 UTC 2011


Package: exim4-base
Version: 4.72-6+squeeze2
Severity: normal
Tags: patch


Sending of daily reports from eximstats via setting E4BCD_DAILY_REPORT_TO in
/etc/default/exim4 fails. Error message is

root at henry:~# /etc/cron.daily/exim4-base 
exim abandoned: unknown, malformed, or incomplete option -sXXX

In /etc/cron.daily/exim4-base:46 "mail" is used to send the mail, in my
case:

root at henry:~# ls -l /usr/bin/mail
lrwxrwxrwx 1 root root 22 14. Feb 14:27 /usr/bin/mail -> /etc/alternatives/mail
root at henry:~# ls -l /etc/alternatives/mail
lrwxrwxrwx 1 root root 23 14. Feb 14:27 /etc/alternatives/mail -> /usr/bin/heirloom-mailx

Switching the order of the used two parameters fixes the problem:

root at henry:/etc/cron.daily# diff exim4-base exim4-base.original 
46c46
<                 | mail -s"$(hostname --fqdn) Daily e-mail activity report" $E4BCD_DAILY_REPORT_TO
---
>                 | mail $E4BCD_DAILY_REPORT_TO -s"$(hostname --fqdn) Daily e-mail activity report"
49c49
<                 | mail -s"$(hostname --fqdn) Daily e-mail activity report" $E4BCD_DAILY_REPORT_TO 
---
>                 | mail $E4BCD_DAILY_REPORT_TO -s"$(hostname --fqdn) Daily e-mail activity report"

-- Package-specific info:
Exim version 4.72 #1 built 12-May-2011 18:50:41
Copyright (c) University of Cambridge, 1995 - 2007
Berkeley DB: Berkeley DB 4.8.30: (April  9, 2010)
Support for: crypteq iconv() IPv6 GnuTLS move_frozen_messages DKIM
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb dsearch nis nis0 passwd
Authenticators: cram_md5 plaintext
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore autoreply lmtp pipe smtp
Fixed never_users: 0
Size of off_t: 8
GnuTLS compile-time version: 2.8.6
GnuTLS runtime version: 2.8.6
Configuration file is /var/lib/exim4/config.autogenerated

-- System Information:
Debian Release: 6.0.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages exim4-base depends on:
ii  adduser                 3.112+nmu2       add and remove users and groups
ii  cron                    3.0pl1-116       process scheduling daemon
ii  debconf [debconf-2.0]   1.5.36.1         Debian configuration management sy
ii  exim4-config [exim4-con 4.72-6+squeeze2  configuration for the Exim MTA (v4
ii  libc6                   2.11.2-10        Embedded GNU C Library: Shared lib
ii  libdb4.8                4.8.30-2         Berkeley v4.8 Database Libraries [
ii  lsb-base                3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip
ii  netbase                 4.45             Basic TCP/IP networking system

Versions of packages exim4-base recommends:
ii  heirloom-mailx [mailx]        12.4-2     feature-rich BSD mail(1)
ii  perl-modules                  5.10.1-17  Core Perl modules
ii  psmisc                        22.11-1    utilities that use the proc file s

Versions of packages exim4-base suggests:
pn  exim4-doc-html | exim4 <none>            (no description available)
pn  eximon4                <none>            (no description available)
ii  file                   5.04-5            Determines file type using "magic"
ii  mutt [mail-reader]     1.5.20-9+squeeze1 text-based mailreader supporting M
ii  openssl                0.9.8o-4squeeze1  Secure Socket Layer (SSL) binary a
pn  spf-tools-perl         <none>            (no description available)
pn  swaks                  <none>            (no description available)

-- debconf information excluded
-------------- next part --------------
46c46
<                 | mail -s"$(hostname --fqdn) Daily e-mail activity report" $E4BCD_DAILY_REPORT_TO
---
>                 | mail $E4BCD_DAILY_REPORT_TO -s"$(hostname --fqdn) Daily e-mail activity report"
49c49
<                 | mail -s"$(hostname --fqdn) Daily e-mail activity report" $E4BCD_DAILY_REPORT_TO 
---
>                 | mail $E4BCD_DAILY_REPORT_TO -s"$(hostname --fqdn) Daily e-mail activity report"


More information about the Pkg-exim4-maintainers mailing list