** Description changed: 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 + 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=m and + code 68 (EX_NOHOST) but it instead acts exactly as if ErrorMode=e and mails the message.
** Summary changed: - sendmail will not return exit code + sendmail will not return exit code, cannot be overridden with ErrorMode= -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1617808 Title: sendmail will not return exit code, cannot be overridden with ErrorMode= To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sendmail/+bug/1617808/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
