summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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