By aecsp2000
I was setting up Postfix with this tutorial https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-as-a-send-only-smtp-server-on-ubuntu-20-04
Upon sending test email got this error message “mail: cannot send message: Process exited with a non-zero status”
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!
Hi @aecsp2000,
I’ll recommend checking the error log to see the exact reason as to why you are receiving this message. The error log should be located in the ```/var/log/` folder somewhere. The file is usually called /var/log/maillog, /var/log/mail.err or /var/log/mail.
Additionally, you can try to reconfigure Postfix with the following command
sudo dpkg-reconfigure postfix
Just let me know which options are you selecting.
Hello,
In addition to what has already been mentioned, you might also have to define your hostname in /etc/hostname and make sure that the hostname for 127.0.0.1 in /etc/hosts matches that too.
Best,
Bobby
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.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.