Skip to content

Instantly share code, notes, and snippets.

@emmanuelbarturen
Created January 3, 2018 02:38
Show Gist options
  • Save emmanuelbarturen/acfa0213a71493b42fb1d374ec909d52 to your computer and use it in GitHub Desktop.
Save emmanuelbarturen/acfa0213a71493b42fb1d374ec909d52 to your computer and use it in GitHub Desktop.
configure sendmail in a ubuntu droplet
1) If sendmail isn't installed, install it: apt-get install sendmail
2) Configure hosts file correctly: nano /etc/hosts
Looked like:
127.0.1.1 myhostname myhostname
127.0.0.1 localhost
3) $ sudo sendmailconfig
4) test
$echo "Subject: sendmail test" | sendmail -v my@email.com
@raco
Copy link

raco commented Jul 2, 2018

See the 2 last answers in case of "Connection refused" at testing.
https://serverfault.com/questions/314429/cannot-open-etc-mail-trusted-users-group-writable-directory

@emmanuelbarturen
Copy link
Author

See the 2 last answers in case of "Connection refused" at testing.
https://serverfault.com/questions/314429/cannot-open-etc-mail-trusted-users-group-writable-directory

now have the same number of answers as in 2018?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment