Update u_e-dovecot-mail-crypt.md
Dieser Commit ist enthalten in:
Ursprung
78f49792e6
Commit
5edd7deaaa
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
|
@ -6,7 +6,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 '/.*[0-9]{10}.+,.+' | while read file; do
|
||||
find /var/vmail/ -type f -regextype egrep -regex '.*S=.*W=.*' | while read -r file; do
|
||||
if [[ $(head -c7 "$file") == "CRYPTED" ]]; then
|
||||
doveadm fs get crypt private_key_path=/mail_crypt/ecprivkey.pem:public_key_path=/mail_crypt/ecpubkey.pem:posix:prefix=/ \
|
||||
"$file" > "/tmp/$(basename "$file")"
|
||||
|
@ -17,7 +17,7 @@ fi
|
|||
done
|
||||
|
||||
# Encrypt /var/vmail
|
||||
find /var/vmail/ -type f -regextype egrep -regex '/.*[0-9]{10}.+,.+' | while read file; do
|
||||
find /var/vmail/ -type f -regextype egrep -regex '.*S=.*W=.*' | while read -r file; do
|
||||
if [[ $(head -c7 "$file") != "CRYPTED" ]]; then
|
||||
doveadm fs put crypt private_key_path=/mail_crypt/ecprivkey.pem:public_key_path=/mail_crypt/ecpubkey.pem:posix:prefix=/ \
|
||||
"$file" "$file"
|
||||
|
|
Laden …
In neuem Issue referenzieren