Skip to content

Integrate mailcrypt secret handling #89

@t2d

Description

@t2d

We want to encrypt the mail storage of dovecot. The easiest way seems to be the mailcrypt plugin. I believe, we would need folder keys, which are user specific. The example supplies the password directly.

The main question is how we integrate this with our recovery tokens #83. By now #85 encrypts the user password in a sealed crypto box. If an attacker gains access to recovery token and user database, they could recover user passwords, which is not ideal. User sadly tend to re-use passwords.

I think, it would be better to get userdb_mail_crypt_private_key from the database. We would then need to store one copy of the key encrypted with the user password and another encrypted with the recovery token.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions