2

Any idea why it is not sending mail for me? Am I missing something? I tried a few articles and it seems like I have done everything correctly; so I am a bit stuck on this?

sudo apt-get update
sudo apt-get install ssmtp

And in /etc/ssmtp/ssmtp.conf I have:

[email protected]
mailhub=smtp.gmail.com:587
FromLineOverride=YES
[email protected]
AuthPass=password
UseTLS=YES

I get this message when I enter this command:

echo "Hello world email body" | mail -s "Test Subject" [email protected]
mail: cannot send message: Process exited with a non-zero status
Sammy
  • 39
  • 1
  • 2
  • I have no idea what is happening here, is there any verbosity argument you can pass to the failing program? – 41754 Jul 22 '19 at 05:58
  • 2
    Does this answer your question? [install ssmtp in Debian buster](https://unix.stackexchange.com/questions/525235/install-ssmtp-in-debian-buster) – GAD3R Dec 28 '19 at 20:27

1 Answers1

0

I've got the same issue on raspbian buster. It's deprecated and msmtp is recommended instead, it works just fine.

Libor Tomsik
  • 109
  • 3
  • 3
    Can you clarify what changes OP needs to make in order to get in order to use your proposed solution? – bu5hman Dec 28 '19 at 20:58