Public bug reported:

Binary package hint: logcheck

logcheck uses wrong mail-syntax to send its reports to multiple emailaddresses.
It uses quotes (cat /tmp/report | mail -s test "emailaddress1 emailaddress2") 
which results in an error-message (at least when using exim4): "Can't send 
mail: sendmail process failed with error code 1"

#
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 8.04.1
Release:        8.04
Codename:       hardy
#

Patch:
=====================
--- logcheck.orig       2007-10-24 11:10:18.000000000 +0200
+++ logcheck    2008-10-01 18:19:53.000000000 +0200
@@ -172,7 +172,7 @@
 $(export)
 EOF
        } | mail -s "Logcheck: $HOSTNAME $DATE exiting due to errors" \
-           "$SENDMAILTO"
+           $SENDMAILTO
     
     elif [ $MAILOUT -eq 1 ]; then
           {
@@ -297,9 +297,9 @@
     else
        debug "Sending report: '$subject' to $SENDMAILTO"
         if [ $MAILASATTACH -eq 1 ]; then
-          echo -e "Report at the attachment" | nail -s "$subject" -a 
"$TMPDIR/report" "$SENDMAILTO"
+          echo -e "Report at the attachment" | nail -s "$subject" -a 
"$TMPDIR/report" $SENDMAILTO
         else
-          cat $TMPDIR/report | mail -s "$subject" "$SENDMAILTO"
+          cat $TMPDIR/report | mail -s "$subject" $SENDMAILTO
         fi
     fi
 }
=====================

Greetings

Mirko

** Affects: logcheck (Ubuntu)
     Importance: Undecided
         Status: New

-- 
logcheck uses wrong mail-syntax (causes not being able to address multiple 
recipients)
https://bugs.launchpad.net/bugs/276805
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to