[Logcheck-devel] Bug#542781: MAILARGS -a breaks mailing with mailx or mutt
Florian Hinzmann
fh at debian.org
Fri Aug 21 10:03:20 UTC 2009
Package: logcheck
Version: 1.3.3
Severity: important
Hello!
The latest version of logchecks no longer sent mails for me, gave
an error instead:
> Auto-Submitted: auto-generated: No such file or directory
This is due to
> MAILARGS="-a 'Auto-Submitted: auto-generated'"
in /usr/sbin/logcheck.
Option -a wants to attach a file to the mail with at least the
MUAs mutt and mailx from package heirloom-mailx.
Hotfix: I have added the following to logcheck.conf:
> # Override buggy MAILARGS in /usr/sbin/logcheck
> MAILARGS=""
A real fix might be to use the sendmail binary to send mails. The
following works:
> echo -e "Subject: sub\nX-Test: myheader\n\nmail body\n" | sendmail butch
I always use sendmail to send emails from scripts or cron jobs.
Giving mail headers on STDIN works for ../bin/sendmail provided
by Sendmail and Exim packages at least.
You'd might have to check for other MTAs, but that should be less work
than checking all MUAs. And in my opinion MTAs try to be command line
compatible to sendmail - at least more than user tools.
Regards
Florian
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.30-1-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages logcheck depends on:
ii adduser 3.110 add and remove users and groups
ii bsd-mailx [mailx] 8.1.2-0.20081101cvs-2 A simple mail user agent
ii cron 3.0pl1-106 process scheduling daemon
ii exim4 4.69-11 metapackage to ease Exim MTA (v4)
ii exim4-daemon-heavy 4.69-11+b1 Exim MTA (v4) daemon with extended
ii heirloom-mailx [ma 12.4-1.1+b1 feature-rich BSD mail(1)
ii lockfile-progs 0.1.13 Programs for locking and unlocking
ii logtail 1.3.3 Print log file lines that have not
ii mailx 1:20081101-2 Transitional package for mailx ren
ii sysklogd [system-l 1.5-5 System Logging Daemon
Versions of packages logcheck recommends:
ii logcheck-database 1.3.3 database of system log rules for t
Versions of packages logcheck suggests:
ii syslog-summary 1.13-1 summarize the contents of a syslog
-- debconf information excluded
--
Florian Hinzmann private: f.hinzmann at hamburg.de
Debian: fh at debian.org
PGP Key / ID: 1024D/B4071A65
Fingerprint : F9AB 00C1 3E3A 8125 DD3F DF1C DF79 A374 B407 1A65
More information about the Logcheck-devel
mailing list