On Fri, Aug 21, 2009 at 12:03:20PM +0200, Florian Hinzmann wrote:
> This is due to
> > MAILARGS="-a 'Auto-Submitted: auto-generated'"
> in /usr/sbin/logcheck.
Damned if you do, damned it you don't, right Martin? :)
> Option -a wants to attach a file to the mail with at least the
> MUAs mutt and mailx from package heirloom-mailx.
mutt doesn't provide /usr/bin/mail, so it's irrelevant. But yeah,
heirloom-mailx is a bother. (You would've thought that all mailxes
would have the same command-line interface, no?)
> 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
Note to self: echo -e is a bashism, so you might want to use /bin/echo
instead.
Another option would be to strictly depend on, say, bsd-mailx. It's a
crappy solution, but it is an easy one.
--
/*
* Please skip to the bottom of this file if you ate lunch recently
* -- Alan
*/
-- from Linux kernel pre-2.1.91-1
_______________________________________________
Logcheck-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/logcheck-devel