Sending mail from the console is cool! ssmtp with gmail.

Quick Cheat-sheet on configuring ssmtp on my machine.  This is really cool for me because it enables me to send git patches from console.  I confess, I like the console.

yum install ssmtp -y
cat << EOF >
root=postmaster
mailhub=smtp.gmail.com:587
Hostname=gmail.com
UseSTARTTLS=YES
AuthUser=username@gmail.com
AuthPass=YOUR_PASSWORD
EOF
ls -s -f /usr/sbin/sendmail.ssmtp /etc/alternatives/mta
Advertisements

About joelgranados

I'm fascinated with how technology and science impact our reality and am drawn to leverage them in order to increase the potential of human activity.
This entry was posted in commands. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s