Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve mailcrypt-encrypt-maildir script #213

Open
doobry-systemli opened this issue Jan 13, 2020 · 0 comments
Open

Improve mailcrypt-encrypt-maildir script #213

doobry-systemli opened this issue Jan 13, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@doobry-systemli
Copy link
Contributor

Apparently, the current way of encrypting mails from legacy users as we do it in bin/mailcrypt-encrypt-maildir is error-prone. In particular, using doveadm fs put crypt ... seems to be dangerous. First, it injects the new mail into the Maildir "outside of dovecot". Second, if you do that at all, the file streaming should happen in /tmp first and the files be moved to /cur or /new only at the very end of altering the file.

According to user feedback, a better solution would be to use doveadm sync -1, e.g. doveadm sync -1 -R -u [email protected] maildir:...old_unencrypted/Maildir

@doobry-systemli doobry-systemli added the bug Something isn't working label Jan 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant