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
Hi Everyone,
I followed the instruction and for some reason, i can get this working. here is my log
sender@xyz:~$ echo "test message" | sendmail -v [email protected]
[email protected]... Connecting to [127.0.0.1] via relay...
220 xyz.com ESMTP Sendmail 8.15.2/8.15.2/Debian-3; Wed, 8 Nov 2017 01:21:43 +0800; (No UCE/UBE) logging access from: localhost(OK)-localhost [127.0.0.1]