Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save scriptzteam/c2391dc87f01476f7ef8 to your computer and use it in GitHub Desktop.
Save scriptzteam/c2391dc87f01476f7ef8 to your computer and use it in GitHub Desktop.
1) If sendmail is not installed, do install it:
apt-get install sendmail
2) Configure hosts file correctly:
nano /etc/hosts
And make sure the line looks like this:
127.0.0.1 localhost localhost.localdomain yourhostnamehere
3) Reload /etc/hosts, so that the previous changes take effect
sudo /etc/init.d/networking restart that works but seems to be deprecated, better use:
/etc/init.d/networking stop
/etc/init.d/networking start
4) Run the sendmail config and answer ‘Y’ to everything:
sendmailconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment