Sendmail is the mail server to send mail from your localhost
1) If sendmail is not installed, do install it:
apt-get
install sendmail2) Configure hosts file correctly:
nano /etc/hostsAnd make sure the line looks like this:
127.0.0.1
localhost localhost.localdomain yourhostnamehere3) 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 start4) Run the sendmail config and answer ‘Y’ to everything:
sendmailconfig
No comments :
Post a Comment