Install sendmail on Ubuntu
$ sudo apt-get install sendmail
$ sudo sendmailconfig
Answer to the configuration questions posted during the installation. The main files that gets written into during the installation process are
/etc/mail.sendmail.conf
/etc/cron.d/sendmail
/etc/mail/sendmail.mc
(more…)