Sendmail is the mail server to send mail from your localhost
1) If sendmail is not installed, do install it:
apt-get
install sendmail
2) Configure hosts file correctly:
nano /etc/hosts
And make sure the line looks like this:
127.0.0.1
localhost localhost.localdomain yourhostnamehere
3) Reload /etc/hosts, so that the previous changes take effect
sudo
/etc/init.d/networking restart
that works but seems to be
deprecated, better use:/etc/init.d/networking
stop
/etc/init.d/networking start
4) Run the sendmail config and answer ‘Y’ to everything:
sendmailconfig
No comments :
Post a Comment