summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2019-02-17 03:07:45 -0800
committerBen Sima <ben@bsima.me>2019-02-17 03:07:45 -0800
commit6469b5dd163b9b7784a81d42696491f0859d0ea3 (patch)
tree9e914faf9f1cc26b1bbffe4317e478285ed48931
parentae489341894937d904cb1e7057c5cf1585b898ae (diff)
Get connected to simatime.com mailserver
-rw-r--r--email.nix24
-rw-r--r--msmtprc12
2 files changed, 33 insertions, 3 deletions
diff --git a/email.nix b/email.nix
index 7add712..f085943 100644
--- a/email.nix
+++ b/email.nix
@@ -30,9 +30,30 @@ in
expunge = "none";
};
notmuch.enable = true;
- msmtp.enable = false;
+ msmtp.enable = true;
passwordCommand = "pass bnet/helium/mail/ben";
};
+ "ben@simatime.com" = {
+ realName = "Ben Sima";
+ address = "ben@simatime.com";
+ userName = "ben@simatime.com";
+ imap = {
+ host = "mail.simatime.com";
+ port = 993;
+ };
+ smtp = {
+ host = "mail.simatime.com";
+ port = 587;
+ };
+ mbsync = {
+ enable = true;
+ create = "both";
+ expunge = "none";
+ };
+ notmuch.enable = true;
+ passwordCommand = "pass simatime/mail/ben";
+ msmtp.enable = true;
+ };
};
};
};
@@ -72,7 +93,6 @@ in
msmtp = {
enable = false;
- extraConfig = builtins.readFile ./msmtprc;
};
};
}
diff --git a/msmtprc b/msmtprc
index f42987d..55df3a2 100644
--- a/msmtprc
+++ b/msmtprc
@@ -8,9 +8,19 @@ port 587
tls on
# Get the fingerprint with
-# $ msmtp --serverinfo --tls --tls-certcheck=off --host=mail.bsima.me
+# $ ~/bin/sslfingerprint mail.bsima.me
tls_fingerprint B9:47:21:86:D3:82:85:E8:5C:41:60:2C:A3:B2:6B:AE:54:03:54:3F:58:28:09:A5:37:CD:B3:BF:A0:BC:29:5E
#tls_starttls off
#tls_trust_file /etc/ssl/certs/ca-certificates.crt
account default : ben@bsima.me
+
+account ben@simatime.com
+auth on
+from ben@simatime.com
+host mail.simatime.com
+user ben@simatime.com
+passwordeval pass simatime/mail/ben
+port 587
+tls on
+tls_fingerprint 0B:E4:4B:8E:FD:11:E7:F3:CA:50:91:30:C2:56:34:87:6B:F4:7D:9B:59:2F:2D:55:83:43:A0:23:DB:00:5B:44 \ No newline at end of file