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
Test sendmail is working by typing in
$ /usr/sbin/sendmail abc@gmail.com