From 8dab8b14bf4ccf0412871163c6c4687aa1f3491f Mon Sep 17 00:00:00 2001 From: Matthew Fallshaw Date: Wed, 3 Apr 2019 16:00:30 +1100 Subject: [PATCH] msmtp --- config/fish/config.fish | 9 +++++++++ msmtprc | 12 ++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 msmtprc diff --git a/config/fish/config.fish b/config/fish/config.fish index defbbb1..3166b44 100644 --- a/config/fish/config.fish +++ b/config/fish/config.fish @@ -18,6 +18,15 @@ for p in /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/{completio test -e $p; and source $p end +# msmtp +set -gx MAIL_SERVER smtp.gmail.com +set -gx MAIL_PORT 587 +set -gx MAIL_USE_TLS True +set -gx MAIL_USE_SSL False +set -gx MAIL_USERNAME (security find-generic-password -a dotfiles -s msmtp.email -w) +set -gx MAIL_PASSWORD (security find-generic-password -a dotfiles -s msmtp.pass -w) + + # fisher if not functions -q fisher echo "Installing fisher for the first time..." >&2 diff --git a/msmtprc b/msmtprc new file mode 100644 index 0000000..830e30c --- /dev/null +++ b/msmtprc @@ -0,0 +1,12 @@ +defaults +auth on +tls on +tls_fingerprint 38:99:4A:4B:B0:AF:20:25:E0:BC:7A:EC:8F:BC:FC:D3:B9:F8:10:D7:0F:4F:7E:1B:AC:D0:DA:3F:0C:28:7D:30 +logfile ~/.msmtp.log +account gmail +host smtp.gmail.com +port 587 +from user-from-email +user user-account +password user-password +account default: gmail