aboutsummaryrefslogtreecommitdiffstats
path: root/.mbsyncrc
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2022-03-09 15:13:25 +0100
committerDavid Runge <dave@sleepmap.de>2022-03-09 15:23:42 +0100
commit9613b2e428ecf6780cd12c80c90ecdd3bd7a7674 (patch)
treed77c58fe5fe4789a78991bd3ed1dff7dd5cf5d9a /.mbsyncrc
parent1880f235488da07fc5eb74a37b4410005bda846d (diff)
downloaddotfiles-9613b2e428ecf6780cd12c80c90ecdd3bd7a7674.tar.gz
dotfiles-9613b2e428ecf6780cd12c80c90ecdd3bd7a7674.tar.bz2
dotfiles-9613b2e428ecf6780cd12c80c90ecdd3bd7a7674.tar.xz
dotfiles-9613b2e428ecf6780cd12c80c90ecdd3bd7a7674.zip
mbsync: Use systemd unit with SetCredentialEncrypted
.mbsyncrc: Instead of relying on pass, use cat to retrieve a password from an encrypted credential, that is only available to a templated systemd unit for syncing the mails of a given user.
Diffstat (limited to '.mbsyncrc')
-rw-r--r--.mbsyncrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/.mbsyncrc b/.mbsyncrc
index 8f8202b..85497d8 100644
--- a/.mbsyncrc
+++ b/.mbsyncrc
@@ -1,7 +1,7 @@
IMAPAccount archlinux
Host mail.archlinux.org
User dvzrv@archlinux.org
-PassCmd "pass mail/dvzrv@archlinux.org"
+PassCmd "cat $CREDENTIALS_DIRECTORY/archlinux-password"
SSLType IMAPS
IMAPStore archlinux-remote
@@ -24,7 +24,7 @@ Remove Both
IMAPAccount sleepmap
Host mail.sleepmap.de
User dave@sleepmap.de
-PassCmd "pass mail/dave@sleepmap.de"
+PassCmd "cat $CREDENTIALS_DIRECTORY/sleepmap-password"
SSLType IMAPS
IMAPStore sleepmap-remote