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. |
|