Page 1 of 1

SSMTP mail error : exited with a non-zero status

Posted: Sun Sep 22, 2019 10:48 pm
by HarrisonCamm
I have attempted to get the SSMTP working on my raspberry pi to send emails. However, it isn't working.
I have installed all the necessary modules and edited the config file:

But whenever I try to send an email ie
echo "Hello world email body" | mail -s "Test Subject", it always fails saying:
mail: cannot send a message: Process exited with a non-zero status

I have changed my Gmail account to allow third-party apps to access and also changing the port from 587 in the config but neither of these things did anything

Can anyone please help.

Re: SSMTP mail error : exited with a non-zero status

Posted: Mon Sep 23, 2019 7:56 am
by pcmanbob

As you have not said which OS you are using I am going to guess that your are using raspbian buster.

ssmtp will not work with raspbian buster, and as ssmtp is no longer maintained its unlikely that it ever will.

you need to switch to using msmtp in place of ssmtp on buster.

see this thread ... 8&t=244147