Skip to content

Instantly share code, notes, and snippets.

View rotichbryant's full-sized avatar

Bryant Rotich rotichbryant

View GitHub Profile
@rotichbryant
rotichbryant / gist:a4893d0514a53e0244cc35eb9faa969a
Created July 24, 2018 18:39 — forked from adamstac/gist:7462202
Install and configure Sendmail on Ubuntu

Install and configure Sendmail on Ubuntu

This should help you get Sendmail installed with basic configuration on Ubuntu.

  1. If sendmail isn't installed, install it: sudo apt-get install sendmail
  2. Configure /etc/hosts file: nano /etc/hosts
  3. Make sure the line looks like this: 127.0.0.1 localhost yourhostname
  4. Run Sendmail's config and answer 'Y' to everything: sudo sendmailconfig
  5. Restart apache sudo service apache2 restart