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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.