From 6469b5dd163b9b7784a81d42696491f0859d0ea3 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sun, 17 Feb 2019 03:07:45 -0800 Subject: Get connected to simatime.com mailserver --- email.nix | 24 ++++++++++++++++++++++-- msmtprc | 12 +++++++++++- 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 -- cgit v1.2.3