Whenever I try to use sendmail to send email, the server hangs indefinitely and I am forced to restart the ssh session to be able to issue any commands. Even simply typing “sendmail” causes the server to hang.
I have taken the following steps to install send mail:
sudo apt-get install sendmail
I configured the hosts file at “nano /etc/hosts” by adding this as suggested by a another user in the help community: “127.0.0.1 localhost localhost.localdomain pedrogarcez”. So my hosts file looks like this:
127.0.1.1 pedrogarcez pedrogarcez 127.0.0.1 localhost 127.0.0.1 localhost localhost.localdomain pedrogarcez
::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!