Plugins/Mailcrypt: mail_crypt_private_password not assigned by password_query
I try to use Mailcrypt encrypted user keys with conjustion with dbsync replication(Dovecot 2.3.6 in FreeBSD 12.0 enviroment) but was unsuccessful. If I provide a password in mail_crypt_private_password variable directly in Dovecot config all things works as expected
plugin { mail_crypt_curve = prime256v1 mail_crypt_save_version = 2 mail_crypt_require_encrypted_user_key = yes mail_crypt_private_password = 12345 }
but when I remove this and trying to get the same user password in password_query it seems password doesn't assigned
password_query = SELECT username AS user, password,
'%w' AS userdb_mail_crypt_private_password
FROM mailbox WHERE username = LCASE('%u')
AND active = '1'
with errors like this in log at server where message was accepted from remote system
May 20 00:40:31 server1 dovecot[35417]:
dsync-local(foo@example.com)
and errors at replica server
May 20 00:40:31 server2 dovecot[63985]:
dsync-local(foo@example.com)
The question is it possible to have password encrypted user keys with Dovecot dbsync replication or we found a new bug?
-- With best regards, Max Kostikov
W: https://kostikov.co | DeltaChat: mk@eprove.net
participants (1)
-
Max Kostikov