Setup ssmtp in Raspbian - RasberryPi

SSMTP is a email service for Raspbian and is used for sending out emails internally in a network and externally.Its a very simple install and will get you up and running in no time. This process would need a Root account and make sure you update Raspbian to the latest patch level. You can update by running "sudo apt-get update".

 First Install ssmtp package via apt

# apt-get install ssmtp
# apt-get install mailutils

Now edit the ssmtp config file.

vi /etc/ssmtp/ssmtp.conf

Add these lines in it for external mail server

AuthUser=username@gmail.com
AuthPass=password
FromLineOverride=YES
mailhub=smtp.gmail.com:587
UseSTARTTLS=YES

That's it all done. Now try sending a Test email.

# echo "Test Mail" | mail -s "Test Email" username@gmail.com

If you encounter any errors during the process, let us know via Contact Us and will get it resolved promptly.

Most Read Articles

Add/Detect a new disk in ...

Written By Farooq Mohammed Ahmed on Sunday, 11 January 2015 19:22
Add/Detect a new disk in ...

Replace SSL Certificates ...

Written By Farooq Mohammed Ahmed on Friday, 16 December 2016 08:05
Replace SSL Certificates ...

Using awk in Alias Comman...

Written By Farooq Mohammed Ahmed on Friday, 19 February 2016 14:22
Using awk in Alias Comman...

Sed - Insert Text before ...

Written By Farooq Mohammed Ahmed on Monday, 20 November 2017 00:58
Sed - Insert Text before ...

Script to Monitor Nagios ...

Written By Farooq Mohammed Ahmed on Monday, 18 July 2016 22:48
Script to Monitor Nagios ...