Skip to content

Instantly share code, notes, and snippets.

@jayachandraoggy
Last active July 31, 2020 13:05
Show Gist options
  • Save jayachandraoggy/8dd10430e63d11cbe8fff85a1b083b4f to your computer and use it in GitHub Desktop.
Save jayachandraoggy/8dd10430e63d11cbe8fff85a1b083b4f to your computer and use it in GitHub Desktop.
smtp for debian systems. Installation: apt install ssmtp Path: /etc/ssmtp/ssmtp.conf
#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=gmailemail
# 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
AuthMethod=LOGIN
AuthUser=gmailemail
AuthPass=gmailpassword
UseTLS=YES
UseSTARTTLS=YES
# Where will the mail seem to come from?
rewriteDomain=gmail.com
# Where will the mail seem to come from?
#rewriteDomain=
# The full hostname
hostname=Magnus
# 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
root:gmailemail:smtp.gmail.com:587
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment