mail trought dietpi

i’d like to install a system of mail like www.raspberry-projects.com/pi/software_utilities/email/ssmtp-to-send-emails but dietpi give Always error like

mail: cannot send message : Process exited with a non-zero status

i woul like implement this system because pydio require to send mail.
thank you if someone answer to my question.

Hi,

scroll down on page you have linked.

If you got the error : "> mail: cannot send message: Process exited with a non-zero status> ", you must to activate the less secure apps on you google account:

fixed by activating a "> less secure> " flag inside gmail, visiting this link:

https://www.google.com/settings/security/lesssecureapps

and please read: Add Gmail to another email client - Gmail Help

Tested and works here.

X-Received: by 10.194.192.8 with SMTP id hc8mr30856575wjc.87.1463411034098; Mon, 16 May 2016 08:03:54 -0700 (PDT)
Message-Id: <5739e159.821b1c0a.9bbe7.ffffdf3a@mx.google.com>
X-Google-Original-From: "root" <root@RPi-B-Plus>
X-Mailer: mail (GNU Mailutils 2.99.98)

Believe it or not, this was the same reason why I couldn’t get the forum emails to work with smtp lol :slight_smile:. Resolved that using the same process ^^

I followed the instructions here. Because I am using 2 factor authentication, the lesssecureapps setting is not available, so I used app passwords instead. But I am getting the same error message as the original poster, and have tried both port 587 and 465 to no avail.

root=postmaster
mailhub:587=smtp.gmail.com
hostname=DietPi
AuthUser=
AuthPass=
FromLineOverride=YES
UseSTARTTLS=YES

Any suggestions?