aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-04-27 19:07:24 -0500
committerCraig Jennings <c@cjennings.net>2026-04-27 19:07:24 -0500
commit6729efe4b7d0d47cff7a238f683b4bb668391aff (patch)
tree78569590e5354515f849ce34dd7d1b54c9dfa8b8
parentcd2f90656222016c57291dd171d81187df6ef03f (diff)
downloadarchsetup-6729efe4b7d0d47cff7a238f683b4bb668391aff.tar.gz
archsetup-6729efe4b7d0d47cff7a238f683b4bb668391aff.zip
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.
-rw-r--r--dotfiles/common/.config/.dmailpass.gpgbin0 -> 604 bytes
-rw-r--r--dotfiles/common/.mbsyncrc59
-rw-r--r--dotfiles/common/.msmtprc15
3 files changed, 74 insertions, 0 deletions
diff --git a/dotfiles/common/.config/.dmailpass.gpg b/dotfiles/common/.config/.dmailpass.gpg
new file mode 100644
index 0000000..bc8dd4d
--- /dev/null
+++ b/dotfiles/common/.config/.dmailpass.gpg
Binary files 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