How To Use Gmail Account To Relay Email From a Shell Prompt

Posted on in Categories Backup, Debian Linux, fedora linux, Howto, Linux, Linux desktop, RedHat/Fedora Linux, Tip of the day last updated April 22, 2009

Usually, you do not need to setup an email server under Linux desktop operating system. Most GUI email clients (such as Thunderbird) supports Gmail POP3 and IMAP configurations. But, how do you send mail via the standard or /usr/bin/mail user agents or a shell script? Programs such as sendmail / postfix / exim can be configured as a gmail smarthost but they are largely overkill for this use.