From 9613b2e428ecf6780cd12c80c90ecdd3bd7a7674 Mon Sep 17 00:00:00 2001 From: David Runge Date: Wed, 9 Mar 2022 15:13:25 +0100 Subject: 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. --- .mbsyncrc | 4 ++-- 1 file 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 -- cgit v1.2.3-54-g00ecf