Mail

= Sendmail =

sudo apt-get install sendmail

sudo nano /etc/mail/sendmail.mc

sudo bash -c 'cd /etc/mail/ && m4 sendmail.mc >sendmail.cf' sudo service sendmail restart

sudo cat /var/log/mail.err My unqualified host name (test-ubuntu) unknown; sleeping for retrytest-ubuntu sudo nano /etc/hosts 127.0.0.1      localhost test-ubuntu

Testing sendmail:

telnet 127.0.0.1 25

HELO server

MAIL from:amanjosan2008@gmail.com

RCPT to: amandeep.singh@citrix.com

DATA .

Subject:Test mail

quit

= Mutt =

https://www.linux.com/blog/setup-mutt-gmail-centos-and-ubuntu http://nickdesaulniers.github.io/blog/2016/06/18/mutt-gmail-ubuntu/

= SSMTP = https://askubuntu.com/questions/12917/how-to-send-mail-from-the-command-line