sendmail will not return exit code, cannot be overridden with ErrorMode=

Bug #1617808 reported by Grintor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sendmail (Ubuntu)
New
Undecided
Unassigned

Bug Description

The default behavior for sendmail is normally to return a status code on error as defined in sysexits.h. But on my ubuntu 16.04 default install, it only returns exit code 0 and then mails the error. This is behavior that is expected when ErrorMode=e in the options. But this happens even if I do:

echo test | sendmail -OErrorMode=p -ODeliveryMode=interactive <email address hidden>

In the above example, sendmail should print an error and return exit code 68 (EX_NOHOST) but it instead acts exactly as if ErrorMode=e and mails the message.

Grintor (grintor)
description: updated
summary: - sendmail will not return exit code
+ sendmail will not return exit code, cannot be overridden with ErrorMode=
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.