Activity log for bug #1617808

Date Who What changed Old value New value Message
2016-08-28 19:30:32 Grintor bug added bug
2016-08-28 19:44:58 Grintor 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=m in the options. But this happens even if I do: echo test | sendmail -OErrorMode=p -ODeliveryMode=interactive whatever@cant-resolve.foobar In the above example, sendmail should print an error and return exit code 68 (EX_NOHOST) but it instead acts exactly as if ErrorMode=m and mails the message. 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 whatever@cant-resolve.foobar 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.
2016-08-28 19:46:49 Grintor summary sendmail will not return exit code sendmail will not return exit code, cannot be overridden with ErrorMode=