Skip to content

Instantly share code, notes, and snippets.

@cherifya
Forked from adamstac/gist:7462202
Created August 11, 2021 04:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cherifya/cdefb33b97c6f2926a0c28ece5c22677 to your computer and use it in GitHub Desktop.
Save cherifya/cdefb33b97c6f2926a0c28ece5c22677 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment