#611504 ssmtp return successful exit code on error

Package:
ssmtp
Source:
ssmtp
Description:
extremely simple MTA to get mail off the system to a mail hub
Submitter:
Jörg Sommer
Date:
2026-02-27 12:55:02 UTC
Severity:
normal
#611504#5
Date:
2011-01-29 22:47:32 UTC
From:
To:
Hi,

% sendmail -t -i -fReturn-Path: /dev/null@alea.gnuu.de
sendmail: recipients with -t option not supported
% echo $?
0

The call above is wrong, I know, but ssmtp doesn't tell so via exit code
which makes the caller, e.g. PHP, think everything was fine. This is not
good. Ssmtp should return with an exit code different from zero.

Bye, Jörg.