Ubuntu: unable to send email


I'm getting an error message:

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


date | mail -s "test" -r some@myemail.com some@myemail.com  

mailutils install via this command

sudo apt-get install mailutils  

I have did the same in another ec2 server, and that server is working fine.
what could be the reason?

Debug info:

/usr/sbin/sendmail exited with: 75  generic yields 38=Function not implemented  

try to google this error message, but without any luck


I do not use the ec2 server, but had the same error message when trying to send an email, from the command line to my gmail account with ...

echo "hello" | mail -s "test email from CLI" myusername@gmail.com

My problem was finally solved, when I took out the special character in my gmail password. If using ssmtp, don't forget to update ssmtp.conf with the new password.

Hope this helps someone.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »