Ubuntu: unable to send email



Question:

I'm getting an error message:

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

Command

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


Solution:1

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
Previous
Next Post »