[mail-crypt-plugin] Password Query for Folder Keys questions

Aki Tuomi aki.tuomi at open-xchange.com
Fri May 31 09:43:36 EEST 2019


> On 31 May 2019 05:21 emordin via dovecot <dovecot at dovecot.org> wrote:
> 
> 
> So I believe I generated a key successfully with:
> 'doveadm mailbox cryptokey generate -u user -UR' because I got the output with the check mark and the Public ID string of characters.
> 
> However I still can't read the CRYPTED emails when logging in with IMAP.. i'm still getting the following error in the mail log:
> Error: read() failed: read(/var/vmail/domain . com/user/Maildir/cur/ (http://domain.com/user/Maildir/cur/)<email_index>) failed: Private key not available: Cannot decrypt key ... : error:03070068:big num routines:BN_mpi2bn:encoding error
> 
> I've tried to list the key with 'doveadm mailbox cryptokey list -u user' but I'm only getting the following output:
> Folder Active Public ID
> And I've tried to create a password with 'doveadm mailbox cryptokey password -u user -n Password1' and I'm getting the following output:
> result: dcrypt_key_load_private(...) failed: password missing
> 

Can you try

doveadm -o plugin/mail_crypt_private_password=desired_password mailbox cryptokey generate -u user -UR

Aki


More information about the dovecot mailing list