diff options
author | Ben Sima <ben@bsima.me> | 2018-07-06 17:03:46 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2018-07-06 17:03:46 -0700 |
commit | 0bb256c4c6f295ab5df2f3bd18ec5fe054ad62c5 (patch) | |
tree | a91869ae7a7450265391acc396532a856adfce82 | |
parent | d7a8920d0b82a699414ecc7bd5640cf3e8eb9aeb (diff) |
Add offline mail sending
-rw-r--r-- | home.nix | 4 | ||||
-rw-r--r-- | msmtprc | 15 | ||||
-rw-r--r-- | muttrc | 11 | ||||
-rw-r--r-- | packages.nix | 2 |
4 files changed, 29 insertions, 3 deletions
@@ -50,6 +50,10 @@ in source = ./mailcap; target = ".mailcap"; }; + msmtp = { + source = ./msmtprc; + target = ".msmtprc"; + }; tmux = { source = ./tmux; target = ".tmux.conf"; @@ -0,0 +1,15 @@ +account bnet +port 587 +tls on + +# Get the fingerprint with +# $ msmtp --serverinfo --tls --tls-certcheck=off --host=smtp.freemail.example +tls_fingerprint CD:16:9B:3E:AA:B0:E3:E9:A9:21:F4:5D:F3:D8:C8:2B:B0:F8:65:DE + +host mail.bsima.me +from ben@bsima.me +auth on +user ben@bsima.me +passwordeval pass bnet/helium/mail/ben + +account default : bnet @@ -57,16 +57,23 @@ set fast_reply=yes set forward_decode # decode when forwarding set reply_to # reply to Reply to: field set use_envelope_from = yes +set envelope_from = yes set text_flowed = yes +## Accounts + set my_pw = "`pass bnet/helium/mail/ben`" set imap_user = "ben@bsima.me" set imap_pass = $my_pw +set sendmail = msmtpq + set from = "ben@bsima.me" -set smtp_url = "smtp://ben@bsima.me@mail.bsima.me:587" -set smtp_pass = $my_pw +set use_from = yes + +#set smtp_url = "smtp://ben@bsima.me@mail.bsima.me:587" +#set smtp_pass = $my_pw set ssl_starttls = "yes" diff --git a/packages.nix b/packages.nix index 917a7ac..5234cf4 100644 --- a/packages.nix +++ b/packages.nix @@ -7,7 +7,6 @@ pkgs.antiword pkgs.cabal2nix pkgs.chromium pkgs.cloc -pkgs.conkeror pkgs.dict pkgs.dmenu pkgs.dzen2 @@ -32,6 +31,7 @@ pkgs.lynx pkgs.mononoki pkgs.mplayer pkgs.mpv +pkgs.msmtp pkgs.neomutt pkgs.networkmanager_vpnc pkgs.nix-prefetch-scripts |