From 6729efe4b7d0d47cff7a238f683b4bb668391aff Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Mon, 27 Apr 2026 19:07:24 -0500 Subject: feat(mail): add work account to mbsync and msmtp New dmail IMAP group with the standard 5-channel layout (inbox, sent, drafts, trash, starred), mirroring the gmail block. Matching SMTP account uses passwordeval against an encrypted password file at .config/.dmailpass.gpg. --- dotfiles/common/.config/.dmailpass.gpg | Bin 0 -> 604 bytes dotfiles/common/.mbsyncrc | 59 +++++++++++++++++++++++++++++++++ dotfiles/common/.msmtprc | 15 +++++++++ 3 files changed, 74 insertions(+) create mode 100644 dotfiles/common/.config/.dmailpass.gpg diff --git a/dotfiles/common/.config/.dmailpass.gpg b/dotfiles/common/.config/.dmailpass.gpg new file mode 100644 index 0000000..bc8dd4d Binary files /dev/null and b/dotfiles/common/.config/.dmailpass.gpg differ diff --git a/dotfiles/common/.mbsyncrc b/dotfiles/common/.mbsyncrc index fae84ff..05cb4a2 100644 --- a/dotfiles/common/.mbsyncrc +++ b/dotfiles/common/.mbsyncrc @@ -141,3 +141,62 @@ Channel cmail-archive Channel cmail-starred Channel cmail-spam +IMAPAccount dmail +Host imap.gmail.com +User craig.jennings@deepsat.com +PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.config/.dmailpass.gpg" +Port 993 +TLSType IMAPS +AuthMechs Login +CertificateFile /etc/ssl/certs/ca-certificates.crt + +IMAPStore dmail-remote +Account dmail + +MaildirStore dmail-local +Path ~/.mail/dmail/ +Inbox ~/.mail/dmail/INBOX + +Channel dmail-inbox +Far :dmail-remote: +Near :dmail-local: +Patterns "INBOX" +Create Both +Expunge Both +SyncState * + +Channel dmail-trash +Far :dmail-remote:"[Gmail]/Trash" +Near :dmail-local:"Trash" +Create Both +Expunge Both +SyncState * + +Channel dmail-drafts +Far :dmail-remote:"[Gmail]/Drafts" +Near :dmail-local:"Drafts" +Create Both +Expunge Both +SyncState * + +Channel dmail-sent +Far :dmail-remote:"[Gmail]/Sent Mail" +Near :dmail-local:"Sent" +Create Both +Expunge Both +SyncState * + +Channel dmail-starred +Far :dmail-remote:"[Gmail]/Starred" +Near :dmail-local:"Starred" +Create Both +Expunge Both +SyncState * + +Group dmail +Channel dmail-inbox +Channel dmail-trash +Channel dmail-drafts +Channel dmail-sent +Channel dmail-starred + diff --git a/dotfiles/common/.msmtprc b/dotfiles/common/.msmtprc index 6bd8c03..4e06c46 100644 --- a/dotfiles/common/.msmtprc +++ b/dotfiles/common/.msmtprc @@ -35,4 +35,19 @@ logfile ~/.msmtp.cmail.log # ====================================================================== +account dmail +tls_trust_file /etc/ssl/certs/ca-certificates.crt +auth on +host smtp.gmail.com +port 465 +protocol smtp +from craig.jennings@deepsat.com +user craig.jennings@deepsat.com +passwordeval "gpg2 -q --for-your-eyes-only --no-tty -d ~/.config/.dmailpass.gpg" +tls on +tls_starttls off +logfile ~/.msmtp.dmail.log + +# ====================================================================== + account default : cmail -- cgit v1.2.3