Report this

What is the reason for this report?

How can I send email using Sendmail ?

Posted on August 14, 2017

Hi, I’m trying to send email using SendMail. I tried all the tutorials on DO community to configure SendMail. I can send email but not receive email.

These are my steps.

  • Installing SendMail
sudo apt-get install sendmail mailutils sendmail-bin
  • Editing hosts
127.0.0.1 localhost to 127.0.0.1 localhost localhost.localdomain RabbitHost
  • Sending mail
time echo testmail | sendmail store.nikea@gmail.com

I got no errors or warnings, but I didn’t receive email.

How can I solve this ? Thank you



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.

How exactly you are trying to send the email ?

To send an email using commandline try something like

mail -s “Test Email” user@domain.com < /dev/null

or

sendmail user@example.com < /tmp/email.txt

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.