diff options
author | Urbain Vaes <urbain@vaes.uk> | 2015-04-19 19:59:11 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2015-04-19 19:59:11 +0100 |
commit | 2d38e5a553b7a1c8e20597b0c2351f8b2f36ec41 (patch) | |
tree | 36e03532ac85e6851e0c3a5d4bf2d27f5431a21d | |
parent | e5b50746586ef6204d7cb237d7889972b47863e1 (diff) |
Replaced ssmtp by msmtp
-rwxr-xr-x | make | 3 | ||||
-rw-r--r-- | msmtprc | 22 | ||||
-rw-r--r-- | mutt/muttrc | 3 |
3 files changed, 25 insertions, 3 deletions
@@ -4,12 +4,13 @@ dir=~/dotfiles olddir=~/dotfiles_old # Files to sync -files="vim mutt passwords vifm bashrc zshrc xmodmap mynotes tmux.conf zathurarc offlineimaprc offlineimap.py inputrc latexmkrc crontab gitconfig" +files="vim mutt passwords vifm msmtprc bashrc zshrc xmodmap mynotes tmux.conf zathurarc offlineimaprc offlineimap.py inputrc latexmkrc crontab gitconfig" rm -rf $olddir mkdir -p $olddir cd $dir +chmod 600 msmtprc for file in $files; do echo $file mv ~/.$file $olddir @@ -0,0 +1,22 @@ +defaults +auth on +tls on +tls_trust_file /etc/ssl/certs/ca-certificates.crt +logfile ~/.msmtp.log + +account gmail +host smtp.gmail.com +port 587 +from urbain.p.vaes@gmail.com +user urbain.p.vaes +passwordeval "gpg --use-agent --quiet --for-your-eyes-only --no-tty --decrypt ~/.passwords/main.asc" + +account imperial +host smtp.cc.ic.ac.uk +from u.vaes13@imperial.ac.uk +user uv113 +passwordeval "gpg --use-agent --quiet --for-your-eyes-only --no-tty --decrypt ~/.passwords/imperial.asc" +port 587 + +# Set a default account +account default : imperial diff --git a/mutt/muttrc b/mutt/muttrc index 71d5d84..32f033e 100644 --- a/mutt/muttrc +++ b/mutt/muttrc @@ -5,7 +5,6 @@ set use_from = yes set envelope_from = "yes" # Folders -set folder = "~/.mail" set folder = ~/.mail set alias_file = ~/.mutt/alias set header_cache = ~/.mutt/cache/headers @@ -68,7 +67,7 @@ set edit_headers set include=yes # Mail out -set sendmail="/usr/sbin/ssmtp" +set sendmail="/usr/bin/msmtp" set beep_new |