Skip to content

Instantly share code, notes, and snippets.

@cantremember
Created March 23, 2012 05:47
Show Gist options
  • Save cantremember/2167372 to your computer and use it in GitHub Desktop.
Save cantremember/2167372 to your computer and use it in GitHub Desktop.
msmtp Configuration for GMail
# Set default values for all following accounts.
defaults
host smtp.gmail.com
port 587
timeout off
protocol smtp
domain localhost
# /usr/bin/msmtp --version
# plain cram-md5 digest-md5 gssapi external login ntlm
auth on
user GMAIL-USER
password GMAIL-PASSWD
tls on
tls_starttls on
# WARNING: When the checks are disabled, TLS/SSL sessions will be vulnerable to man-in-the-middle attacks
tls_certcheck off
logfile /var/log/msmtp.log
###syslog on
# A system wide configuration is optional.
# If it exists, it usually defines a default account.
# This allows msmtp to be used like /usr/sbin/sendmail.
account default
# Construct envelope-from addresses of the form "[email protected]".
###auto_from on
from USER@DOMAIN
maildomain DOMAIN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment