HarrisonCamm
Posts: 1
Joined: Sun Sep 22, 2019 10:37 pm

SSMTP mail error : exited with a non-zero status

Sun Sep 22, 2019 10:48 pm

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" myemail@gmail.com, 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.

pcmanbob
Posts: 13151
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

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

Mon Sep 23, 2019 7:56 am

HI.

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 https://www.raspberrypi.org/forums/view ... 8&t=244147
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

Return to “General discussion”