Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Sendmail hangs when trying to send mail.
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:
Your system has configured ‘manageetchosts’ as True.
As a result, if you wish for changes to this file to persist
then you will need to either
a.) make changes to the master file in /etc/cloud/templates/hosts.tmpl
b.) change or remove the value of 'manageetchosts’ in
/etc/cloud/cloud.cfg or cloud-config from user-data
127.0.1.1 pedrogarcez pedrogarcez
127.0.0.1 localhost localhost.localdomain pedrogarcez
The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
- I ran the sendmail config using “sudo sendmailconfig” and answered 'Y’ to everything.
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.×