From e55af2b2c4ccd832f96270fbdfcc01e3c08c21ec Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Sun, 10 Oct 2021 12:56:27 -0500 Subject: Email: use msmtp instead of smtp on email Use a centralized msmtp config rather than setting up smtp configs on all email services. --- .gitconfig | 8 +++++--- .mutt/gymli | 7 ++----- .mutt/tech | 9 ++------- 3 files changed, 9 insertions(+), 15 deletions(-) diff --git a/.gitconfig b/.gitconfig index 9be6815..1fe3480 100644 --- a/.gitconfig +++ b/.gitconfig @@ -3,10 +3,12 @@ name = Danny Holman [sendemail] + from = Danny Holman + smtpuser = + smtpserver = "/usr/bin/msmtp -a private -t" smtpencryption = tls - smtpserver = mail.gymli.org - smtpuser = dholman - smtpserverport = 587 + chainreplyto = false + confirm = auto [pull] rebase = false diff --git a/.mutt/gymli b/.mutt/gymli index 3a47176..31e2111 100644 --- a/.mutt/gymli +++ b/.mutt/gymli @@ -9,11 +9,8 @@ unmailboxes * mailboxes =INBOX =Sent =Trash =Drafts =Junk =Archive ## SMTP -set smtp_url = smtp://$imap_user:$imap_pass@mail.gymli.xyz -set realname = "Danny Holman" -set from = $imap_user@gymli.xyz -set ssl_force_tls = yes -set ssl_starttls +set from = Danny Holman <$imap_user@gymli.xyz> +set sendmail = "/usr/bin/msmtp -a private -t" ## Hook account-hook $folder "set imap_user=dholman@gymli.xyz imap_pass=`pass gymli.xyz/mail/dholman`" diff --git a/.mutt/tech b/.mutt/tech index df00287..aba2a8b 100644 --- a/.mutt/tech +++ b/.mutt/tech @@ -6,16 +6,11 @@ set spoolfile = +INBOX set postponed = +Drafts set record = "+Sent Items" unmailboxes * -mailboxes =INBOX =Drafts "=Sent Items" "=Deleted Items" +mailboxes =INBOX =Archive "=Junk Email" =Drafts "=Sent Items" "=Deleted Items" ## SMTP -set smtp_url = smtp://$imap_user@outlook.office365.com -set smtp_pass = $imap_pass -set realname = "Danny Holman" set from = $imap_user -set ssl_force_tls = yes -set smtp_authenticators = "login" -set ssl_starttls +set sendmail = "/usr/bin/msmtp -a ttu -t" ## Hook account-hook $folder "set imap_user=dsholman42@tntech.edu imap_pass=`pass tntech.edu/dsholman42`" -- cgit v1.2.3