By zerowinglad
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!
If sendmail is taking too long to send an email, try checking if port 25 is open on your Droplet. To do so, run the following command:
nc -vz smtp.gmail.com 25
If it returns a failure, please open a support ticket and the team will help you out. Otherwise, look at sendmail’s logs (usually located at /var/log/mail.log) and see if there’s anything there that could help you find out what’s wrong.
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.