MAILCMD not set: complain to the packager

Bug #567581 reported by frell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
heartbeat (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Binary package hint: heartbeat

If you add the following to your heartbeat config

MailTo::<email address hidden>

in the /etc/heartbeat/haresources file then on fallover the following is shown in the logs;

ResourceManager[13089]: info: Running /etc/ha.d/resource.d/MailTo <email address hidden> stop
MailTo[14344]: ERROR: MAILCMD not set: complain to the packager
MailTo[14331]: ERROR: Program is not installed
ResourceManager[13089]: ERROR: Return code 5 from /etc/ha.d/resource.d/MailTo
MailTo[14379]: INFO: Resource is stopped

Looking at /usr/lib/ocf/resource.d/heartbeat/.ocf-binaries it appears nothing has been set in the $MAILCMD section of that config. Im not 100% sure what should be placed in there to resolve the issue. Im guessing its something like "/usr/sbin/sendmail", but im not sure what options should be passed to sendmail for this to work.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for reporting this bug. It looks like configure.ac wants to set MAILCMD to either mailx or mail, whicherver it finds.

So this should be fixed by adding bsd-mailx or mailutils to the Build-Depends.

Changed in heartbeat (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.