0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 11:12:15 +02:00

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

This commit is contained in:
David Goodwin 2022-08-02 09:15:37 +01:00
parent 1896ee8ddd
commit ce05c3e844

View File

@ -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 ""