Kyle Jones <kyle_jones(a)wonderworks.com> writes:
sendmail-send-it runs sendmail-program with -oem which tells
sendmail to always exit with status 0 and report all errors via
e-mail. So sendmail-send-it is ignoring exit status because
there's no reason for it to expect exit status to be anything but
zero. If you change sendmail-program to something other than
sendmail then you take your chances with incompatible/broken
behavior.
IMHO losing mail is such an unpleasant thing that a little extra error
checking is worth it. Even though -oem is used, it makes sense the
check error codes because 1) it catches installation problems and 2)
might catch severe sendmail problems (what if if sendmail cannot send
mail to report the error? What does it do? Probably return with an
error code anyway). If sendmail clones doesn't implement -oem it is
another argument.