Doveadm encrypt/decrypt files manually with per-user folder keys

Aki Tuomi aki.tuomi at open-xchange.com
Tue Jun 29 09:11:03 EEST 2021


> On 29/06/2021 06:05 Ben Burk <ben at burk.tech> wrote:
> 
> 
> There is an example of manually encrypting/decrypting mail processed by the mail_crypt plugin here:
> https://doc.dovecot.org/configuration_manual/mail_crypt_plugin/
> 
> 
> It outlines how one would manually encrypt/decrypt messages using global keys:
> doveadm fs get/put crypt private_key_path=foo:public_key_path=foo2:posix:prefix=/path/to/files/root path/to/file
> 
> 
> 
> Is there a way to accomplish this using per-user folder keys? Is there some way of making sense of the information in the dovecot-attributes file to accomplish this?
> 
> -- 
> Ben Burk
> BURK.TECH System Administrator

You can use

doveadm mailbox cryptokey export

to export folder keys.

Aki


More information about the dovecot mailing list