Bug 8248 - No log message if esmtp sendmail fails
Summary: No log message if esmtp sendmail fails
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: VSM Server (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: MediumPrio
Assignee: Bugzilla mail exporter
Depends on:
Reported: 2023-11-01 10:27 CET by Adam Halim
Modified: 2023-11-07 13:21 CET (History)
0 users

See Also:
Acceptance Criteria:


Description Adam Halim cendio 2023-11-01 10:27:13 CET
Sometimes, subprocesses only log a warning if the return code is non-zero. For example, running a fresh installation of Fedora 38 and build #3414, I get a zero exit status from sendmail even if the process writes to stderr, and nothing is written to the log. This can make errors difficult to detect. A simple fix would be to also check if stderr is empty or not as well whenever we run a subprocess.

stderr from sendmail (return code 0):
> No configuration file found at (null) or /etc/esmtprc

Note You need to log in before you can comment on or make changes to this bug.