Skip to content

Instantly share code, notes, and snippets.

@tidalgo22
Last active March 23, 2018 07:15
Show Gist options
  • Save tidalgo22/8cd69b74d62c682d689941366f5c49b1 to your computer and use it in GitHub Desktop.
Save tidalgo22/8cd69b74d62c682d689941366f5c49b1 to your computer and use it in GitHub Desktop.
Ubuntu sendmail installation hangs.
https://askubuntu.com/questions/937666/ubuntu-16-04-command-line-sendmail-installation-hanged
when it hangs we need to kill the process
https://askubuntu.com/questions/219545/dpkg-error-dpkg-status-database-is-locked-by-another-process
mail takes forever to send?
https://www.digitalocean.com/community/questions/sendmail-is-slow-to-send-mail
If you check your /var/log/mail.log you will probably find something like this: My unqualified host name (localhost) unknown; sleeping for retry. This is because sendmail requires "hostname" to be a fully qualified domain name.
update your "/etc/hosts" file: nano /etc/hosts
to look like this: 127.0.0.1 localhost.localdomain localhost yourhostname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment