mail trought dietpi

i’d like to install a system of mail like 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.


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:

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

Tested and works here.

X-Received: by with SMTP id hc8mr30856575wjc.87.1463411034098; Mon, 16 May 2016 08:03:54 -0700 (PDT)
Message-Id: <>
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.


Any suggestions?