Run the following command to install it on a distribution based on Debian:
apt-get install sendmail
update-rc.d sendmail defaults
/ Etc / init.d / sendmail start
Or these for distribution based on RPM:
yum install sendmail
chkconfig sendmail one
/ Etc / init.d / sendmail start
You can then check that emails go well with a command like this:
The file that centralizes all the errors on sending emails is / var / log / maillog. It will consult in case of problems. Otherwise, remember to configure an email filter system for storing email in a special folder. The frequency of transmission of the latter is sometimes important, especially if your server has problems.
Bookmarks