2

So i'm trying to get ssmtp with mailutils running for unattended upgrades, but it won't work. I was following this guide: https://raspberry-projects.com/pi/software_utilities/email/ssmtp-to-send-emails But it didn't work so i edited the revaliases and tried other things but nothing works...

This is my /etc/ssmtp/ssmtp.conf:

root=postmaster
mailhub=smtp.gmail.com:587
hostname=raspberrypi
FromLineOverride=YES
[email protected]
AuthPass=******
UseTLS=YES
UseSTARTTLS=YES

My /etc/ssmtp/revaliases looks like this:

root:[email protected]:smtp.gmail.com:587

I already tried activating less secure apps in my google account.

This is always the result:

echo "Hello world email body" | mail -s "Test Subject" [email protected]
mail: cannot send message: Process exited with a non-zero status

I also tried with a msg.txt and only ssmtp:

ssmtp [email protected] < msg.txt
ssmtp:  (raspberrypi)

but nothing would be there.

1 Answer 1

1

ssmtp has been deprecated in Buster

In general following ANY 5 year old post is at best an exercise in optimism
See https://raspberrypi.stackexchange.com/a/100704/8697

1
  • and msmtp works with mailutils?
    – frieren
    Commented Mar 18, 2020 at 11:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.