From 87d1a39a481ba8fbc2226e9855ac4f287061492c Mon Sep 17 00:00:00 2001 From: Vangeance666 <1902132@sit.singaporetech.edu.sg> Date: Mon, 12 Sep 2022 07:05:23 +0800 Subject: [PATCH] Email decryption to use correct compression level --- docs/manual-guides/Dovecot/u_e-dovecot-mail-crypt.de.md | 2 +- docs/manual-guides/Dovecot/u_e-dovecot-mail-crypt.en.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/manual-guides/Dovecot/u_e-dovecot-mail-crypt.de.md b/docs/manual-guides/Dovecot/u_e-dovecot-mail-crypt.de.md index 2982e7763..6771c7a01 100644 --- a/docs/manual-guides/Dovecot/u_e-dovecot-mail-crypt.de.md +++ b/docs/manual-guides/Dovecot/u_e-dovecot-mail-crypt.de.md @@ -9,7 +9,7 @@ Rufen Sie Dovecot auf, indem Sie `docker compose exec dovecot-mailcow /bin/bash` # Entschlüsseln Sie /var/vmail find /var/vmail/ -type f -regextype egrep -regex '.*S=.*W=.*' | while read -r file; do if [[ $(head -c7 "$file") == "CRYPTED" ]]; then -doveadm fs get compress lz4:0:crypt:private_key_path=/mail_crypt/ecprivkey.pem:public_key_path=/mail_crypt/ecpubkey.pem:posix:prefix=/ \ +doveadm fs get compress lz4:1:crypt:private_key_path=/mail_crypt/ecprivkey.pem:public_key_path=/mail_crypt/ecpubkey.pem:posix:prefix=/ \ "$file" > "/tmp/$(basename "$file")" if [[ -s "/tmp/$(basename "$file")" ]]; then chmod 600 "/tmp/$(basename "$file")" diff --git a/docs/manual-guides/Dovecot/u_e-dovecot-mail-crypt.en.md b/docs/manual-guides/Dovecot/u_e-dovecot-mail-crypt.en.md index 69939eded..ee03db65e 100644 --- a/docs/manual-guides/Dovecot/u_e-dovecot-mail-crypt.en.md +++ b/docs/manual-guides/Dovecot/u_e-dovecot-mail-crypt.en.md @@ -9,7 +9,7 @@ Enter Dovecot by running `docker compose exec dovecot-mailcow /bin/bash` in the # Decrypt /var/vmail find /var/vmail/ -type f -regextype egrep -regex '.*S=.*W=.*' | while read -r file; do if [[ $(head -c7 "$file") == "CRYPTED" ]]; then -doveadm fs get compress lz4:0:crypt:private_key_path=/mail_crypt/ecprivkey.pem:public_key_path=/mail_crypt/ecpubkey.pem:posix:prefix=/ \ +doveadm fs get compress lz4:1:crypt:private_key_path=/mail_crypt/ecprivkey.pem:public_key_path=/mail_crypt/ecpubkey.pem:posix:prefix=/ \ "$file" > "/tmp/$(basename "$file")" if [[ -s "/tmp/$(basename "$file")" ]]; then chmod 600 "/tmp/$(basename "$file")"