On 2024-09-02 21:44, Dale wrote:
> Sep 2 21:23:08 Gentoo-1 smartd[20742]: Executing test of to root ...
> Sep 2 21:25:25 Gentoo-1 sSMTP[20757]: Unable to connect to
> "smtp.gmail.com" port 587.
> Sep 2 21:25:25 Gentoo-1 sSMTP[20757]: Cannot open smtp.gmail.com:587
> Sep 2 21:25:25 Gentoo-1 smartd[20742]: Test of to root produced
> unexpected output (65 bytes) to STDOUT/STDERR:
> Sep 2 21:25:25 Gentoo-1 smartd[20742]: mail: cannot send message:
> Process exited with a non-zero status
> Sep 2 21:25:25 Gentoo-1 smartd[20742]: Test of to root: failed
> (32-bit/8-bit exit status: 256/1)
> Sep 2 21:25:25 Gentoo-1 smartd[20742]: Executing test of to root ...
> Sep 2 21:27:40 Gentoo-1 sSMTP[20885]: Unable to connect to
> "smtp.gmail.com" port 587.
> Sep 2 21:27:40 Gentoo-1 sSMTP[20885]: Cannot open smtp.gmail.com:587
What's nagging me about this is that there's a 2 minute delay between
smartd executing the test and ssmtp reporting that it can't connect to
smtp.gmail.com. Looks like a timeout to me rather than any issue with
mail. You should at least get an "authentication failed" message back
from Google... or any message at all, really.
Can you check whether you can actually access smtp.gmail.com? Try this:
ncat smtp.gmail.com 587
Perhaps also set -v on ssmtp to get additional log output.
PS: ssmtp has been unmaintained since at least 2019, consider using
msmtp instead.
--
Wolf