Report this

What is the reason for this report?

Error on send email test

Posted on December 28, 2020

Hi, I’m trying to send email from my site using Node.Js (to recover password and other things), but it’s doesn’t work. I found on Digital Ocean forum that this thing is because “Digital Ocean rules”, that we must to use postfix to send a simple email…

So… I followed this tutorial and, when I did send the email test I received the message: mail: cannot send message: Process exited with a non-zero status . This process is complicated you are complicating the simple things here…



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @pointdapescaesportiva,

DigitalOcean denies emails being sent on port 25 as they are most often than not spam. With that being said that’s why you’ll need to use postfix and port 465 for sending out e-mails.

On to the problem itself, the most common issues that occur with the error message you’ve provided are :

Reconfigure Postfix

sudo dpkg-reconfigure postfix

Hostname Differs

hostname in /etc/hostname and the name for 127.0.0.1 in /etc/hosts differed.

If the above doesn’t help, I’ll recommend checking out the mail error log in your /var/log folder for further information on the exact issues that are stoping the e-mails from being sent.

Regards, KFSys

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.