Skip to content

Instantly share code, notes, and snippets.

@davidlonjon
Created July 15, 2014 06:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidlonjon/69b5352f5bcdb0acff04 to your computer and use it in GitHub Desktop.
Save davidlonjon/69b5352f5bcdb0acff04 to your computer and use it in GitHub Desktop.
msmtprc for gmail
# Default settings that all others account inherit
defaults
auth on
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
# Logging - uncomment either syslog or logfile, having both uncommented disables logging at all.
#syslog on
# Or to log to log own file
logfile /var/log/msmtp.log
keepbcc on
# Gmail/Google Apps (configure as may as you want)
account gmail
host smtp.gmail.com
port 587
from username@email.com
user username@email.com
password password
# Default account to use
account default : gmail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment