summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2018-07-06 17:03:46 -0700
committerBen Sima <ben@bsima.me>2018-07-06 17:03:46 -0700
commit0bb256c4c6f295ab5df2f3bd18ec5fe054ad62c5 (patch)
treea91869ae7a7450265391acc396532a856adfce82
parentd7a8920d0b82a699414ecc7bd5640cf3e8eb9aeb (diff)
Add offline mail sending
-rw-r--r--home.nix4
-rw-r--r--msmtprc15
-rw-r--r--muttrc11
-rw-r--r--packages.nix2
4 files changed, 29 insertions, 3 deletions
diff --git a/home.nix b/home.nix
index 093722e..fdcbb61 100644
--- a/home.nix
+++ b/home.nix
@@ -50,6 +50,10 @@ in
source = ./mailcap;
target = ".mailcap";
};
+ msmtp = {
+ source = ./msmtprc;
+ target = ".msmtprc";
+ };
tmux = {
source = ./tmux;
target = ".tmux.conf";
diff --git a/msmtprc b/msmtprc
new file mode 100644
index 0000000..e259195
--- /dev/null
+++ b/msmtprc
@@ -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
diff --git a/muttrc b/muttrc
index 8bfebb6..f6ddfdb 100644
--- a/muttrc
+++ b/muttrc
@@ -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