From ce05c3e84407405c761481f923527adc02727b5a Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Tue, 2 Aug 2022 09:15:37 +0100 Subject: [PATCH] see https://github.com/postfixadmin/postfixadmin/issues/646 - add note/comment, doing version parsing in bash to make the script handle it seems clumsy and verbose --- ADDITIONS/postfixadmin-mailbox-postpassword.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ADDITIONS/postfixadmin-mailbox-postpassword.sh b/ADDITIONS/postfixadmin-mailbox-postpassword.sh index 807e5128..b6c6e77d 100644 --- a/ADDITIONS/postfixadmin-mailbox-postpassword.sh +++ b/ADDITIONS/postfixadmin-mailbox-postpassword.sh @@ -12,5 +12,8 @@ if [ -z "$OLD_PASSWORD" ]; then doveadm -o plugin/mail_crypt_private_password="$OLD_PASSWORD" mailbox cryptokey generate -u "$1" -U fi +# If you're using dovecot >= 2.3.19, try this instead (See: https://github.com/postfixadmin/postfixadmin/issues/646) +# printf "%s\n%s\n" "$OLD_PASSWORD" "$NEW_PASSWORD" "$NEW_PASSWORD" | doveadm mailbox cryptokey password -u "$1" -N -O + # Password change printf "%s\n%s\n" "$OLD_PASSWORD" "$NEW_PASSWORD" | doveadm mailbox cryptokey password -u "$1" -N -O ""