This should help you get Sendmail installed with basic configuration on Ubuntu.
- If sendmail isn't installed, install it:
sudo apt-get install sendmail
- Configure
/etc/hosts
file:nano /etc/hosts
- Make sure the line looks like this:
127.0.0.1 localhost yourhostname
- Run Sendmail's config and answer 'Y' to everything:
sudo sendmailconfig
- Restart apache
sudo service apache2 restart
really helpful.
I did only from step 1 to 4,
then it's works like a charm!
my use case is sending internal system(ubuntu 18.04) email notification to users in corporate colleague,
and no need of posfix, just need follow step 1 to 4, fast and neat!
thank you.