Skip to content

Instantly share code, notes, and snippets.

@YannMjl
Created June 8, 2018 22:15
Show Gist options
  • Save YannMjl/64adf749c3b03d0c486e7999ffd31757 to your computer and use it in GitHub Desktop.
Save YannMjl/64adf749c3b03d0c486e7999ffd31757 to your computer and use it in GitHub Desktop.
Custom setting of ssmtp for the pi to send emails
# -------------------------------------------------------------------------------------------- #
# Config file for sSMTP sendmail #
# -------------------------------------------------------------------------------------------- #
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
#root=postmaster
# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
#mailhub=smtp.gmail.com:587
# Where will the mail seem to come from?
#rewriteDomain=gmail.com
# The full hostname
#hostname=gmail.com
# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
#FromLineOverride=YES
# -------------------------------------------------------------------------------------------- #
# Custom setting of ssmtp for the pi 3 Model 3 to send emails #
# -------------------------------------------------------------------------------------------- #
root=yourgmailaccount@gmail.com
AuthUser=yourgmailaccount@gmail.com
AuthPass=yourEmailPassword
FromLineOverride=YES
mailhub=smtp.gmail.com:587
UseSTARTTLS=YES
# -------------------------------------------------------------------------------------------- #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment